Skip to contentSkip to conversation

include: rk3328: Add default env for compressed kernel images

PATCH In review Christopher Obbard 2 participants 2 messages Jan 27, 2023 – Feb 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include: rk3328: Add default env for compressed kernel images

Add default memory addresses for kernel_comp_addr_r and kernel_comp_size to enable booting from a compressed kernel image. This area is temporarily used to decompress the kernel image on-the-fly.

---

 include/configs/rk3328_common.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/configs/rk3328_common.h +3 -1
index fadcb93a5f..24b21c024d 100644
@@ -19,7 +19,9 @@
 	"pxefile_addr_r=0x00600000\0" \
 	"fdt_addr_r=0x01f00000\0" \
 	"kernel_addr_r=0x02080000\0" \
-	"ramdisk_addr_r=0x06000000\0"
+	"ramdisk_addr_r=0x06000000\0" \
+	"kernel_comp_addr_r=0x08000000\0" \
+	"kernel_comp_size=0x2000000\0"
 
 #include <config_distro_bootcmd.h>
 #define CFG_EXTRA_ENV_SETTINGS \
Signature · 1 line
2.39.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Christopher Obbard

Add default memory addresses for kernel_comp_addr_r and kernel_comp_size to enable booting from a compressed kernel image. This area is temporarily used to decompress the kernel image on-the-fly.

Thanks,
- Kever

Quoted 20 lines

---

  include/configs/rk3328_common.h | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
include/configs/rk3328_common.h +3 -1
index fadcb93a5f..24b21c024d 100644
@@ -19,7 +19,9 @@
  	"pxefile_addr_r=0x00600000\0" \
  	"fdt_addr_r=0x01f00000\0" \
  	"kernel_addr_r=0x02080000\0" \
-	"ramdisk_addr_r=0x06000000\0"
+	"ramdisk_addr_r=0x06000000\0" \
+	"kernel_comp_addr_r=0x08000000\0" \
+	"kernel_comp_size=0x2000000\0"
 
  #include <config_distro_bootcmd.h>
  #define CFG_EXTRA_ENV_SETTINGS \