diff mbox series

[U-Boot] rockchip: allow loading larger kernels

Message ID 20191203054006.1822512-1-benwolsieffer@gmail.com
State Accepted
Commit b2e373d16b0345d3c3f4beefdf0889e83faf173d
Delegated to: Kever Yang
Headers show
Series [U-Boot] rockchip: allow loading larger kernels | expand

Commit Message

Ben Wolsieffer Dec. 3, 2019, 5:40 a.m. UTC
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>

---

 include/configs/rk3328_common.h | 2 +-
 include/configs/rk3399_common.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Kever Yang Dec. 5, 2019, 3:22 p.m. UTC | #1
On 2019/12/3 下午1:40, Ben Wolsieffer wrote:
> 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>

Thanks,
- Kever
>
> ---
>
>   include/configs/rk3328_common.h | 2 +-
>   include/configs/rk3399_common.h | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
> index e51e1b0e0e..b14da3a626 100644
> --- a/include/configs/rk3328_common.h
> +++ b/include/configs/rk3328_common.h
> @@ -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 \
> diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
> index 7331c6dc02..127ca1f09c 100644
> --- a/include/configs/rk3399_common.h
> +++ b/include/configs/rk3399_common.h
> @@ -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
diff mbox series

Patch

diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
index e51e1b0e0e..b14da3a626 100644
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -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 \
diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
index 7331c6dc02..127ca1f09c 100644
--- a/include/configs/rk3399_common.h
+++ b/include/configs/rk3399_common.h
@@ -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