mpc83xx: increase BOOTMAPSZ to 16MB
PATCH 1/1 mpc83xx: increase BOOTMAPSZ to 16MB
As space expands, so does the software. Today the kernel with built-in initramfs image is likely to not fit into 8MB limit. It feels safe to increase BOOTMAPSZ to 16MB, since the Linux actually maps 16MB on 6xx PPCs (two BATs, 8MB each).
---
p.s. The patch for the whole tree is quite big, so let's start with 83xx.
pp.s. Maybe we could fector out these defines into include/configs/ppc6xx-common.h?
include/configs/MPC8313ERDB.h | 4 ++-- include/configs/MPC8315ERDB.h | 4 ++-- include/configs/MPC8323ERDB.h | 4 ++-- include/configs/MPC832XEMDS.h | 4 ++-- include/configs/MPC8349EMDS.h | 4 ++-- include/configs/MPC8349ITX.h | 4 ++-- include/configs/MPC8360EMDS.h | 4 ++-- include/configs/MPC8360ERDK.h | 4 ++-- include/configs/MPC837XEMDS.h | 4 ++-- include/configs/MPC837XERDB.h | 4 ++-- include/configs/MVBLM7.h | 4 ++-- include/configs/TQM834x.h | 4 ++-- include/configs/sbc8349.h | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-)
include/configs/MPC8313ERDB.h +2 -2
@@ -453,10 +453,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux*/ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ #define CONFIG_SYS_RCWH_PCIHOST 0x80000000/* PCIHOST */
include/configs/MPC8315ERDB.h +2 -2
@@ -440,10 +440,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MPC8323ERDB.h +2 -2
@@ -453,10 +453,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MPC832XEMDS.h +2 -2
@@ -468,10 +468,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MPC8349EMDS.h +2 -2
@@ -537,10 +537,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux*/ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ #define CONFIG_SYS_RCWH_PCIHOST 0x80000000/* PCIHOST */
include/configs/MPC8349ITX.h +2 -2
@@ -496,10 +496,10 @@ boards, we say we have two, but don't display a message if we find only one. *//* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux*/ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ #define CONFIG_SYS_HRCW_LOW (\ HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
include/configs/MPC8360EMDS.h +2 -2
@@ -497,10 +497,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MPC8360ERDK.h +2 -2
@@ -403,10 +403,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MPC837XEMDS.h +2 -2
@@ -502,10 +502,10 @@ extern int board_pci_host_broken(void);/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MPC837XERDB.h +2 -2
@@ -509,10 +509,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux */ /* * Core HID Setup
include/configs/MVBLM7.h +2 -2
@@ -306,10 +306,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux*/ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ #define CONFIG_SYS_HRCW_LOW 0x0#define CONFIG_SYS_HRCW_HIGH 0x0
include/configs/TQM834x.h +2 -2
@@ -373,10 +373,10 @@ extern int tqm834x_num_flash_banks;/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux*/ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ #define CONFIG_SYS_HRCW_LOW (\ HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
include/configs/sbc8349.h +2 -2
@@ -483,10 +483,10 @@/* * For booting Linux, the board info and command line data -* have to be in the first 8 MB of memory, since this is +* have to be in the first 16 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux*/ +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ #define CONFIG_SYS_RCWH_PCIHOST 0x80000000/* PCIHOST */
Signature · 1 line
1.5.6.3
PATCH 1/1 mpc83xx: increase BOOTMAPSZ to 16MB
Quoted 10 lines · On Thu, 6 Nov 2008 16:31:26 +0300 Anton Vorontsov <[email protected]>…
As space expands, so does the software. Today the kernel with built-in initramfs image is likely to not fit into 8MB limit. It feels safe to increase BOOTMAPSZ to 16MB, since the Linux actually maps 16MB on 6xx PPCs (two BATs, 8MB each).
Signed-off-by Anton Vorontsov <[email protected]>---
p.s. The patch for the whole tree is quite big, so let's start with 83xx.
ack, I'm ok with this operation starting in 83xx land, but it may be worth investigating whether it can be made a one-shot directly with WD, just as the CFG_ -> CONFIG_SYS_ switch just happened. dunno. If we don't hear from WD soon, I'll put this in mpc83xx's next branch.
Quoted 2 lines
pp.s. Maybe we could fector out these defines into
include/configs/ppc6xx-common.h?
sure, but maybe that can wait until the base domain granularity becomes more accurately visible...I just took a look - I can't seem to find a single non-coldfire board that doesn't set BOOTMAPSZ to 8MB (coldfire boards set it to SDRAM_BASE + SDRAM_SIZE). Anyway, I it looks like a single patch might fit on this mailling list.
Kim
PATCH 1/1 mpc83xx: increase BOOTMAPSZ to 16MB
Quoted 8 lines · Kim Phillips
Quoted 5 lines · On Thu, 6 Nov 2008 16:31:26 +0300 Anton Vorontsov <[email protected]>…
As space expands, so does the software. Today the kernel with built-in initramfs image is likely to not fit into 8MB limit. It feels safe to increase BOOTMAPSZ to 16MB, since the Linux actually maps 16MB on 6xx PPCs (two BATs, 8MB each).
Quoted 7 lines
Quoted 5 lines
Signed-off-by Anton Vorontsov <[email protected]>---
p.s. The patch for the whole tree is quite big, so let's start with 83xx.
ack,
Great, thanks.
Quoted 4 lines
I'm ok with this operation starting in 83xx land, but it may be worth investigating whether it can be made a one-shot directly with WD, just as the
CFG_->CONFIG_SYS_switch just happened. dunno. If we don't hear from WD soon, I'll put this in mpc83xx's next branch.
Please don't queue this patch yet. I'll send an updated version soon, that will also define CFG_BOOTM_LEN (so that bootm command will able to gunzip 16MB images).
Quoted 5 lines
Quoted 2 lines
pp.s. Maybe we could fector out these defines into
include/configs/ppc6xx-common.h?sure, but maybe that can wait until the base domain granularity becomes more accurately visible...
Ok, makes sense.
Signature · 3 lines
Anton Vorontsov email: cbouatmailru at gmail.com irc://irc.freenode.net/bd2