public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: Linking Error on env_get("loadaddr")
Date: Tue, 3 Nov 2020 06:56:41 +0900	[thread overview]
Message-ID: <23dae37d-0e27-e3dc-8fdb-1ea5169a88da@samsung.com> (raw)
In-Reply-To: <20201102140908.GA24239@optiplex>

On 11/2/20 11:09 PM, Oliver Graute wrote:
> Hello list,
> 
> I try to use env_get("loadaddr") for a board specific CMD and included
> env.h. But I get the following linking error in nvedit.c. Some clue what
> I miss here? I still use v2020.07.

Did you check whether CONFIG_SPL_ENV_SUPPORT is enabled?

> 
> start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x80020000 $start $end
>   CC      spl/arch/arm/cpu/armv8/fwcall.o
>   LD      spl/arch/arm/cpu/armv8/built-in.o
>   CC      spl/common/spl/spl.o
>   LD      spl/common/spl/built-in.o
>   CC      spl/lib/display_options.o
>   LD      spl/lib/built-in.o
>   LD      spl/u-boot-spl
> cmd/built-in.o: In function `env_match':
> /home/graute/u-boot-test/cmd/nvedit.c:804: undefined reference to `env_get_char'
> /home/graute/u-boot-test/cmd/nvedit.c:808: undefined reference to `env_get_char'
> cmd/built-in.o: In function `env_get_f':
> /home/graute/u-boot-test/cmd/nvedit.c:713: undefined reference to `env_get_char'
> /home/graute/u-boot-test/cmd/nvedit.c:716: undefined reference to `env_get_char'
> /home/graute/u-boot-test/cmd/nvedit.c:729: undefined reference to `env_get_char'
> cmd/built-in.o: In function `env_get':
> /home/graute/u-boot-test/cmd/nvedit.c:677: undefined reference to `env_htab'
> /home/graute/u-boot-test/cmd/nvedit.c:677: undefined reference to `env_htab'
> lib/built-in.o: In function `hsearch_r':
> /home/graute/u-boot-test/lib/hashtable.c:402: undefined reference to `env_flags_init'
> scripts/Makefile.spl:422: recipe for target 'spl/u-boot-spl' failed
> make[1]: *** [spl/u-boot-spl] Error 1
> Makefile:1926: recipe for target 'spl/u-boot-spl' failed
> make: *** [spl/u-boot-spl] Error 2
> 
> 
> Best Regards,
> 
> Oliver
> 

  reply	other threads:[~2020-11-02 21:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20201102141031epcas1p379a8e0873e822e76cd01d0c01f807ce8@epcas1p3.samsung.com>
2020-11-02 14:09 ` Linking Error on env_get("loadaddr") Oliver Graute
2020-11-02 21:56   ` Jaehoon Chung [this message]
2020-11-03  7:11     ` Oliver Graute

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=23dae37d-0e27-e3dc-8fdb-1ea5169a88da@samsung.com \
    --to=jh80.chung@samsung.com \
    --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