From 2671dc47072c7f47ede5f52185b5466c082637c4 Mon Sep 17 00:00:00 2001 From: Johan Gunnarsson Date: Tue, 25 Jul 2023 19:47:59 +0200 Subject: [PATCH] patches: u-boot: Add patches * qemu-arm: Increase kernel size from 63 MB to 80 MB * rk3368: Define kernel_comp_{addr,size}_r and leave 50 MB to initrd * rpi: Increase kernel size from 37 MB to 83 MB and define kernel_comp_{addr,size}_r and leave 50 MB to initrd --- ...e-kernel-size-and-define-kernel_comp.patch | 25 ++++++++++++++ .../0002-rk3368-Define-kernel_comp_.patch | 27 +++++++++++++++ ...-kernel-size-and-define-kernel_comp_.patch | 33 +++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 patches/u-boot/0001-qemu-arm-Increase-kernel-size-and-define-kernel_comp.patch create mode 100644 patches/u-boot/0002-rk3368-Define-kernel_comp_.patch create mode 100644 patches/u-boot/0003-rpi-Increase-kernel-size-and-define-kernel_comp_.patch diff --git a/patches/u-boot/0001-qemu-arm-Increase-kernel-size-and-define-kernel_comp.patch b/patches/u-boot/0001-qemu-arm-Increase-kernel-size-and-define-kernel_comp.patch new file mode 100644 index 0000000..427267f --- /dev/null +++ b/patches/u-boot/0001-qemu-arm-Increase-kernel-size-and-define-kernel_comp.patch @@ -0,0 +1,25 @@ +From ede357eede35e312b921133586719c262cb0d11a Mon Sep 17 00:00:00 2001 +From: Johan Gunnarsson +Date: Fri, 14 Jul 2023 22:57:23 +0200 +Subject: [PATCH 1/3] qemu-arm: Increase kernel size and define kernel_comp_* + +--- + board/emulation/qemu-arm/qemu-arm.env | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/board/emulation/qemu-arm/qemu-arm.env b/board/emulation/qemu-arm/qemu-arm.env +index e658d5ee7d..1e4eb3e49c 100644 +--- a/board/emulation/qemu-arm/qemu-arm.env ++++ b/board/emulation/qemu-arm/qemu-arm.env +@@ -8,5 +8,7 @@ fdt_addr=0x40000000 + scriptaddr=0x40200000 + pxefile_addr_r=0x40300000 + kernel_addr_r=0x40400000 +-ramdisk_addr_r=0x44000000 ++ramdisk_addr_r=0x45000000 ++kernel_comp_addr_r=0x48000000 ++kernel_comp_size=0x2000000 + boot_targets=qfw usb scsi virtio nvme dhcp +-- +2.25.1 + diff --git a/patches/u-boot/0002-rk3368-Define-kernel_comp_.patch b/patches/u-boot/0002-rk3368-Define-kernel_comp_.patch new file mode 100644 index 0000000..80dfa24 --- /dev/null +++ b/patches/u-boot/0002-rk3368-Define-kernel_comp_.patch @@ -0,0 +1,27 @@ +From e88e40e7094d925bc2295cf92d224154a46eb385 Mon Sep 17 00:00:00 2001 +From: Johan Gunnarsson +Date: Fri, 14 Jul 2023 22:57:50 +0200 +Subject: [PATCH 2/3] rk3368: Define kernel_comp_* + +--- + include/configs/rk3368_common.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h +index ccb5369b90..a9cf0ed76d 100644 +--- a/include/configs/rk3368_common.h ++++ b/include/configs/rk3368_common.h +@@ -21,7 +21,9 @@ + "pxefile_addr_r=0x00600000\0" \ + "fdt_addr_r=0x5600000\0" \ + "kernel_addr_r=0x280000\0" \ +- "ramdisk_addr_r=0x5bf0000\0" ++ "ramdisk_addr_r=0x5bf0000\0" \ ++ "kernel_comp_addr_r=0x8bf0000\0" \ ++ "kernel_comp_size=0x2000000\0" + + #define CFG_EXTRA_ENV_SETTINGS \ + "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ +-- +2.25.1 + diff --git a/patches/u-boot/0003-rpi-Increase-kernel-size-and-define-kernel_comp_.patch b/patches/u-boot/0003-rpi-Increase-kernel-size-and-define-kernel_comp_.patch new file mode 100644 index 0000000..00671c9 --- /dev/null +++ b/patches/u-boot/0003-rpi-Increase-kernel-size-and-define-kernel_comp_.patch @@ -0,0 +1,33 @@ +From 46e63ab6a4cfb4d98ad732f245107e82739887b8 Mon Sep 17 00:00:00 2001 +From: Johan Gunnarsson +Date: Fri, 14 Jul 2023 22:58:17 +0200 +Subject: [PATCH 3/3] rpi: Increase kernel size and define kernel_comp_* + +--- + include/configs/rpi.h | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/include/configs/rpi.h b/include/configs/rpi.h +index 4da982f735..9d68b27384 100644 +--- a/include/configs/rpi.h ++++ b/include/configs/rpi.h +@@ -117,10 +117,12 @@ + "fdt_high=" FDT_HIGH "\0" \ + "initrd_high=" INITRD_HIGH "\0" \ + "kernel_addr_r=0x00080000\0" \ +- "scriptaddr=0x02400000\0" \ +- "pxefile_addr_r=0x02500000\0" \ +- "fdt_addr_r=0x02600000\0" \ +- "ramdisk_addr_r=0x02700000\0" ++ "scriptaddr=0x05000000\0" \ ++ "pxefile_addr_r=0x05100000\0" \ ++ "fdt_addr_r=0x05200000\0" \ ++ "ramdisk_addr_r=0x05300000\0" \ ++ "kernel_comp_addr_r=0x08300000\0" \ ++ "kernel_comp_size=0x2000000\0" + + #if IS_ENABLED(CONFIG_CMD_MMC) + #define BOOT_TARGET_MMC(func) \ +-- +2.25.1 +