public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* board_init.c file not compiled
@ 2021-11-16 10:05 Chan Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Chan Kim @ 2021-11-16 10:05 UTC (permalink / raw)
  To: U-Boot Mailing List

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


^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: board_init.c file not compiled
@ 2021-11-18  7:53 Chan Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Chan Kim @ 2021-11-18  7:53 UTC (permalink / raw)
  To: U-Boot Mailing List

 

I knew CONFIG_SPL_BUILD value is supposed to be set by the build system
(Makefille, during spl build).

But I found I had "config SPL_BUILD" with default "y" under my Kconfig in
the board directory.

Because this value was always "y", the board_init.c under common/init and
some other files were not compiled.

So I removed the SPL_BUILD in the board's Kconfig.

Thanks.

Chan Kim

 

From: Chan Kim <ckim@etri.re.kr> 
Sent: Tuesday, November 16, 2021 7:06 PM
To: U-Boot Mailing List <u-boot@lists.denx.de>
Subject: board_init.c file not compiled

 

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-18  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-16 10:05 board_init.c file not compiled Chan Kim
  -- strict thread matches above, loose matches on Subject: below --
2021-11-18  7:53 Chan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox