u-boot: add quirk for rpi on aarch64

the current rpi u-boot will not load the ramdisk correctly so the kernel will
crash with loaded ramdisk.
Remove ramdisk and replace root UUID by /dev/mmcblk0p3 if boot was on
armv8 and rpi.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-02-20 12:24:36 +01:00
parent 777ba8192c
commit a62be8a2d9
2 changed files with 11 additions and 1 deletions

View File

@@ -87,7 +87,17 @@ if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire${kernel
else
echo Ramdisk not loaded...;
setenv ramdisk_addr -;
fi ;
fi;
# Quirk for RPi on aarch64 becuase u-boot cannot use the
# initrd on aarch64
if test ${cpu} = "armv8"; then
if test ${board} = "rpi"; then
setenv ramdisk_addr -;
setenv root_dev /dev/mmcblk0p3;
fi;
fi;
bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};

Binary file not shown.