All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] 85xx: MPC8536DS board does not build
Date: Mon, 10 Aug 2009 15:27:46 -0400	[thread overview]
Message-ID: <4A8074B2.2010403@ge.com> (raw)
In-Reply-To: <FAED9449-E34B-4A0A-BB6C-DDE544895513@kernel.crashing.org>

Kumar Gala wrote:
> On Aug 10, 2009, at 1:59 PM, Zang Roy-R61911 wrote:
> 
>>
>>> -----Original Message-----
>>> From: Kumar Gala [mailto:galak at kernel.crashing.org]
>>> Sent: Monday, August 10, 2009 13:41 PM
>>> To: Wolfgang Denk
>>> Cc: U-Boot-Users ML; Zang Roy-R61911
>>> Subject: Re: 85xx: MPC8536DS board does not build
>>>
>>>
>>> On Aug 10, 2009, at 1:22 PM, Wolfgang Denk wrote:
>>>
>>>> Dear Kumar Gala,
>>>>
>>>> In message <0EB7516A-2F14-42F7-
>>>> A6ED-555ADFAB3105 at kernel.crashing.org> you wrote:
>>>>>> Allocate more space for U-Boot?
>>>>> I might turn of BEDBUG as its never been properly enabled on
>>>>> e500/85xx
>>>>> platforms.
>>>> Is there any problem with the bigger image which I don't understand
>>>> yet? Normally we just move down the TEXT_BASE by a sector,
>>> and that's
>>>> it.
>>> Not specifically, its just that ever 85xx image to date has been
>>> 512k.  I'm just trying to avoid this being the first one that
>>> changes
>>> that historic fact.  Especially since compilers like gcc-4.3 seem to
>>> be able to fit the size in 512k.
>> We may have more requirements to support graphic in u-boot.
>> Sooner and later, the size will exceed 512K. Should we have some plan
>> for this?
> 
> So if we are going to increase the limit from 512k do we go to 768k or  
> 1M?  (Sector size on the board appears to 128k)
> 
> I would also like to know how big the flashes are on some of the other  
> 85xx boards that u-boot supports.
> 
> - k

Hi Kumar, Roy,

512K is pretty big for u-boot (not unheard of, but still...).  Is it 
really 512K or is it using a full page to hold the boot page (top 4K of 
memory) and one page for the env (unavoidable):

+-------------------------------------------------------- 0x1_0000_0000
| One sector dedicated for the power up page (only using 4K)
+-------------------------------------------------------- 0x0_F800_0000
| One sector dedicated for the env
+-------------------------------------------------------- 0x0_F000_0000
| Two sectors of u-boot
+----                                                     0x0_E800_0000
|
+-------------------------------------------------------- 0x0_E000_0000


If that is the case, you can gain a sector (less 4K) by rearranging your 
memory map:
+-------------------------------------------------------- 0x1_0000_0000
| One page (4K) of power up vector, the rest is u-boot
+----                                                     0x0_F800_0000
|
+----                                                     0x0_F000_0000
| Three sectors (less 4K) of u-boot
+-------------------------------------------------------- 0x0_E800_0000
| One sector dedicated for the env
+-------------------------------------------------------- 0x0_E000_0000

This also makes reprogramming u-boot nicer because your power up vector 
and u-boot itself are contiguous.

Best regards,
gvb

  reply	other threads:[~2009-08-10 19:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-10  7:56 [U-Boot] 85xx: MPC8536DS board does not build Wolfgang Denk
2009-08-10 13:51 ` Kumar Gala
2009-08-10 16:32   ` Ben Warren
2009-08-10 17:59   ` Wolfgang Denk
2009-08-10 18:10     ` Kumar Gala
2009-08-10 18:22       ` Wolfgang Denk
2009-08-10 18:40         ` Kumar Gala
2009-08-10 18:59           ` Zang Roy-R61911
2009-08-10 19:06             ` Kumar Gala
2009-08-10 19:27               ` Jerry Van Baren [this message]
2009-08-10 20:00                 ` Peter Tyser
2009-08-10 20:21                   ` Kumar Gala
2009-08-10 21:26                   ` ksi at koi8.net
2009-08-10 19:35               ` Zang Roy-R61911
2009-08-10 21:22           ` ksi at koi8.net

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=4A8074B2.2010403@ge.com \
    --to=gerald.vanbaren@ge.com \
    --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.