]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: allow loading larger kernels
authorBen Wolsieffer <benwolsieffer@gmail.com>
Tue, 3 Dec 2019 05:40:05 +0000 (00:40 -0500)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 5 Dec 2019 16:06:23 +0000 (00:06 +0800)
Recent versions of the Linux kernel with many options enabled have
grown large enough to overwrite the beginning of the initrd. For
example, the kernel I use on my Rock64 and RockPro64 is 34.1 MiB,
while only 31.5 MiB are available between kernel_addr_r and
ramdisk_addr_r.

This patch moves ramdisk_addr_r up by 32 MiB on the RK3328 and RK3399,
allowing for much larger kernels.

Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
include/configs/rk3328_common.h
include/configs/rk3399_common.h

index e51e1b0e0e79e628ece61085fcb724649b6e55a8..b14da3a62655296561eb100fc49680fdcfe91506 100644 (file)
@@ -36,7 +36,7 @@
        "pxefile_addr_r=0x00600000\0" \
        "fdt_addr_r=0x01f00000\0" \
        "kernel_addr_r=0x02080000\0" \
-       "ramdisk_addr_r=0x04000000\0"
+       "ramdisk_addr_r=0x06000000\0"
 
 #include <config_distro_bootcmd.h>
 #define CONFIG_EXTRA_ENV_SETTINGS \
index 7331c6dc026e53f52de8d0c46888213969dc903d..127ca1f09cda2ed16f0baebb2626a0acc38d74b5 100644 (file)
@@ -51,7 +51,7 @@
        "pxefile_addr_r=0x00600000\0" \
        "fdt_addr_r=0x01f00000\0" \
        "kernel_addr_r=0x02080000\0" \
-       "ramdisk_addr_r=0x04000000\0"
+       "ramdisk_addr_r=0x06000000\0"
 
 #ifndef ROCKCHIP_DEVICE_SETTINGS
 #define ROCKCHIP_DEVICE_SETTINGS