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 02:55:29 CET 2024


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:

Sincerely,
Liu Wang
----------------------------------------------------------------------
...$make all
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  tools/mkenvimage.o
  HOSTLD  tools/mkenvimage
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/dumpimage
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkimage
  CC      cmd/version.o
  LD      cmd/built-in.o
  CC      common/main.o
  LD      common/built-in.o
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      u-boot
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: warning: u-boot has a LOAD segment with RWX permissions
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: arch/arm/lib/built-in.o: in function `do_reset':
/home/liuw/Downloads/u-boot/arch/arm/lib/reset.c:42:(.text.do_reset+0x20): undefined reference to `reset_cpu'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: arch/arm/mach-aspeed/built-in.o: in function `dram_init':
/home/liuw/Downloads/u-boot/arch/arm/mach-aspeed/ast2500/board_common.c:50:(.text.dram_init+0x24): undefined reference to `ram_get_info'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: arch/arm/mach-aspeed/built-in.o: in function `ast2500_sdrammc_ofdata_to_platdata':
/home/liuw/Downloads/u-boot/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c:395:(.text.ast2500_sdrammc_ofdata_to_platdata+0x18): undefined reference to `regmap_init_mem'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c:399:(.text.ast2500_sdrammc_ofdata_to_platdata+0x2c): undefined reference to `regmap_get_range'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c:400:(.text.ast2500_sdrammc_ofdata_to_platdata+0x3c): undefined reference to `regmap_get_range'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_imls_nor':
/home/liuw/Downloads/u-boot/cmd/bootm.c:390:(.text.do_imls+0x9c): undefined reference to `flash_info'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_reset':
/home/liuw/Downloads/u-boot/cmd/i2c.c:1960:(.text.do_i2c_reset+0xc): undefined reference to `i2c_init'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_probe':
/home/liuw/Downloads/u-boot/cmd/i2c.c:999:(.text.do_i2c_probe+0x5c): undefined reference to `i2c_probe'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_md':
/home/liuw/Downloads/u-boot/cmd/i2c.c:592:(.text.do_i2c_md+0xd0): undefined reference to `i2c_read'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_read':
/home/liuw/Downloads/u-boot/cmd/i2c.c:342:(.text.do_i2c_read+0x90): undefined reference to `i2c_read'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_mw':
/home/liuw/Downloads/u-boot/cmd/i2c.c:691:(.text.do_i2c_mw+0xc8): undefined reference to `i2c_write'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_write':
/home/liuw/Downloads/u-boot/cmd/i2c.c:426:(.text.do_i2c_write+0xc8): undefined reference to `i2c_write'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/cmd/i2c.c:412:(.text.do_i2c_write+0x110): undefined reference to `i2c_write'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_crc':
/home/liuw/Downloads/u-boot/cmd/i2c.c:779:(.text.do_i2c_crc+0xd4): undefined reference to `i2c_read'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `mod_i2c_mem':
/home/liuw/Downloads/u-boot/cmd/i2c.c:874:(.text.mod_i2c_mem.isra.0+0xbc): undefined reference to `i2c_read'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/cmd/i2c.c:922:(.text.mod_i2c_mem.isra.0+0x1d0): undefined reference to `i2c_write'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: cmd/built-in.o: in function `do_i2c_loop':
/home/liuw/Downloads/u-boot/cmd/i2c.c:1093:(.text.do_i2c_loop+0xac): undefined reference to `i2c_read'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: common/built-in.o: in function `jumptable_init':
/home/liuw/Downloads/u-boot/common/exports.c:32:(.text.jumptable_init+0x1cc): undefined reference to `i2c_write'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/common/exports.c:32:(.text.jumptable_init+0x1d0): undefined reference to `i2c_read'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: common/built-in.o: in function `cread_line':
/home/liuw/Downloads/u-boot/common/cli_readline.c:266:(.text.cli_readline_into_buffer+0xd8): undefined reference to `get_tbclk'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: common/built-in.o:(.rodata.init_sequence_f+0x4c): undefined reference to `print_cpuinfo'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/built-in.o: in function `spi_flash_probe':
/home/liuw/Downloads/u-boot/drivers/mtd/spi/sf_probe.c:63:(.text.spi_flash_probe+0x4): undefined reference to `spi_setup_slave'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/built-in.o: in function `spi_flash_probe_slave':
/home/liuw/Downloads/u-boot/drivers/mtd/spi/sf_probe.c:38:(.text.spi_flash_probe+0x2c): undefined reference to `spi_claim_bus'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/built-in.o: in function `spi_flash_probe':
/home/liuw/Downloads/u-boot/drivers/mtd/spi/sf_probe.c:76:(.text.spi_flash_probe+0x3c): undefined reference to `spi_free_slave'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/built-in.o: in function `spi_flash_probe_slave':
/home/liuw/Downloads/u-boot/drivers/mtd/spi/sf_probe.c:52:(.text.spi_flash_probe+0x64): undefined reference to `spi_release_bus'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/built-in.o: in function `spi_flash_free':
/home/liuw/Downloads/u-boot/drivers/mtd/spi/sf_probe.c:89:(.text.spi_flash_free+0xc): undefined reference to `spi_free_slave'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/serial/built-in.o: in function `get_current':
/home/liuw/Downloads/u-boot/drivers/serial/serial.c:324:(.text.get_current+0x10): undefined reference to `default_serial_console'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/serial/built-in.o: in function `serial_initialize':
/home/liuw/Downloads/u-boot/drivers/serial/serial.c:185:(.text.serial_initialize+0x28): undefined reference to `default_serial_console'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: drivers/spi/built-in.o: in function `spi_mem_exec_op':
/home/liuw/Downloads/u-boot/drivers/spi/spi-mem-nodm.c:33:(.text.spi_mem_exec_op+0x58): undefined reference to `spi_claim_bus'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/drivers/spi/spi-mem-nodm.c:56:(.text.spi_mem_exec_op+0x104): undefined reference to `spi_xfer'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/drivers/spi/spi-mem-nodm.c:68:(.text.spi_mem_exec_op+0x120): undefined reference to `spi_release_bus'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: /home/liuw/Downloads/u-boot/drivers/spi/spi-mem-nodm.c:62:(.text.spi_mem_exec_op+0x154): undefined reference to `spi_xfer'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: lib/built-in.o: in function `tick_to_time':
/home/liuw/Downloads/u-boot/lib/time.c:123:(.text.tick_to_time+0x8): undefined reference to `get_tbclk'
/home/liuw/armgnutoolchain132rel1x8664armnoneeabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld.bfd: lib/built-in.o: in function `usec_to_tick':
/home/liuw/Downloads/u-boot/lib/time.c:168:(.text.usec_to_tick+0x8): undefined reference to `get_tbclk'
make: *** [Makefile:1753: u-boot] Error 1



More information about the U-Boot mailing list