From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Setting CONFIG_SYS_TEXT_BASE when CONFIG_NAND_SPL is selected
Date: Tue, 06 Sep 2011 11:56:27 +0200 [thread overview]
Message-ID: <4E65EE4B.1080905@denx.de> (raw)
In-Reply-To: <CAOMZO5B0=MxQXgb9P1NXLX7J6xzNCq2rSeoY_cb1BLsui9s+ow@mail.gmail.com>
On 09/05/2011 09:02 PM, Fabio Estevam wrote:
> Hi,
>
Hi Fabio,
> On a MX31PDK the only boot media is NAND flash, so I was trying to get
> rid of the
> conditional setting of CONFIG_SYS_TEXT_BASE.
>
> CONFIG_NAND_SPL is set in nand_spl/board/freescale/mx31pdk/Makefile.
>
> ,so I tried the following:
>
> diff --git a/board/freescale/mx31pdk/config.mk b/board/freescale/mx31pdk/config.
> index de2c642..b9932ec 100644
> --- a/board/freescale/mx31pdk/config.mk
> +++ b/board/freescale/mx31pdk/config.mk
> @@ -1,5 +1,2 @@
> -ifdef CONFIG_NAND_SPL
> CONFIG_SYS_TEXT_BASE = 0x87ec0000
> -else
> -CONFIG_SYS_TEXT_BASE = 0x87f00000
> -endif
> +
>
> ,but this causes the board not to boot.
>
> Does anyone have any ideas as to why the patch above does not work?
As far as I can see: it seems to me that the config.mk avoid that the
u-boot image overwrites the SPL code, making then impossible to boot.
Is it really copied into CONFIG_SYS_NAND_U_BOOT_DST ?
However, I see that CONFIG_SYS_TEXT_BASE_SPL is set in some boards, and
looks liketo be the correct mechanims to be used to set TEXT_BASE for
the SPL binary.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2011-09-06 9:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-05 19:02 [U-Boot] Setting CONFIG_SYS_TEXT_BASE when CONFIG_NAND_SPL is selected Fabio Estevam
2011-09-06 9:56 ` Stefano Babic [this message]
2011-09-08 19:27 ` Scott Wood
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=4E65EE4B.1080905@denx.de \
--to=sbabic@denx.de \
--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