diff mbox series

[2/2] librem5: Add addresses for compressed kernel load

Message ID 20231027134127.201699-3-arnaud.ferraris@collabora.com
State Accepted
Commit 62b1bbdfdf453e8438c404b4ea40e63ee60f03e9
Delegated to: Stefano Babic
Headers show
Series librem5: allow using distroboot w/ extlinux files | expand

Commit Message

Arnaud Ferraris Oct. 27, 2023, 1:40 p.m. UTC
The "booti" command to load arm64 Linux kernels supports automatic
decompression of zipped kernel images, but relies on some environment
variables to point to usable buffer RAM.

Add those variables and let them point to some default values, that
should cover most use-cases.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
---
 include/configs/librem5.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/configs/librem5.h b/include/configs/librem5.h
index ce0a340ba2..876b02f4da 100644
--- a/include/configs/librem5.h
+++ b/include/configs/librem5.h
@@ -56,6 +56,8 @@ 
 	"scriptaddr=0x80000000\0" \
 	"pxefile_addr_r=0x80100000\0" \
 	"kernel_addr_r=0x80800000\0" \
+	"kernel_comp_addr_r=0x90000000\0" \
+	"kernel_comp_size=0x08000000\0" \
 	"fdt_addr_r=0x84800000\0" \
 	"ramdisk_addr_r=0x85000000\0" \
 	"console=" CONSOLE ",115200\0" \