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>
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};