From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Segmented RAM, big userspace.
Date: Tue, 13 Dec 2011 19:14:56 +0100 [thread overview]
Message-ID: <20111213181456.4EF1F8223E@gemini.denx.de> (raw)
In-Reply-To: <20111213165113.GA27964@build.ihdev.net>
Dear Sergey Lapin,
In message <20111213165113.GA27964@build.ihdev.net> you wrote:
>
> > > 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.
You are not supposed to "specify" RAM sizes. You should use
get_ram_size() to auto-detect the installed size, and do this
separately for each bank of memory.
I'm not sure if the relocation code on ARM makes any assumptions that
the memory is contiguous, but it should be relatively easy to fix so
that it always relocates to the end of the last (highest) bank of
memory.
> > 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.
Linx MMC drivers and file system code will probably be way faster
than what we have in U-Boot, and you can inteleave reading from MMC
with writing to NAND - actually you can do it fully in parallel uner
Linux (using for example "buffer" or similar tools).
Until you really measure it you should not make assumptions which way
is faster.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God made the integers; all else is the work of Man. - Kronecker
next prev parent reply other threads:[~2011-12-13 18:14 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
2011-12-13 18:14 ` Wolfgang Denk [this message]
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=20111213181456.4EF1F8223E@gemini.denx.de \
--to=wd@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