Browse Source
Merge pull request #97 from sensslen/patch-1
Enable U-Boot to select between compressed and uncompressed Kernels
1.2.x
Mirza Krak
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
2 deletions
-
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 |
|
|
|
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 |
|
|
|
|
|
|
|