From: Sergey Lapin <slapin@ossfans.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Segmented RAM, big userspace.
Date: Tue, 13 Dec 2011 11:51:13 -0500 [thread overview]
Message-ID: <20111213165113.GA27964@build.ihdev.net> (raw)
In-Reply-To: <20111213162422.2D6651A2F5A9@gemini.denx.de>
On Tue, Dec 13, 2011 at 05:24:22PM +0100, Wolfgang Denk wrote:
> Dear Sergey Lapin,
>
> In message <20111213160810.GA27440@build.ihdev.net> you wrote:
> >
> > We have a board, based on s3c2416, with 128MB of RAM
> > and 1GB of NAND flash.
> > RAM is organized as 2 memory banks with far placed bases:
> > TOP
> > UNUSED 64MB
> > 64MB SDRAM
> > --- 128MB segment base 1 -----
> > UNUSED 64MB
> > 64MB SDRAM
> > -- 128MB segment base 0 ------
> > BOTTOM
> >
> > So we could have only 64MB as one piece; Due to u-boot reloaction code we
> > need to have u-boot in first 64MB also. ...
>
> Why would that be the case?
If we specify memory size as 128MB (gd->ram_size) u-boot reloacates itself to unused
part of first memory bank instead of the end of second bank, which
actually makes it fail badly.
If we specify memory size to 64MB, u-boot works, but we lose
access to second segment (segment 1). Or at least have not really
comfortable placement.
>
> I would expect that U-Boot (with all it's heap and stack and
> everything) sits only at the upper end of the upper bank of memory (in
> your sgment 1).
>
> > ... . And now we have root filesystem
> > which we need to flash using u-boot, which is a little over this 64MB limit.
>
> Split it?
There comes issue of NAND bad blocks.
>
> > Is there some way to use second memory bank from u-boot?
> > Is it possible to tftp file in parts and flash it on NAND in parts?
> > (This requires handling of bad blocks too)
> >
> > We need to flash using u-boot, that's requirement for speedy production.
>
> I somewhat doubt that. Booting Linux is probably a matter of 2 or 3
> seconds, or less. You migth save that time again by using Linux' much
> better performing network stack, together with interleaving network
> traffic and flash writing.
>
> If I were in this situation, I'd probably run this under Linux.
Well, we already running production using u-boot.
And on production devices we have no (fast) network access.
We boot u-boot from mmc, which flashes images on the same card
and then boots device. I can't see how faster we can be with Linux,
which will add several more seconds to boot.
tftp is needed for development and images actually can be split, but
it is quite hard to flash them properly.
Thanks a lot,
S.
next prev parent reply other threads:[~2011-12-13 16:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-13 16:08 [U-Boot] Segmented RAM, big userspace Sergey Lapin
2011-12-13 16:24 ` Wolfgang Denk
2011-12-13 16:51 ` Sergey Lapin [this message]
2011-12-13 18:14 ` Wolfgang Denk
2011-12-13 20:00 ` 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=20111213165113.GA27964@build.ihdev.net \
--to=slapin@ossfans.org \
--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