From: Helmut Raiger <helmut.raiger@hale.at>
To: u-boot@lists.denx.de
Subject: [U-Boot] Chain loading an u-boot from an u-boot
Date: Thu, 13 Feb 2014 10:03:23 +0100 [thread overview]
Message-ID: <52FC8A5B.7090506@hale.at> (raw)
In-Reply-To: <52FB50C5.3040400@gmail.com>
On 02/12/2014 11:45 AM, Andreas Bie?mann wrote:
> Hi Helmut,
>
> On 02/12/2014 10:56 AM, Helmut Raiger wrote:
>>> I understand the first two points, but why do you store the kernel again
>>> with 1bit HW-ECC ? The second U-Boot is able to check with 4bit BCH and
>>> your NAND requires 4bit.
>> This is mainly due to performance requirements. Using 4bit BCH
>> increases overhead and makes DMA (currently not used in the
>> kernel driver) a lot slower. We thought we might slip through with
>> 1bit HW-ECC, but we will test this (hopefully not in the field this time
>> ;-) )
> If your HW requires 4Bit it is highly recommended to do so. You will run
> your HW out of specs in other case and I think it is hard to qualify
> that 4Bit required ECC runs with 1Bit ECC and UBIFS as you stated in a
> previous mail.
You guys are right. I'm just cornered, as performance is a big issue aswell.
We'll try to qualify the NAND in proper climate and some UBIFS supervision
to gain more insight. Its just that teh application software guys suggested
to improve the kernel driver to use DMA to increase overall performance.
>> why another u-boot should be any different?!
> Just thinking ... have you checked the global data pointer? Is it
> possible that the global data of the first u-boot influences the global
> data of the second one?
The global data pointer is setup right before the newly set stack pointer
in arch/arm/lib/crt0.S, so it should be reset anyway.
And answering Stefano's question. The RAM setup is only in
the SPL which is skipped when I jump to the second u-boot.
But you just inspired me! There are probably interrupts running
for some time when the second u-boot starts and the relocation
might destroy part of the interrupt entry points ....
Thx for asking the right questions.
I'll have to check this.
Helmut
--
Scanned by MailScanner.
next prev parent reply other threads:[~2014-02-13 9:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 11:11 [U-Boot] Chain loading an u-boot from an u-boot Helmut Raiger
2014-02-10 12:14 ` Andreas Bießmann
2014-02-10 12:57 ` Helmut Raiger
2014-02-12 21:59 ` Scott Wood
2014-02-13 9:45 ` Helmut Raiger
2014-02-11 9:38 ` Stefano Babic
2014-02-12 9:56 ` Helmut Raiger
2014-02-12 10:41 ` Stefano Babic
2014-02-12 10:45 ` Andreas Bießmann
2014-02-13 9:03 ` Helmut Raiger [this message]
2014-03-31 11:29 ` Helmut Raiger
2014-04-03 23:13 ` Simon Glass
2014-04-04 9:25 ` Stefano Babic
2014-04-09 14:07 ` Helmut Raiger
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=52FC8A5B.7090506@hale.at \
--to=helmut.raiger@hale.at \
--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