85xx: Bump up the BOOTMAP to 16M on FSL 85xx boards
PATCH 1/1 85xx: Bump up the BOOTMAP to 16M on FSL 85xx boards
We have always mapped at least 16M in the kernel and we have seen cases with new kernel features that a kernel image needs more than 8M of memory.
Signed-off-by Kumar Gala <[email protected]>
--- include/configs/MPC8536DS.h | 4 ++-- include/configs/MPC8540ADS.h | 4 ++-- include/configs/MPC8541CDS.h | 4 ++-- include/configs/MPC8544DS.h | 4 ++-- include/configs/MPC8548CDS.h | 4 ++-- include/configs/MPC8555CDS.h | 4 ++-- include/configs/MPC8560ADS.h | 4 ++-- include/configs/MPC8568MDS.h | 4 ++-- include/configs/MPC8569MDS.h | 4 ++-- include/configs/MPC8572DS.h | 4 ++-- include/configs/P2020DS.h | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-)
include/configs/MPC8536DS.h +2 -2
@@ -563,10 +563,10 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);/* * 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*/ /* * Internal Definitions
include/configs/MPC8540ADS.h +2 -2
@@ -418,10 +418,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*/ /* * Internal Definitions
include/configs/MPC8541CDS.h +2 -2
@@ -440,10 +440,10 @@ extern unsigned long get_clock_freq(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*/ /* * Internal Definitions
include/configs/MPC8544DS.h +2 -2
@@ -458,10 +458,10 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);/* * 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*/ /* * Internal Definitions
include/configs/MPC8548CDS.h +2 -2
@@ -500,10 +500,10 @@ extern unsigned long get_clock_freq(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*/ /* * Internal Definitions
include/configs/MPC8555CDS.h +2 -2
@@ -438,10 +438,10 @@ extern unsigned long get_clock_freq(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*/ /* * Internal Definitions
include/configs/MPC8560ADS.h +2 -2
@@ -452,10 +452,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*/ /* * Internal Definitions
include/configs/MPC8568MDS.h +2 -2
@@ -456,10 +456,10 @@ extern unsigned long get_clock_freq(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*/ /* * Internal Definitions
include/configs/MPC8569MDS.h +2 -2
@@ -471,10 +471,10 @@ extern unsigned long get_clock_freq(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) +#define CONFIG_SYS_BOOTMAPSZ (16 << 20)/* Initial Memory map for Linux*/ /*
include/configs/MPC8572DS.h +2 -2
@@ -607,10 +607,10 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);/* * 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*/ /* * Internal Definitions
include/configs/P2020DS.h +2 -2
@@ -637,10 +637,10 @@ extern unsigned long calculate_board_ddr_clk(unsigned long dummy);/* * 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*/ /* * Internal Definitions
Signature · 1 line
1.6.0.6
PATCH 1/1 85xx: Bump up the BOOTMAP to 16M on FSL 85xx boards
Quoted 3 lines · Kumar Gala
We have always mapped at least 16M in the kernel and we have seen cases with new kernel features that a kernel image needs more than 8M of memory.
It'd be nice to also increase CONFIG_SYS_BOOTM_LEN to 16MB to allow booting of compressed images larger than 8MB.
Or possibly changing common/cmd_bootm.c logic to:
#ifndef CONFIG_SYS_BOOTM_LEN
#define CONFIG_SYS_BOOTM_LEN CONFIG_SYS_BOOTMAPSZ
#endif
Best,
Peter