]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
powerpc/86xx: Increase boot map size to 256 MiB
authorScott Wood <oss@buserror.net>
Tue, 19 Jul 2016 22:51:55 +0000 (17:51 -0500)
committerYork Sun <york.sun@nxp.com>
Thu, 4 Aug 2016 01:02:29 +0000 (18:02 -0700)
This is what Linux maps on classic PPC during boot, and modern kernel
images don't fit within the current 8 MiB uncompressed limit.

Adjust image load addresses to be above this limit to avoid conflicts.

Signed-off-by: Scott Wood <oss@buserror.net>
Reviewed-by: York Sun <york.sun@nxp.com>
include/configs/MPC8610HPCD.h
include/configs/MPC8641HPCN.h

index 81594932d768713f4cfa0a167314174019192490..c1b9b6ef31e531312942e436b31a1231a308cb4a 100644 (file)
  * have to be in the first 8 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   (256 << 20)     /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTM_LEN   (256 << 20)     /* Increase max gunzip size */
 
 #if defined(CONFIG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   230400  /* speed to run kgdb serial port */
 #define CONFIG_NETMASK         255.255.255.0
 
 /* default location for tftp and bootm */
-#define CONFIG_LOADADDR                1000000
+#define CONFIG_LOADADDR                0x10000000
 
 #undef CONFIG_BOOTARGS         /* the boot command will set bootargs */
 
        "cmp.b $loadaddr " __stringify(CONFIG_SYS_TEXT_BASE)    \
                " $filesize\0"  \
 "consoledev=ttyS0\0"                                           \
-"ramdiskaddr=2000000\0"                                        \
+"ramdiskaddr=0x18000000\0"                                     \
 "ramdiskfile=8610hpcd/ramdisk.uboot\0"                         \
-"fdtaddr=c00000\0"                                             \
+"fdtaddr=0x17c00000\0"                                         \
 "fdtfile=8610hpcd/mpc8610_hpcd.dtb\0"                          \
 "bdev=sda3\0"                                  \
 "en-wd=mw.b f8100010 0x08; echo -expect:- 08; md.b f8100010 1\0" \
        "netdev=eth0\0"                                         \
        "uboot=" __stringify(CONFIG_UBOOTPATH) "\0"             \
        "consoledev=ttyS0\0"                                    \
-       "ramdiskaddr=2000000\0"                                 \
+       "ramdiskaddr=0x18000000\0"                              \
        "ramdiskfile=8610hpcd/ramdisk.uboot\0"                  \
-       "fdtaddr=c00000\0"                                      \
+       "fdtaddr=0x17c00000\0"                                  \
        "fdtfile=8610hpcd/mpc8610_hpcd.dtb\0"                   \
        "bdev=sda3\0"
 #endif
index f90f7f24a470bdee5d1e91eb5b1b7f654198de39..d79bb404d7cdc794ffd78d8f17674dbeb08e5899 100644 (file)
@@ -637,7 +637,8 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * have to be in the first 8 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   (256 << 20)     /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTM_LEN   (256 << 20)     /* Increase max gunzip size */
 
 #if defined(CONFIG_CMD_KGDB)
     #define CONFIG_KGDB_BAUDRATE       230400  /* speed to run kgdb serial port */
@@ -664,7 +665,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_NETMASK         255.255.255.0
 
 /* default location for tftp and bootm */
-#define CONFIG_LOADADDR                1000000
+#define CONFIG_LOADADDR                0x10000000
 
 #undef CONFIG_BOOTARGS         /* the boot command will set bootargs */
 
@@ -685,9 +686,9 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
                "cmp.b $loadaddr " __stringify(CONFIG_SYS_TEXT_BASE)    \
                        " $filesize\0"  \
        "consoledev=ttyS0\0"                                            \
-       "ramdiskaddr=2000000\0"                                         \
+       "ramdiskaddr=0x18000000\0"                                              \
        "ramdiskfile=your.ramdisk.u-boot\0"                             \
-       "fdtaddr=c00000\0"                                              \
+       "fdtaddr=0x17c00000\0"                                          \
        "fdtfile=mpc8641_hpcn.dtb\0"                                    \
        "en-wd=mw.b ffdf0010 0x08; echo -expect:- 08; md.b ffdf0010 1\0"                        \
        "dis-wd=mw.b ffdf0010 0x00; echo -expect:- 00; md.b ffdf0010 1\0" \