From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin
Date: Fri, 19 Jul 2013 11:16:33 +0200 [thread overview]
Message-ID: <20130719111633.32c8745a@lilith> (raw)
In-Reply-To: <FE7ADED5C2218B4786C09CD97DC4C49F99D712@exchbj02.viatech.com.bj>
Hi TigerLiu at viatech.com.cn,
On Fri, 19 Jul 2013 14:59:47 +0800, <TigerLiu@viatech.com.cn> wrote:
> Hi, Albert:
> I found new u-boot source code had some PIC related question.
> I succeeded to boot self-uncompressed u-boot.bin now.
>
> I reviewed self-uncompressed header code (similar with Linux kernel
> piggy header), found:
> The header code would de-compress compressed uboot.bin to 0x0000 8000
> dram location, and then jump to run it.
No wonder it did not work... The decompressing code should decompress at
the expected location (and be careful that the decompressed code not
overwrite the compressed one or the decompressing code), not at a fixed
one.
> Because i compiled uboot with "SYS_TEXT_BASE=0x03F80000" in board.cfg
> before.
> So boot failed.
Yes, clearly the board config and decompressor settings are
incompatible. However:
> Now, I changed SYS_TEXT_BASE=0x08000000 in boards.cfg.
> So, boot the compressed u-boot.bin successfully!
I don't think this is a clean fix, for two reasons:
1) Barring any typos, the address you changed the board config to,
0x80000000, is different from the address at which the decompressor
apparently writes to, 0x00008000.
1) Be it 0x00008000 or 0x80000000, neither of these addresses is the
one where U-Boot on your board is supposed to run; it only works for
sure at the original SYS_TEXT_BASE, 0x03F80000.
Can you not change the decompressor's target address to the board's
SYS_TEXT_BASE?
> Best wishes,
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-19 9:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 6:59 [U-Boot] [U-boot] failed to boot an compressed u-boot.bin TigerLiu at viatech.com.cn
2013-07-19 9:16 ` Albert ARIBAUD [this message]
2013-07-19 9:25 ` [U-Boot] 答复: " TigerLiu at viatech.com.cn
2013-07-19 12:03 ` [U-Boot] " Albert ARIBAUD
2013-07-22 1:53 ` TigerLiu at viatech.com.cn
-- strict thread matches above, loose matches on Subject: below --
2013-07-17 11:53 TigerLiu at viatech.com.cn
2013-07-17 13:07 ` Albert ARIBAUD
2013-07-18 1:32 ` TigerLiu at viatech.com.cn
2013-07-18 4:27 ` Wolfgang Denk
2013-07-18 4:41 ` TigerLiu at viatech.com.cn
2013-07-18 8:08 ` Wolfgang Denk
2013-07-18 8:31 ` TigerLiu at viatech.com.cn
2013-07-18 12:50 ` Wolfgang Denk
2013-07-19 5:37 ` Minkyu Kang
2013-07-17 11:51 TigerLiu at viatech.com.cn
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=20130719111633.32c8745a@lilith \
--to=albert.u.boot@aribaud.net \
--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