powerpc: configs: Set initrd_high environment varible
PATCH 1/1 powerpc: configs: Set initrd_high environment varible
commit 20e072f37402 ("image: check "bootm_low" and "bootm_size" if "initrd_high" is missing"), forces to check "bootm_low" and "bootm_size" if "initrd_high" is missing. It causes Linux boot up failure with ramdisk size > 90MB.
So setting initrd_high to avoid rootfs relocation.
--- include/configs/B4860QDS.h | 1 + include/configs/BSC9131RDB.h | 1 + include/configs/BSC9132QDS.h | 1 + include/configs/C29XPCIE.h | 1 + include/configs/MPC8536DS.h | 1 + include/configs/MPC8541CDS.h | 1 + include/configs/MPC8544DS.h | 1 + include/configs/MPC8548CDS.h | 1 + include/configs/MPC8555CDS.h | 1 + include/configs/MPC8568MDS.h | 1 + include/configs/MPC8569MDS.h | 1 + include/configs/MPC8572DS.h | 1 + include/configs/P1010RDB.h | 1 + include/configs/P1022DS.h | 1 + include/configs/P1023RDB.h | 1 + include/configs/P2041RDB.h | 1 + include/configs/T102xQDS.h | 1 + include/configs/T102xRDB.h | 1 + include/configs/T1040QDS.h | 1 + include/configs/T104xRDB.h | 1 + include/configs/T208xQDS.h | 1 + include/configs/T208xRDB.h | 1 + include/configs/T4240QDS.h | 1 + include/configs/T4240RDB.h | 1 + include/configs/corenet_ds.h | 1 + include/configs/cyrus.h | 1 + include/configs/p1_p2_rdb_pc.h | 1 + include/configs/p1_twr.h | 1 + 28 files changed, 28 insertions(+)
include/configs/B4860QDS.h +1 -0
@@ -732,6 +732,7 @@ unsigned long get_board_ddr_clk(void);#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ HWCONFIG \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\ "netdev=eth0\0" \
include/configs/BSC9131RDB.h +1 -0
@@ -332,6 +332,7 @@ extern unsigned long get_sdram_size(void);#define CONFIG_UBOOTPATH "u-boot.bin"/* U-Boot image on TFTP server */ #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" CONFIG_UBOOTPATH "\0" \ "loadaddr=1000000\0" \
include/configs/BSC9132QDS.h +1 -0
@@ -545,6 +545,7 @@ combinations. this should be removed later#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" CONFIG_UBOOTPATH "\0" \ "loadaddr=1000000\0" \
include/configs/C29XPCIE.h +1 -0
@@ -449,6 +449,7 @@#define CONFIG_DEF_HWCONFIG fsl_ddr:ecc=on#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=" __stringify(CONFIG_DEF_HWCONFIG) "\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
include/configs/MPC8536DS.h +1 -0
@@ -630,6 +630,7 @@#define CONFIG_LOADADDR 1000000#define CONFIG_EXTRA_ENV_SETTINGS \ +"initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ "tftpflash=tftpboot $loadaddr $uboot; " \
include/configs/MPC8541CDS.h +1 -0
@@ -376,6 +376,7 @@ extern unsigned long get_clock_freq(void);#define CONFIG_LOADADDR 200000/*default location for tftp and bootm*/ #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "consoledev=ttyS1\0" \ "ramdiskaddr=600000\0" \
include/configs/MPC8544DS.h +1 -0
@@ -384,6 +384,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);#define CONFIG_LOADADDR 1000000/*default location for tftp and bootm*/ #define CONFIG_EXTRA_ENV_SETTINGS \ +"initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ "tftpflash=tftpboot $loadaddr $uboot; " \
include/configs/MPC8548CDS.h +1 -0
@@ -492,6 +492,7 @@ extern unsigned long get_clock_freq(void);#define CONFIG_LOADADDR 1000000/*default location for tftp and bootm*/ #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ecc=off\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
include/configs/MPC8555CDS.h +1 -0
@@ -372,6 +372,7 @@ extern unsigned long get_clock_freq(void);#define CONFIG_LOADADDR 200000/*default location for tftp and bootm*/ #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "consoledev=ttyS1\0" \ "ramdiskaddr=600000\0" \
include/configs/MPC8568MDS.h +1 -0
@@ -390,6 +390,7 @@ extern unsigned long get_clock_freq(void);#define CONFIG_LOADADDR 200000/*default location for tftp and bootm*/ #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "consoledev=ttyS0\0" \ "ramdiskaddr=600000\0" \
include/configs/MPC8569MDS.h +1 -0
@@ -483,6 +483,7 @@ extern unsigned long get_clock_freq(void);#define CONFIG_LOADADDR 200000/*default location for tftp and bootm*/ #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "consoledev=ttyS0\0" \ "ramdiskaddr=600000\0" \
include/configs/MPC8572DS.h +1 -0
@@ -586,6 +586,7 @@#define CONFIG_LOADADDR 1000000#define CONFIG_EXTRA_ENV_SETTINGS \ +"initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ctlr_intlv=bank,bank_intlv=cs0_cs1,ecc=off\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
include/configs/P1010RDB.h +1 -0
@@ -732,6 +732,7 @@ extern unsigned long get_sdram_size(void);#define CONFIG_LOADADDR 1000000#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=" __stringify(CONFIG_DEF_HWCONFIG) "\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
include/configs/P1022DS.h +1 -0
@@ -599,6 +599,7 @@#define CONFIG_LOADADDR 1000000#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \
include/configs/P1023RDB.h +1 -0
@@ -312,6 +312,7 @@ extern unsigned long get_clock_freq(void);#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ "loadaddr=1000000\0" \
include/configs/P2041RDB.h +1 -0
@@ -608,6 +608,7 @@ unsigned long get_board_sys_clk(unsigned long dummy);#define __USB_PHY_TYPE utmi#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ "bank_intlv=cs0_cs1\0" \ "netdev=eth0\0" \
include/configs/T102xQDS.h +1 -0
@@ -777,6 +777,7 @@ unsigned long get_board_ddr_clk(void);#define __USB_PHY_TYPE utmi#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline,bank_intlv=cs0_cs1;\0" \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0" \ "bootargs=root=/dev/ram rw console=ttyS0,115200\0" \
include/configs/T102xRDB.h +1 -0
@@ -799,6 +799,7 @@ unsigned long get_board_ddr_clk(void);#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ "bank_intlv=" __stringify(BANK_INTLV) "\0" \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0" \
include/configs/T1040QDS.h +1 -0
@@ -660,6 +660,7 @@ unsigned long get_board_ddr_clk(void);#define __USB_PHY_TYPE utmi#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:bank_intlv=auto;" \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\ "netdev=eth0\0" \
include/configs/T104xRDB.h +1 -0
@@ -809,6 +809,7 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_sd_rcw.cfg#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:bank_intlv=cs0_cs1;" \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) ";"\ "usb2:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
include/configs/T208xQDS.h +1 -0
@@ -746,6 +746,7 @@ unsigned long get_board_ddr_clk(void);#define __USB_PHY_TYPE utmi#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:" \ "ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) "," \ "bank_intlv=auto;" \
include/configs/T208xRDB.h +1 -0
@@ -693,6 +693,7 @@ unsigned long get_board_ddr_clk(void);#define __USB_PHY_TYPE utmi#define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:" \ "ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) "," \ "bank_intlv=auto;" \
include/configs/T4240QDS.h +1 -0
@@ -516,6 +516,7 @@ unsigned long get_board_ddr_clk(void);#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:" \ "ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) "," \ "bank_intlv=auto;" \
include/configs/T4240RDB.h +1 -0
@@ -667,6 +667,7 @@ unsigned long get_board_ddr_clk(void);#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:" \ "ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) "," \ "bank_intlv=auto;" \
include/configs/corenet_ds.h +1 -0
@@ -621,6 +621,7 @@#endif #define CONFIG_EXTRA_ENV_SETTINGS \ + "initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ "bank_intlv=cs0_cs1;" \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) ";"\
include/configs/cyrus.h +1 -0
@@ -440,6 +440,7 @@#define __USB_PHY_TYPE utmi#define CONFIG_EXTRA_ENV_SETTINGS \ +"initrd_high=0xffffffff\0" \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ "bank_intlv=cs0_cs1;" \ "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) ";"\
include/configs/p1_p2_rdb_pc.h +1 -0
@@ -841,6 +841,7 @@ i2c mw 18 3 __SW_BOOT_MASK 1; reset#endif #define CONFIG_EXTRA_ENV_SETTINGS \ +"initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ "loadaddr=1000000\0" \
include/configs/p1_twr.h +1 -0
@@ -404,6 +404,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);#define CONFIG_LOADADDR 1000000#define CONFIG_EXTRA_ENV_SETTINGS \ +"initrd_high=0xffffffff\0" \ "netdev=eth0\0" \ "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ "loadaddr=1000000\0" \
Signature · 1 line
2.14.1
PATCH 1/1 powerpc: configs: Set initrd_high environment varible
Quoted 9 lines · Prabhakar Kushwaha
commit
20e072f37402("image: check "bootm_low" and "bootm_size" if "initrd_high" is missing"), forces to check "bootm_low" and "bootm_size" if "initrd_high" is missing. It causes Linux boot up failure with ramdisk size > 90MB.So setting
initrd_highto avoid rootfs relocation.Signed-off-by Alison Wang <[email protected]>Signed-off-by Prabhakar Kushwaha <[email protected]>
I'm _really_ against disabling relocation of the device tree or ramdisk when we have enough information to do said checks as it inevitably leads to people finding a kernel + ramdisk + dtb combination where the kernel BSS ate something. What exactly is the layout you're seeing where things fail, and why can we not use (or, update) bootm_size to describe the overall region? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180315/ec4d6f47/attachment.sig>