public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Chan Kim" <ckim@etri.re.kr>
To: "U-Boot Mailing List" <u-boot@lists.denx.de>
Subject: RE: board_init.c file not compiled
Date: Thu, 18 Nov 2021 16:53:28 +0900	[thread overview]
Message-ID: <088901d7dc51$5fd5ae60$1f810b20$@etri.re.kr> (raw)
In-Reply-To: 

 

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


             reply	other threads:[~2021-11-18  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18  7:53 Chan Kim [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-16 10:05 board_init.c file not compiled Chan Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='088901d7dc51$5fd5ae60$1f810b20$@etri.re.kr' \
    --to=ckim@etri.re.kr \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox