Bug 15301 - Selecting NAND Flash boot media (NAND_BOOT) breaks the uboot build
Summary: Selecting NAND Flash boot media (NAND_BOOT) breaks the uboot build
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2022.11.1
Hardware: PC Linux
: P5 blocker
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-28 00:14 UTC by Wyatt
Modified: 2023-01-28 20:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wyatt 2023-01-28 00:14:25 UTC
Using "make uboot-menuconfig" and selecting Boot Media -> Support for booting from NAND flash (NAND_BOOT) causes the build to fail with the following.

/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: common/spl/built-in.o: in function `spl_nand_fit_read':

/buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:44: undefined reference to `nand_spl_load_image'

/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: common/spl/built-in.o: in function `spl_nand_load_element':

/buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:56: undefined reference to `nand_spl_load_image'

/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:84: undefined reference to `nand_spl_load_image'

/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: common/spl/built-in.o: in function `spl_nand_load_image':

/buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:102: undefined reference to `nand_init'

/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:166: undefined reference to `nand_deselect'

make[3]: *** [scripts/Makefile.spl:420: spl/u-boot-spl] Error 1

make[2]: *** [Makefile:1864: spl/u-boot-spl] Error 2

make[1]: *** [package/pkg-generic.mk:293: /buildroot/output/build/uboot-lf-5.10.y-1.0.0/.stamp_built] Error 2

make: *** [Makefile:82: _all] Error 2


Target is freescale_imx8mnevk.
Commands issued:
make uboot-menuconfig
Select Boot Media -> Support for booting from NAND flash, exit and save.
make uboot-rebuild all
Comment 1 Thomas Petazzoni 2023-01-28 20:29:27 UTC
Thanks for your bug report, but this is not a Buildroot bug, but a U-Boot bug. It should be reported to the U-Boot community: this bug exists outside of Buildroot, if you build the same version of U-Boot, with the same exact configuration produced by Buildroot, you will reproduce the same issue.