From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] OpenRD: relocate environment to 640kB
Date: Mon, 15 Jul 2013 13:55:10 +0200 [thread overview]
Message-ID: <20130715135510.7ddcc76a@lilith> (raw)
In-Reply-To: <toeoba49nx1.fsf@twin.sascha.silbe.org>
Hi Sascha,
On Mon, 15 Jul 2013 11:23:54 +0200, Sascha Silbe
<t-uboot@infra-silbe.de> wrote:
> Albert ARIBAUD <albert.u.boot@aribaud.net> writes:
>
> >> The situation has gotten better recently and U-Boot fits into the
> >> previous partition size of 384KiB again. So it isn't broken on OpenRD
> >> anymore and the above would seem like a good approach.
> > How well does it fit again, and do you have any idea what caused the
> > increase in size, and what caused the decrease?
>
> I had the same questions and tried a few buildman runs, but didn't get a
> clear picture. The size was going up and down for various slices of
> commits.
>
> With v2013.07-rc3, we are now at 376344B (? 96% of 384KiB) for
> openrd_ultimate when built on Debian Wheezy using
> gcc-4.7-arm-linux-gnueabi from Emdebian.
Thanks for the info.
> Is there an equivalent to CONFIG_SPL_MAX_SIZE for the "regular" U-Boot?
> Detecting the overlap at build time would prevent bricking the device
> using saveenv at run time. As an additional benefit, commits that push
> the size beyond the limit would also show up in buildman reports as
> build failures.
I don't know of a feature like CONFIG_SPL_MAX_SIZE for regular U-Boot.
You could 'port it over' as something like CONFIG_MAX_IMAGE_SIZE for
U-Boot.
Somehow I gather that an approach like the one I sketched out in
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/165510
could bring benefits like making CONFIG_SPL_MAX_SIZE a feature of a
"constraints" component which could be built as well in U-Boot as in
SPL; but that's at the very early RFC stage anyway -- actually, it drew
no reaction at all so far, leading me to think it's not that useful.
> Sascha
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-15 11:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-27 9:42 [U-Boot] [PATCH] OpenRD: relocate environment to 640kB Sascha Silbe
2013-06-11 10:00 ` Albert ARIBAUD
2013-06-22 9:29 ` Albert ARIBAUD
2013-06-22 20:57 ` Tom Rini
2013-06-25 9:42 ` Sascha Silbe
2013-06-27 9:41 ` Albert ARIBAUD
2013-07-11 16:15 ` Tom Rini
2013-07-11 17:40 ` Albert ARIBAUD
2013-07-11 18:08 ` Tom Rini
2013-07-15 9:23 ` Sascha Silbe
2013-07-15 11:55 ` Albert ARIBAUD [this message]
2013-07-15 12:19 ` Tom Rini
2013-07-29 7:24 ` Albert ARIBAUD
2013-08-11 14:49 ` Sascha Silbe
2013-08-11 14:40 ` [U-Boot] [PATCH 0/3] openrd: Check U-Boot size at build time Sascha Silbe
2013-08-11 14:40 ` [U-Boot] [PATCH 1/3] README: document CONFIG_BOARD_SIZE_LIMIT Sascha Silbe
2014-08-14 14:08 ` Anatolij Gustschin
2013-08-11 14:40 ` [U-Boot] [PATCH 2/3] Makefile: check native boot image sizes against CONFIG_BOARD_SIZE_LIMIT Sascha Silbe
2014-08-14 14:10 ` Anatolij Gustschin
2013-08-11 14:40 ` [U-Boot] [PATCH 3/3] openrd: fail build if U-Boot would overlap with environment in flash Sascha Silbe
2014-08-14 14:09 ` Anatolij Gustschin
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=20130715135510.7ddcc76a@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