mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 12:15:52 +02:00
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:
@@ -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.
Reference in New Issue
Block a user