public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] new uboot with relocation change cannot boot when download the bin file to different address than TEXT_BASE
Date: Sat, 09 Oct 2010 11:23:45 +0200	[thread overview]
Message-ID: <4CB034A1.4010006@free.fr> (raw)
In-Reply-To: <AANLkTim7TQz3dhQbgHkzkOzRRcOpw5L+8P_pmTcyJJXo@mail.gmail.com>

Le 09/10/2010 11:08, Lei Wen a ?crit :

> Ok, I know what the difference between our opinion now...
> You means the uboot should always loaded to TEXT_BASE(for nand case,
> as you said).
> So when we run to board_init_f, we don't need any relocation.
>
> I am just feel put the code arrange like this would lose a good
> feature as original, tftp the uboot to
> a different place and use the go command to debug it.

This does not lose said feature. You can still disable relocation 
altogether by defining CONFIG_SKIP_RELOCATE_UBOOT (watch out then; 
you're responsible for linking u-boot for its intended *final* location).

> Another question here, why the original implementation now call as
> CONFIG_SYS_ARM_WITHOUT_RELOC?

Means "this ARM build is without relocation", which is what the option does.

> I think CONFIG_SYS_ARM_WITH_RELOC is correct, for it do the relocation
> at the very begining. :-p

Read the code carefully. You'll see that the old code is used when 
CONFIG_SYS_ARM_WITHOUT_RELOC is defined, and the new (reloc) code used 
when CONFIG_SYS_ARM_WITHOUT_RELOC is not define.

> Best regards,
> Lei

Amicalement,
-- 
Albert.

      reply	other threads:[~2010-10-09  9:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-09  5:50 [U-Boot] new uboot with relocation change cannot boot when download the bin file to different address than TEXT_BASE Lei Wen
2010-10-09  6:27 ` Graeme Russ
2010-10-09  6:48   ` Lei Wen
2010-10-09 17:50     ` Wolfgang Denk
2010-10-10  4:33       ` Lei Wen
2010-10-10  6:48         ` Albert ARIBAUD
2010-10-10  6:50         ` Wolfgang Denk
2010-10-10  9:00           ` Lei Wen
2010-10-09  7:43 ` Albert ARIBAUD
2010-10-09  7:53   ` Lei Wen
2010-10-09  8:10     ` Albert ARIBAUD
2010-10-09  8:18       ` Albert ARIBAUD
2010-10-09  8:24       ` Lei Wen
2010-10-09  8:57         ` Albert ARIBAUD
2010-10-09  9:08           ` Lei Wen
2010-10-09  9:23             ` Albert ARIBAUD [this message]

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=4CB034A1.4010006@free.fr \
    --to=albert.aribaud@free.fr \
    --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