pmaports/device/testing/device-sipeed-licheezero/uboot-script.cmd
Caleb Connolly 3ed9591e41
treewide: drop PMOS_NO_OUTPUT_REDIRECT (MR 5240)
This cmdline argument is now a no-op. Drop it everywhere and add a new
CI check to enforce this.

Adjust the deprecated "minimal" initramfs variant to use
pmos.debug-shell to enable logging instead. It doesn't /support/
dropping to a shell, so the variable takes on a different meaning. But
that's ok since it's at least more consistent.

[ci:ignore-count]
[ci:skip-vercheck]
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
Tweaked-by: Oliver Smith <ollieparanoid@postmarketos.org>
[ci:skip-build]: kernel builds are very likely to go through now
2024-06-23 14:48:20 +02:00

32 lines
935 B
Batchfile

setenv bootargs init=/init.sh rw console=tty0 console=ttyS0,115200 panic=10 consoleblank=0 loglevel=1 PMOS_FORCE_PARTITION_RESIZE
printenv
echo Loading DTB ${fdtfile}
load mmc 0:1 ${fdt_addr_r} dtbs-edge/${fdtfile}
echo Loading Initramfs
load mmc 0:1 ${ramdisk_addr_r} initramfs
setenv ramdisk_size ${filesize}
echo Loading Kernel
load mmc 0:1 ${kernel_addr_r} vmlinuz-edge
echo Resizing FDT
fdt addr ${fdt_addr_r}
fdt resize
echo Loading user config
setexpr fdtoverlay_addr_r ${fdt_addr_r} + F0000
if load mmc 0:1 ${fdtoverlay_addr_r} overlay.txt && env import -t ${fdtoverlay_addr_r} ${filesize} && test -n ${overlay}; then
echo Loaded overlay.txt: ${overlay}
for ov in ${overlay}; do
echo Load ${ov}.dtbo
load mmc 0:1 ${fdtoverlay_addr_r} overlay/${ov}.dtbo && fdt apply ${fdtoverlay_addr_r}
done
echo Loaded all overlays
fi
echo Booting kernel
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${ramdisk_size} ${fdt_addr_r}