Browse Source

Enable U-Boot to select between compressed and uncompressed Kernels

Changelog: Instruct U-Boot to be able to boot either a compressed or an uncompressed kernel. This is very useful e.g. when switching from Debian (Raspbian) created using mender-convert to a Yocto based environment that does not compress the Kernel by default.

Signed-off-by: Simon Ensslen <simon.ensslen@griesser.ch>
1.2.x
Simon Ensslen 6 years ago
committed by chensi1
parent
commit
a87ecd79b4
  1. 9
      rpi-convert-stage-5.sh

9
rpi-convert-stage-5.sh

@ -66,8 +66,13 @@ build_uboot_files() {
fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
run mender_setup
mmc dev ${mender_uboot_dev}
load ${mender_uboot_root} ${kernel_addr_r} /boot/zImage
bootz ${kernel_addr_r} - ${fdt_addr}
if load ${mender_uboot_root} ${kernel_addr_r} /boot/zImage; then
bootz ${kernel_addr_r} - ${fdt_addr}
elif load ${mender_uboot_root} ${kernel_addr_r} /boot/uImage; then
bootm ${kernel_addr_r} - ${fdt_addr}
else
echo "No bootable Kernel found."
fi
run mender_try_to_recover
EOF

Loading…
Cancel
Save