Could you please help me in resolving the " /reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'?"

Liu Wang liuw at supermicro.com
Tue Jan 23 20:20:16 CET 2024


Hi Fabio,

Thank you for your help.

Attached is the 'git status' and 'git log' in my porting u-boot to my cse_ptjob_cb3_r102 control board by following README in u-boot and being blocked with the hurdle of  "undefined reference to `reset_cpu'" in hope you spot something familiar and shed a light in my building effort.

Sincerely,
Liu Wang
-----------------------------------------------------------------------------------------------------
liuw at liuw-SYS-E100-12T-H:~/Downloads/u-boot$ git log
commit 050acee119b3757fee3bd128f55d720fdd9bb890 (HEAD, tag: v2020.10, list)
Author: Tom Rini <trini at konsulko.com>
Date:   Mon Oct 5 11:15:32 2020 -0400

    Prepare v2020.10
    
    Signed-off-by: Tom Rini <trini at konsulko.com>

commit 0f3e2942c9e01b5dfc01f3dabe0e2f2ab8fd8b84
Author: Soeren Moch <smoch at web.de>
Date:   Thu Aug 27 21:52:46 2020 +0200

    board: tbs2910: Use recommended distroboot addresses
    
    According to doc/README.distro fdt_addr must not be set when DTB is not
    available from hardware. So remove this entry.
    
    Use address 32MB above the start of DRAM for kernel_addr_r. This way
    we likely can avoid the self-relocation of the compressed kernel image
    before it decompresses to offset 0x8000 from start of DRAM.
    
    Use address 128MB above the start of DRAM for fdt_addr_r, since this is
    the maximum location for the end of the kernel. So we avoid overwriting
    the DTB.
    
    Use 512k above that for ramdisk_addr_r. This should be enough for the
    DTB, rest of DRAM can be used for initrd.
    
liuw at liuw-SYS-E100-12T-H:~/Downloads/u-boot$

-----------------------------------------------------------------------------
liuw at liuw-SYS-E100-12T-H:~/Downloads/u-boot$ git status
HEAD detached at v2020.10
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   arch/arm/Kconfig
	modified:   arch/arm/include/asm/arch-aspeed/platform.h
	modified:   arch/arm/include/asm/global_data.h
	modified:   cmd/bootm.c
	modified:   cmd/i2c.c
	modified:   cmd/load.c
	modified:   cmd/source.c
	modified:   common/image.c
	modified:   fs/fs.c
	modified:   include/command.h
	modified:   include/ns16550.h

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	board/supermicro/
	configs/cse_ptjob_cb3_r102_defconfig
	include/configs/cast_common.h
	include/configs/cse_ptjob_cb3_r102.h
	listBin
	log2024011616makeAll.yml
	logmakeall2024012218
	makelog

no changes added to commit (use "git add" and/or "git commit -a")
liuw at liuw-SYS-E100-12T-H:~/Downloads/u-boot$



-----Original Message-----
From: Fabio Estevam <festevam at gmail.com> 
Sent: Monday, January 22, 2024 6:44 PM
To: Liu Wang (HW) <liuw at supermicro.com>
Cc: u-boot at lists.denx.de
Subject: Re: Could you please help me in resolving the " /reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'?"

[CAUTION: External Mail]

Hi Liu Wang,

On Mon, Jan 22, 2024 at 10:55 PM Liu Wang <liuw at supermicro.com> wrote:
>
> Hi Fabio,
>
> Could you please help me in resolving the " /reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'?" from: u-boot$make all:

Looking at the errors below, there are several errors besides the reset_cpu one.

As you are using an out-of-tree U-Boot, there is not much the U-Boot
community can do to help you, sorry.

You need to get assistance from the U-Boot provider that you are using.


More information about the U-Boot mailing list