board_init.c file not compiled
Chan Kim
ckim at etri.re.kr
Tue Nov 16 11:05:42 CET 2021
Hello all,
I'm new to u-boot and having difficulty while trying to build u-boot for our
test board.(arm64, armv8)
I wanted to try the "SPL falcon" mode". The DDR is not ready yet in the
board.
A small scp chip(cortex-M7) will initialize clk and will load
kernel(including initramfs), dtb, u-boot-spl, images to a small internal
RAM.
And the AP chip will start from the u-boot-spl. (I know some low-level init
can be skipped)
I added SPL related config settings and ran this command.
make CROSS_COMPILE=aarch64-none-elf- ab21m_defconfig
make CROSS_COMPILE=aarch64-none-elf-
I see "u-boot/arch/arm/lib/crt0_64.S:88: undefined reference to
`board_init_f_alloc_reserve'" error during the u-boot build. (not related to
SPL).
By comparing the build process with that of rk3036 board (arm board with
SUPPORT_SPL, no SUPPORT_TPL), I found in my case even common/board_init.c is
not compiled.
Where should I look? I'm reading the documents or build scripts here and
there but can't figure it out.
Thank you.
Chan Kim
More information about the U-Boot
mailing list