Andrew Geissler | ea144b03 | 2023-01-27 16:03:57 -0600 | [diff] [blame^] | 1 | From 097a43223da4fa42335944295903ede2755e2dfd Mon Sep 17 00:00:00 2001 |
| 2 | From: Jon Mason <jdmason@kudzu.us> |
| 3 | Date: Mon, 19 Dec 2022 11:36:04 -0500 |
| 4 | Subject: [PATCH] configs: vexpress: modify to boot compressed initramfs |
| 5 | |
| 6 | Signed-off-by: Jon Mason <jdmason@kudzu.us> |
| 7 | Upstream-Status: Inappropriate |
| 8 | |
| 9 | --- |
| 10 | configs/vexpress_aemv8a_juno_defconfig | 1 + |
| 11 | include/configs/vexpress_aemv8.h | 2 ++ |
| 12 | 2 files changed, 3 insertions(+) |
| 13 | |
| 14 | diff --git a/configs/vexpress_aemv8a_juno_defconfig b/configs/vexpress_aemv8a_juno_defconfig |
| 15 | index e02124cc7f54..6ffe8f5fe67e 100644 |
| 16 | --- a/configs/vexpress_aemv8a_juno_defconfig |
| 17 | +++ b/configs/vexpress_aemv8a_juno_defconfig |
| 18 | @@ -16,6 +16,7 @@ CONFIG_SYS_LOAD_ADDR=0x90000000 |
| 19 | CONFIG_BOOTDELAY=1 |
| 20 | CONFIG_USE_BOOTARGS=y |
| 21 | CONFIG_BOOTARGS="console=ttyAMA0,115200n8 root=/dev/sda2 rw rootwait earlycon=pl011,0x7ff80000 debug user_debug=31 androidboot.hardware=juno loglevel=9" |
| 22 | +CONFIG_BOOTCOMMAND="echo running default boot command; afs load ${kernel_name} ${kernel_addr_r} ; if test $? -eq 1; then echo Loading ${kernel_alt_name} instead of ${kernel_name}; afs load ${kernel_alt_name} ${kernel_addr_r};fi ; afs load ${fdtfile} ${fdt_addr_r} ; if test $? -eq 1; then echo Loading ${fdt_alt_name} instead of ${fdtfile}; afs load ${fdt_alt_name} ${fdt_addr_r}; fi ; fdt addr ${fdt_addr_r}; fdt resize; if afs load ${initrd_name} ${initrd_addr_r} ; then setenv initrd_param ${initrd_addr_r}; else setenv initrd_param -; fi ; booti ${kernel_addr_r} ${initrd_param} ${fdt_addr_r}" |
| 23 | # CONFIG_DISPLAY_CPUINFO is not set |
| 24 | # CONFIG_DISPLAY_BOARDINFO is not set |
| 25 | CONFIG_SYS_PROMPT="VExpress64# " |
| 26 | diff --git a/include/configs/vexpress_aemv8.h b/include/configs/vexpress_aemv8.h |
| 27 | index cd7f6c1b9ba0..c2f5eb302076 100644 |
| 28 | --- a/include/configs/vexpress_aemv8.h |
| 29 | +++ b/include/configs/vexpress_aemv8.h |
| 30 | @@ -164,6 +164,8 @@ |
| 31 | "kernel_name=norkern\0" \ |
| 32 | "kernel_alt_name=Image\0" \ |
| 33 | "kernel_addr_r=0x80080000\0" \ |
| 34 | + "kernel_comp_addr_r=0x90000000\0" \ |
| 35 | + "kernel_comp_size=0x3000000\0" \ |
| 36 | "initrd_name=ramdisk.img\0" \ |
| 37 | "initrd_addr_r=0x88000000\0" \ |
| 38 | "fdtfile=board.dtb\0" \ |
| 39 | -- |
| 40 | 2.30.2 |
| 41 | |