From: Alexandre Belloni <alexandre.belloni@piout.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] AT91SAM9*: Change kernel address in dataflash to match u-boot's size
Date: Tue, 28 Feb 2012 23:57:53 +0100 [thread overview]
Message-ID: <20120228225753.GA16686@piout.net> (raw)
In-Reply-To: <4F4BA04E.7050200@emagii.com>
On Mon, Feb 27, 2012 at 04:25:02PM +0100, Ulf Samuelsson wrote :
> On 2012-02-20 17:40, Alexandre Belloni wrote:
> >On at91sam platforms, u-boot grew larger than the allocated size in
> >dataflash, the layout was:
> >bootstrap 0x00000000
> >ubootenv 0x00004200
> >uboot 0x00008400
> >kernel 0x00042000
> >
> >u-boot with the defconfig doesn't seem to fit in 0x42000 - 0x8400 =
> >0x39C00 bytes anymore.
> >
> >Now, the layout is:
> >bootstrap 0x00000000
> >uboot 0x00004000
> >ubootenv 0x00084000
> >ubootenv2 0x00088000
> >kernel 0x0008C000
> >
>
>
> NAK!
>
> 1. You need to be aware of the page size of dataflashes.
> Each page is 1056 bytes, not 1024 bytes.
> Your patch will make the U-Boot image start in the middle of a page.
Ok, I couldn't find a clear spec on that dataflash...
> 2. Std AT91bootstrap loads U-Boot from 0x8400
> so your patch breaks 99% of all SAM9 boards.
>
Those boards are broken anyway ! As u-boot is bigger than the load size
of at91bootstrap (0x33900 by default). So, not changing means that you
are screwed after flashing a new u-boot.
> If you want to grow U-Boot, then
>
> bootstrap 0x00000000 ; 16 kB
> ubootenv 0x00004200 ; 16 kB - Should be plenty
> uboot 0x00008400 ;
> kernel 0x00063000 ; Why waste space...
>
What about the redundant env ? Why shouldn't we reorder u-boot and its
env ?
Regards,
--
Alexandre Belloni
next prev parent reply other threads:[~2012-02-28 22:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-29 21:37 [U-Boot] [PATCH v2] Change kernel address in dataflash to match u-boot's size Alexandre Belloni
2012-02-18 15:13 ` Albert ARIBAUD
2012-02-18 16:21 ` Albert ARIBAUD
2012-02-20 10:40 ` Alexandre Belloni
2012-02-20 10:46 ` Albert ARIBAUD
2012-02-20 12:48 ` [U-Boot] [PATCH] AT91SAM9*: " Alexandre Belloni
2012-02-20 13:00 ` Albert ARIBAUD
2012-02-20 16:40 ` [U-Boot] [PATCH v3] " Alexandre Belloni
2012-02-27 15:25 ` Ulf Samuelsson
2012-02-28 22:57 ` Alexandre Belloni [this message]
2012-02-29 0:50 ` Ulf Samuelsson
2012-02-29 8:58 ` Alexandre Belloni
2012-02-29 9:49 ` Ulf Samuelsson
2012-04-08 18:17 ` [U-Boot] [PATCH v4] " Alexandre Belloni
2012-04-08 20:06 ` Wolfgang Denk
2012-04-09 6:36 ` Andreas Bießmann
2012-04-09 8:15 ` Wolfgang Denk
2012-04-17 23:26 ` Ulf Samuelsson
2012-04-21 21:19 ` Alexandre Belloni
2012-02-20 12:51 ` [U-Boot] [PATCH v2] " Alexandre Belloni
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=20120228225753.GA16686@piout.net \
--to=alexandre.belloni@piout.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.