public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ira W. Snyder <iws@ovro.caltech.edu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] e300: increase CONFIG_SYS_BOOTMAPSZ to allow booting large kernels
Date: Fri, 17 Sep 2010 11:45:49 -0700	[thread overview]
Message-ID: <20100917184549.GD10133@ovro.caltech.edu> (raw)
In-Reply-To: <1284158552-31399-1-git-send-email-iws@ovro.caltech.edu>

On Fri, Sep 10, 2010 at 03:42:32PM -0700, Ira W. Snyder wrote:
> Newer Linux kernels can overrun the initial memory window used for
> booting with their BSS area. When this happens, they overwrite the FDT
> and silently fail to boot.
> 
> On e300 CPUs, the Linux kernel uses an initial BAT covering the first
> 256MB of RAM. See arch/powerpc/kernel/head_32.S for details. Increase
> the value of CONFIG_SYS_BOOTMAPSZ to accommodate the maximum value
> allowed by Linux. This will allow very large kernels to boot.
> 
> Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
> ---
> 
> Wolfgang,
> 
> I did both mpc83xx and mpc51xx (CONFIG_E300) at the same time. There
> were fewer boards than I expected. A quick read through head_fsl_booke.S
> shows that CONFIG_E500 could be increased to 64MB. I'll leave that to
> that arch's maintainer. They have already increased theirs to 16MB,
> after finding this problem.
> 
> This patch doesn't attempt to add support for actually loading a kernel
> larger than 8MB uncompressed (code + data, but not bss). That would mean
> adding #define CONFIG_SYS_BOOTM_LEN SOME_VALUE_GREATER_THAN_8MB.
> 
> This boots up fine on my MPC8349EMDS.
> 

Sorry about forgetting to CC maintainers before. I've added the 83xx and
5xxx maintainers, Kim and Wolfgang respectively. Is there anything I
should do to help this patch into mainline. I haven't heard anything for
about a week.

Thanks,
Ira

  reply	other threads:[~2010-09-17 18:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10 22:42 [U-Boot] [PATCH v1] e300: increase CONFIG_SYS_BOOTMAPSZ to allow booting large kernels Ira W. Snyder
2010-09-17 18:45 ` Ira W. Snyder [this message]
2010-09-22 20:58 ` Kim Phillips
2010-09-22 21:12   ` Wolfgang Denk

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=20100917184549.GD10133@ovro.caltech.edu \
    --to=iws@ovro.caltech.edu \
    --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