OpenNuvoton / MA35D1_Buildroot

MA35D1 Buildroot
Other
10 stars 10 forks source link

Flashing nuvoton NUC980 board with SD card #20

Open Nachiketha0509 opened 4 months ago

Nachiketha0509 commented 4 months ago

Hi, We have used this buildrot to boot from SD card and we have made changes to the "nuc980_evb.h" file and changed the "nuc980_iot.h" accordingly to the need to boot from the mmc in the uboot-custom/include/configs directory. This is where we are facing the difficulty. When we do "make uboot-rebuild" there is a git call which calls a new uboot.tar which does't have these updated files and the uimage formed is not the right one. We need your help to stop this git call from happening and while rebuilding it should take our updated uboot-custom folder for rebuild. Please help. Thank you Regards

ychuang3 commented 4 months ago

Hi,

According to your description, I just performed the same operations. I downloaded a fresh buildroot from OpenNuvoton and then:

1. make nuvoton_nuc980_iot_defconfig
2. make
3. modify buildroot/output/build/uboot-custom/include/configs/nuc980_evb.h and nuc980_iot.h
4. make uboot-rebuild

Here, buildroot successfully completed the uboot rebuild, and I did not encounter the issue you mentioned.

Have you made any other modifications?

Nachiketha0509 commented 4 months ago

Can you send me the picture please where it worked properly ? Cus for us themake uboot-rebuild command gives an error

On Thu, 18 Jul 2024, 11:05 ychuang3, @.***> wrote:

Hi,

According to your description, I just performed the same operations. I downloaded a fresh buildroot from OpenNuvoton and then:

  1. make nuvoton_nuc980_iot_defconfig
  2. make
  3. modify buildroot/output/build/uboot-custom/include/configs/nuc980_evb.h and nuc980_iot.h
  4. make uboot-rebuild

Here, buildroot successfully completed the uboot rebuild, and I did not encounter the issue you mentioned.

Have you made any other modifications?

— Reply to this email directly, view it on GitHub https://github.com/OpenNuvoton/MA35D1_Buildroot/issues/20#issuecomment-2235492553, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD2MUWLZYEQR34SSFV7SVBTZM5H35AVCNFSM6AAAAABLB2BWK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVGQ4TENJVGM . You are receiving this because you authored the thread.Message ID: @.***>

Nachiketha0509 commented 4 months ago

we made all these changes according to the document i am uploading . Nuvoton_NUC980_5.10-SDRootfs_EN.pdf Thanks

Nachiketha0509 commented 4 months ago

Then we made the replacement of the nuc980_iot.h file and made the changes in the nuc980_evb.h file and ran the make uboot-rebuild command which gives error we also followed this documnt the chapter 8 to make the required changes in make uboot-menuconfig NUC980 U-Boot v2016_11 User Manual EN.pdf

ychuang3 commented 4 months ago

osboxes@a28aa0606c51:~/shared/buildroot/nuc980/510$ make uboot-rebuild

rm -f /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.stamp_installed

rm -f /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.stamp_staging_installed

rm -f /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.stamp_target_installed

rm -f /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.stamp_images_installed

rm -f /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.stamp_host_installed

rm -f /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.stamp_built

uboot custom Building

PATH="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin:/home/osboxes/shared/buildroot/nuc980/510/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/osboxes/shared/buildroot/nuc980/510/output/host/usr/bin" AR="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-ar" AS="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-as" LD="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-ld" NM="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-nm" CC="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-gcc" GCC="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-gcc" CPP="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-cpp" CXX="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-g++" FC="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-gfortran" F77="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-gfortran" RANLIB="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-ranlib" READELF="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-readelf" STRIP="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-strip" OBJCOPY="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-objcopy" OBJDUMP="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/osboxes/shared/buildroot/nuc980/510/output/host/include" CFLAGS_FOR_BUILD="-O2 -I/home/osboxes/shared/buildroot/nuc980/510/output/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/osboxes/shared/buildroot/nuc980/510/output/host/include" LDFLAGS_FOR_BUILD="-L/home/osboxes/shared/buildroot/nuc980/510/output/host/lib -Wl,-rpath,/home/osboxes/shared/buildroot/nuc980/510/output/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-as" DEFAULT_LINKER="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/pkg-config" STAGING_DIR="/home/osboxes/shared/buildroot/nuc980/510/output/host/arm-nuvoton-linux-uclibcgnueabi/sysroot" INTLTOOL_PERL=/usr/bin/perl PKG_CONFIG="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/osboxes/shared/buildroot/nuc980/510/output/host/lib/pkgconfig:/home/osboxes/shared/buildroot/nuc980/510/output/host/share/pkgconfig" /usr/bin/make -j9 -C /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom CROSS_COMPILE="/home/osboxes/shared/buildroot/nuc980/510/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-" ARCH=arm HOSTCC="/usr/bin/gcc -O2 -isystem /home/osboxes/shared/buildroot/nuc980/510/output/host/include" HOSTLDFLAGS="-L/home/osboxes/shared/buildroot/nuc980/510/output/host/lib -Wl,-rpath,/home/osboxes/shared/buildroot/nuc980/510/output/host/lib" all

make[1]: Entering directory '/home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom'

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/config.h

CFG u-boot.cfg

GEN include/autoconf.mk.dep

CFG spl/u-boot.cfg

GEN include/autoconf.mk

GEN spl/include/autoconf.mk

CHK include/config/uboot.release

CHK include/generated/timestamp_autogenerated.h

UPD include/generated/timestamp_autogenerated.h

CHK include/generated/version_autogenerated.h

CC lib/asm-offsets.s

CC arch/arm/lib/asm-offsets.s

CHK include/generated/asm-offsets.h

CHK include/generated/generic-asm-offsets.h

LDS u-boot.lds

HOSTCC tools/envcrc.o

HOSTCC tools/common/env_embedded.o

HOSTCC tools/mkenvimage.o

HOSTCC tools/fit_image.o

HOSTCC tools/image-host.o

HOSTCC tools/dumpimage.o

HOSTCC tools/mkimage.o

HOSTLD tools/envcrc

tools/mkimage.c: In function ‘process_args’:

tools/mkimage.c:219:26: warning: implicit declaration of function ‘genimg_get_encrypt_id’; did you mean ‘genimg_get_comp_id’? [-Wimplicit-function-declaration]

219 | if ((params.encrypt = genimg_get_encrypt_id (optarg)) < 0)

  |                          ^~~~~~~~~~~~~~~~~~~~~

  |                          genimg_get_comp_id

tools/mkimage.c:270:27: warning: implicit declaration of function ‘genimg_get_checksum_id’; did you mean ‘genimg_get_comp_id’? [-Wimplicit-function-declaration]

270 | if ((params.checksum = genimg_get_checksum_id (optarg)) < 0)

  |                           ^~~~~~~~~~~~~~~~~~~~~~

  |                           genimg_get_comp_id

tools/mkimage.c: In function ‘main’:

tools/mkimage.c:471:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]

471 | write(ifd,ch, 16 - (sbuf.st_size % 16));

  |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tools/mkimage.c:661:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]

661 | write(ifd,ch, 16 - (sbuf.st_size % 16));

  |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tools/mkimage.c: In function ‘_read_key’:

tools/mkimage.c:350:17: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]

350 | read(kfd, buf[line], 11);

  |                 ^~~~~~~~~~~~~~~~~~~~~~~~

HOSTLD tools/mkenvimage

HOSTLD tools/dumpimage

HOSTLD tools/mkimage

CC arch/arm/cpu/arm926ejs/cpu.o

CC arch/arm/cpu/arm926ejs/cache.o

CC board/nuvoton/nuc980/nuc980.o

CC disk/part.o

CC arch/arm/cpu/arm926ejs/nuc980/cpu.o

AS arch/arm/lib/vectors.o

AS arch/arm/lib/crt0.o

CC drivers/block/blk_legacy.o

AS arch/arm/lib/relocate.o

AS arch/arm/cpu/arm926ejs/start.o

CC board/nuvoton/nuc980/cmd_rtc_spare.o

CC arch/arm/lib/bootm-fdt.o

CC drivers/crypto/fsl/sec.o

CC arch/arm/lib/bootm.o

CC cmd/boot.o

CC arch/arm/cpu/arm926ejs/nuc980/timer.o

board/nuvoton/nuc980/cmd_rtc_spare.c: In function ‘do_rtcspare’:

board/nuvoton/nuc980/cmd_rtc_spare.c:86:12: warning: assignment to ‘u32 ’ {aka ‘unsigned int ’} from ‘ulong’ {aka ‘long unsigned int’} makes pointer from integer without a cast [-Wint-conversion]

86 | buffer = simple_strtoul(argv[2], NULL, 16);

  |            ^

board/nuvoton/nuc980/cmd_rtc_spare.c:69:6: warning: unused variable ‘u32data’ [-Wunused-variable]

69 | u32 u32data[16];

  |      ^~~~~~~

CC arch/arm/cpu/arm926ejs/nuc980/reset.o

CC common/init/board_init.o

LD disk/built-in.o

LD drivers/block/built-in.o

LD board/nuvoton/nuc980/built-in.o

LD drivers/crypto/fsl/built-in.o

CC common/main.o

CC cmd/bootm.o

LD drivers/crypto/built-in.o

CC drivers/input/input.o

CC common/exports.o

CC drivers/pcmcia/tqm8xx_pcmcia.o

CC arch/arm/lib/stack.o

LD common/init/built-in.o

LD arch/arm/cpu/arm926ejs/nuc980/built-in.o

CC common/hash.o

LD arch/arm/cpu/arm926ejs/built-in.o

CC common/cli_hush.o

CC drivers/mtd/mtdcore.o

LD drivers/pcmcia/built-in.o

CC arch/arm/lib/interrupts.o

CC arch/arm/lib/reset.o

In file included from drivers/mtd/mtdcore.c:34:

include/linux/log2.h:19:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]

19 | int ____ilog2_NaN(void);

  | ^~~

CC drivers/mtd/nand/nand.o

CC cmd/help.o

CC drivers/mtd/nand/nand_bbt.o

CC common/autoboot.o

CC cmd/version.o

CC arch/arm/lib/cache.o

CC arch/arm/lib/cache-cp15.o

CC cmd/source.o

CC drivers/mtd/mtd_uboot.o

CC cmd/bdinfo.o

LD drivers/input/built-in.o

CC common/board_f.o

CC common/board_r.o

CC arch/arm/lib/psci-dt.o

CC drivers/rtc/date.o

CC common/board_info.o

CC drivers/mtd/mtdpart.o

CC cmd/bootefi.o

AS arch/arm/lib/ashldi3.o

LD drivers/rtc/built-in.o

AS arch/arm/lib/ashrdi3.o

CC drivers/mtd/nand/nand_ids.o

CC drivers/mtd/nand/nand_util.o

CC common/bootm.o

AS arch/arm/lib/div64.o

LD drivers/built-in.o

AS arch/arm/lib/lib1funcs.o

CC cmd/console.o

CC cmd/echo.o

AS arch/arm/lib/lshrdi3.o

AS arch/arm/lib/muldi3.o

CC drivers/mtd/nand/nand_ecc.o

AS arch/arm/lib/uldivmod.o

CC drivers/mtd/spi/sf_probe.o

CC common/bootm_os.o

LD drivers/mtd/built-in.o

CC cmd/elf.o

CC arch/arm/lib/eabi_compat.o

CC common/env_attr.o

CC drivers/mtd/spi/spi_flash.o

In file included from drivers/mtd/spi/spi_flash.c:18:

include/linux/log2.h:19:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]

19 | int ____ilog2_NaN(void);

  | ^~~

drivers/mtd/spi/spi_flash.c:74:12: warning: ‘write_sr’ defined but not used [-Wunused-function]

74 | static int write_sr(struct spi_flash *flash, u8 ws)

  |            ^~~~~~~~

CC drivers/mtd/spi/sf_params.o

LD arch/arm/lib/built-in.o

CC common/env_callback.o

AR arch/arm/lib/lib.a

CC drivers/mtd/nand/nand_base.o

CC drivers/mtd/spi/sf.o

CC drivers/mtd/spi/spi_nand.o

CC drivers/mtd/nand/nand_timings.o

CC cmd/exit.o

CC drivers/mtd/nand/nuc980_nand.o

CC common/env_flags.o

CC drivers/mtd/ubi/attach.o

CC common/env_nand.o

CC common/fdt_support.o

drivers/mtd/nand/nand_base.c: In function ‘nand_scan’:

drivers/mtd/nand/nand_base.c:4273:9: warning: ‘ret’ is used uninitialized in this function [-Wuninitialized]

4273 | return ret;

  |         ^~~

CC drivers/mtd/ubi/build.o

In file included from drivers/mtd/ubi/build.c:34:

include/linux/log2.h:19:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]

19 | int ____ilog2_NaN(void);

  | ^~~

CC cmd/fdt.o

CC common/flash.o

CC common/splash.o

CC common/env_common.o

CC drivers/mtd/ubi/vtbl.o

CC cmd/itest.o

CC drivers/mtd/ubi/vmt.o

CC common/console.o

CC cmd/load.o

LD drivers/mtd/spi/built-in.o

CC drivers/mtd/ubi/upd.o

CC common/dlmalloc.o

CC common/image.o

CC drivers/mtd/ubi/kapi.o

CC drivers/mtd/ubi/eba.o

CC drivers/mtd/ubi/io.o

CC cmd/mem.o

CC drivers/mtd/ubi/wl.o

CC drivers/serial/serial.o

CC cmd/misc.o

CC cmd/mtdparts.o

CC common/image-fdt.o

CC cmd/nand.o

CC drivers/serial/serial_nuc980.o

CC common/memsize.o

CC common/stdio.o

CC common/cli_simple.o

CC drivers/mtd/ubi/misc.o

LD drivers/serial/built-in.o

CC drivers/spi/spi.o

CC drivers/mtd/ubi/debug.o

LD drivers/mtd/nand/built-in.o

CC drivers/spi/nuc980_spi.o

CC common/cli.o

CC cmd/net.o

LD drivers/mtd/ubi/built-in.o

CC cmd/pcmcia.o

CC cmd/sf.o

CC common/cli_readline.o

CC common/command.o

CC cmd/spi.o

CC cmd/test.o

CC common/s_record.o

CC cmd/ubi.o

LD drivers/spi/built-in.o

CC common/xyzModem.o

CC cmd/ubifs.o

CC cmd/ximg.o

CC cmd/nvedit.o

CC fs/fs.o

CC net/checksum.o

CC net/arp.o

CC net/bootp.o

LD common/built-in.o

CC fs/ubifs/ubifs.o

CC fs/ubifs/io.o

CC net/eth_legacy.o

CC net/eth_common.o

CC lib/efi_loader/efi_image_loader.o

CC net/net.o

LD cmd/built-in.o

CC net/nfs.o

CC fs/ubifs/super.o

CC fs/ubifs/sb.o

CC lib/efi_loader/efi_boottime.o

CC lib/efi_loader/efi_runtime.o

In file included from fs/ubifs/super.c:35:

include/linux/log2.h:19:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]

19 | int ____ilog2_NaN(void);

  | ^~~

CC fs/ubifs/master.o

CC spl/arch/arm/cpu/arm926ejs/cpu.o

CC fs/ubifs/lpt.o

CC fs/ubifs/lpt_commit.o

CC spl/arch/arm/cpu/arm926ejs/cache.o

AS spl/arch/arm/lib/vectors.o

CC lib/libfdt/fdt.o

CC net/tftp.o

AS spl/arch/arm/lib/crt0.o

CC lib/efi_loader/efi_console.o

AS spl/arch/arm/cpu/arm926ejs/start.o

CC spl/arch/arm/cpu/arm926ejs/nuc980/cpu.o

CC spl/arch/arm/lib/stack.o

CC spl/arch/arm/cpu/arm926ejs/nuc980/reset.o

CC lib/libfdt/fdt_ro.o

CC spl/arch/arm/lib/interrupts.o

CC lib/efi_loader/efi_memory.o

LD net/built-in.o

CC lib/efi_loader/efi_disk.o

LD spl/arch/arm/cpu/arm926ejs/nuc980/built-in.o

LD spl/arch/arm/cpu/arm926ejs/built-in.o

CC lib/efi_loader/efi_net.o

CC fs/ubifs/scan.o

CC spl/arch/arm/lib/reset.o

CC lib/efi_loader/efi_smbios.o

CC spl/board/nuvoton/nuc980/spinand_boot.o

CC fs/ubifs/lprops.o

CC spl/arch/arm/lib/cache.o

CC spl/common/init/board_init.o

CC lib/lzo/lzo1x_decompress.o

CC lib/libfdt/fdt_rw.o

LD lib/efi_loader/built-in.o

LD spl/common/init/built-in.o

CC lib/zlib/zlib.o

CC spl/board/nuvoton/nuc980/wb_spinand.o

CC spl/board/nuvoton/nuc980/string.o

CC spl/arch/arm/lib/cache-cp15.o

CC spl/board/nuvoton/nuc980/serial_nuc980.o

CC spl/arch/arm/lib/psci-dt.o

CC spl/board/nuvoton/nuc980/serial.o

AS spl/arch/arm/lib/ashldi3.o

CC spl/board/nuvoton/nuc980/nuc980_sysprintf.o

LD lib/lzo/built-in.o

CC spl/board/nuvoton/nuc980/vsprintf.o

AS spl/arch/arm/lib/ashrdi3.o

CC fs/ubifs/tnc.o

CC lib/libfdt/fdt_strerror.o

CC spl/board/nuvoton/nuc980/console.o

AS spl/arch/arm/lib/div64.o

CC lib/libfdt/fdt_sw.o

AS spl/arch/arm/lib/lib1funcs.o

CC lib/libfdt/fdt_wip.o

CC lib/libfdt/fdt_empty_tree.o

AS spl/arch/arm/lib/lshrdi3.o

CC lib/libfdt/fdt_addresses.o

CC lib/gunzip.o

AS spl/arch/arm/lib/muldi3.o

AS spl/arch/arm/lib/uldivmod.o

CC lib/smbios.o

CC lib/initcall.o

CC lib/lmb.o

CC spl/arch/arm/lib/eabi_compat.o

CC lib/libfdt/fdt_region.o

CC fs/ubifs/tnc_misc.o

CC fs/ubifs/debug.o

LD spl/board/nuvoton/nuc980/built-in.o

CC lib/net_utils.o

LD spl/arch/arm/lib/built-in.o

AR spl/arch/arm/lib/lib.a

LDS spl/u-boot-spl.lds

LD lib/libfdt/built-in.o

CC lib/qsort.o

CC lib/rc4.o

CC lib/rbtree.o

CC lib/list_sort.o

LD spl/u-boot-spl

OBJCOPY spl/u-boot-spl-nodtb.bin

COPY spl/u-boot-spl.bin

CC lib/hashtable.o

CC fs/ubifs/budget.o

CC lib/display_options.o

LD lib/zlib/built-in.o

CC lib/crc32.o

CC fs/ubifs/log.o

CC lib/hang.o

CC fs/ubifs/orphan.o

CC lib/linux_compat.o

CC lib/linux_string.o

CC lib/membuff.o

CC lib/slre.o

CC lib/string.o

CC lib/tables_csum.o

CC lib/time.o

CC lib/vsprintf.o

CC fs/ubifs/recovery.o

CC lib/panic.o

CC lib/strto.o

CC fs/ubifs/replay.o

CC fs/ubifs/gc.o

CC lib/strmhz.o

LD lib/built-in.o

LD fs/ubifs/built-in.o

LD fs/built-in.o

CC examples/standalone/hello_world.o

CC examples/standalone/stubs.o

LD examples/standalone/libstubs.o

LD examples/standalone/hello_world

OBJCOPY examples/standalone/hello_world.srec

OBJCOPY examples/standalone/hello_world.bin

LD u-boot

OBJCOPY u-boot.srec

OBJCOPY u-boot-nodtb.bin

SYM u-boot.sym

COPY u-boot.bin

./scripts/check-config.sh u-boot.cfg \

./scripts/config_whitelist.txt . 1>&2

make[1]: Leaving directory '/home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom'

uboot custom Installing to target

uboot custom Installing to images directory

cp -dpf /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/u-boot.bin /home/osboxes/shared/buildroot/nuc980/510/output/images/

comm: /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.files-list.before: No such file or directory

comm: /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.files-list-staging.before: No such file or directory

comm: /home/osboxes/shared/buildroot/nuc980/510/output/build/uboot-custom/.files-list-host.before: No such file or directory

osboxes@a28aa0606c51:~/shared/buildroot/nuc980/510$

Nachiketha0509 commented 4 months ago

@set -e; echo ' LD u-boot'; /home/dell/work/nuvoton/MA35D1_Buildroot/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd -pie --gc-sections -Bstatic -Ttext 0xE00000 -o u-boot -T u-boot.lds arch/arm/cpu/arm926ejs/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/arm926ejs/built-in.o arch/arm/lib/built-in.o board/nuvoton/nuc980/built-in.o cmd/built-in.o common/built-in.o disk/built-in.o drivers/built-in.o drivers/dma/built-in.o drivers/gpio/built-in.o drivers/i2c/built-in.o drivers/mmc/built-in.o drivers/mtd/built-in.o drivers/mtd/nand/built-in.o drivers/mtd/onenand/built-in.o drivers/mtd/spi/built-in.o drivers/mtd/ubi/built-in.o drivers/net/built-in.o drivers/net/phy/built-in.o drivers/pci/built-in.o drivers/power/built-in.o drivers/power/battery/built-in.o drivers/power/domain/built-in.o drivers/power/fuel_gauge/built-in.o drivers/power/mfd/built-in.o drivers/power/pmic/built-in.o drivers/power/regulator/built-in.o drivers/serial/built-in.o drivers/spi/built-in.o drivers/usb/common/built-in.o drivers/usb/dwc3/built-in.o drivers/usb/emul/built-in.o drivers/usb/eth/built-in.o drivers/usb/gadget/built-in.o drivers/usb/gadget/udc/built-in.o drivers/usb/host/built-in.o drivers/usb/musb-new/built-in.o drivers/usb/musb/built-in.o drivers/usb/phy/built-in.o drivers/usb/ulpi/built-in.o fs/built-in.o lib/built-in.o net/built-in.o test/built-in.o test/dm/built-in.o --end-group arch/arm/lib/eabi_compat.o arch/arm/lib/lib.a -Map u-boot.map; printf '%s\n' 'cmd_u-boot := /home/dell/work/nuvoton/MA35D1_Buildroot/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-ld.bfd -pie --gc-sections -Bstatic -Ttext 0xE00000 -o u-boot -T u-boot.lds arch/arm/cpu/arm926ejs/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/arm926ejs/built-in.o arch/arm/lib/built-in.o board/nuvoton/nuc980/built-in.o cmd/built-in.o common/built-in.o disk/built-in.o drivers/built-in.o drivers/dma/built-in.o drivers/gpio/built-in.o drivers/i2c/built-in.o drivers/mmc/built-in.o drivers/mtd/built-in.o drivers/mtd/nand/built-in.o drivers/mtd/onenand/built-in.o drivers/mtd/spi/built-in.o drivers/mtd/ubi/built-in.o drivers/net/built-in.o drivers/net/phy/built-in.o drivers/pci/built-in.o drivers/power/built-in.o drivers/power/battery/built-in.o drivers/power/domain/built-in.o drivers/power/fuel_gauge/built-in.o drivers/power/mfd/built-in.o drivers/power/pmic/built-in.o drivers/power/regulator/built-in.o drivers/serial/built-in.o drivers/spi/built-in.o drivers/usb/common/built-in.o drivers/usb/dwc3/built-in.o drivers/usb/emul/built-in.o drivers/usb/eth/built-in.o drivers/usb/gadget/built-in.o drivers/usb/gadget/udc/built-in.o drivers/usb/host/built-in.o drivers/usb/musb-new/built-in.o drivers/usb/musb/built-in.o drivers/usb/phy/built-in.o drivers/usb/ulpi/built-in.o fs/built-in.o lib/built-in.o net/built-in.o test/built-in.o test/dm/built-in.o --end-group arch/arm/lib/eabi_compat.o arch/arm/lib/lib.a -Map u-boot.map' > ./.u-boot.cmd

RELOC="/home/dell/work/nuvoton/MA35D1_Buildroot/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-readelf -r -W u-boot | cut -d ' ' -f 4 | \ grep R_A | sort -u"; \ if test "$RELOC" != "R_ARM_RELATIVE" -a \ "$RELOC" != "R_AARCH64_RELATIVE"; then \ echo "u-boot contains unexpected relocations: $RELOC"; \ false; \ fi

@set -e; echo ' OBJCOPY u-boot.srec'; /home/dell/work/nuvoton/MA35D1_Buildroot/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-objcopy --gap-fill=0xff -j .text -j .secure_text -j .secure_data -j .rodata -j .hash -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn -j .efi_runtime -j .efi_runtime_rel -O srec u-boot u-boot.srec; printf '%s\n' 'cmd_u-boot.srec := /home/dell/work/nuvoton/MA35D1_Buildroot/output/host/bin/arm-nuvoton-linux-uclibcgnueabi-objcopy --gap-fill=0xff -j .text -j .secure_text -j .secure_data -j .rodata -j .hash -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn -j .efi_runtime -j .efi_runtime_rel -O srec u-boot u-boot.srec' > ./.u-boot.srec.cmd

readelf: Error: 'u-boot': No such file u-boot contains unexpected relocations: make[2]: [Makefile:1396: checkarmreloc] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [package/pkg-generic.mk:250: /home/dell/work/nuvoton/MA35D1_Buildroot/output/build/uboot-custom/.stamp_built] Error 2 make: [Makefile:84: _all] Error 2

We are getting thse errors when we run the make uboot-rebuild

ychuang3 commented 4 months ago

Can you make a clean build for uboot with no any modifications to the origin BSP?

rm -rf output/build/uboot-custom
rm -rf dl/uboot
make uboot-rebuild

I supposed it should be fine. If yes, do your modifications one by one to find out the root cause.

Nachiketha0509 commented 4 months ago

image Hi Can you please help us solve this issue? This is after flashing all the images into the SD card and logging into the serial terminal we are getting this error and no commands are being detected and we are unable to mount anything Thanks and regards