From 6dcbb3cbf71c175190a03c00a60412df29c843a6 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Tue, 9 May 2017 12:51:00 +0300 Subject: [PATCH] Do not relocate initrd for sun8i-default config This fixes booting legacy kernel on OPi Zero 256MB --- .../do-not-relocate-initrd.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 patch/u-boot/u-boot-sunxi/branch_default/do-not-relocate-initrd.patch diff --git a/patch/u-boot/u-boot-sunxi/branch_default/do-not-relocate-initrd.patch b/patch/u-boot/u-boot-sunxi/branch_default/do-not-relocate-initrd.patch new file mode 100644 index 0000000000..b3d4e3f79d --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/branch_default/do-not-relocate-initrd.patch @@ -0,0 +1,27 @@ +diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h +index 64a190059a..bbec551cac 100644 +--- a/include/configs/sunxi-common.h ++++ b/include/configs/sunxi-common.h +@@ -503,6 +503,12 @@ extern int soft_i2c_gpio_scl; + #define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb" + #endif + ++#ifdef CONFIG_MACH_SUN8I_H3 ++#define INITRD_HIGH_ENV "initrd_high=0xFFFFFFFF\0" ++#else ++#define INITRD_HIGH_ENV ++#endif ++ + #define CONFIG_EXTRA_ENV_SETTINGS \ + CONSOLE_ENV_SETTINGS \ + MEM_LAYOUT_ENV_SETTINGS \ +@@ -512,7 +518,8 @@ extern int soft_i2c_gpio_scl; + SUNXI_MTDIDS_DEFAULT \ + SUNXI_MTDPARTS_DEFAULT \ + BOOTCMD_SUNXI_COMPAT \ +- BOOTENV ++ BOOTENV \ ++ INITRD_HIGH_ENV + + #else /* ifndef CONFIG_SPL_BUILD */ + #define CONFIG_EXTRA_ENV_SETTINGS