u-boot: split rpi aarch64 quirk into parts

on of the changed variables was used before the old quirk.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-02-21 09:26:36 +01:00
parent 1eef496d47
commit 91b4ba6d6e
2 changed files with 10 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ if test ${cpu} = "armv8"; then
echo ;
else
setenv kernel_type -multi;
fi;
fi;
# Import uEnv txt...
if fatload ${boot_dev} ${boot_part} ${kernel_addr_r} uEnv.txt; then
@@ -34,6 +34,14 @@ if test "${board}" = "sunxi"; then
setenv fdtfile ${DTBSUNXI};
fi;
# Quirk for RPi on aarch64 becuase u-boot cannot use the
# initrd on aarch64 and without ramdisk no UUID
if test ${cpu} = "armv8"; then
if test ${board} = "rpi"; then
setenv root_dev /dev/mmcblk0p3;
fi;
fi;
# Check if serial console is enabled
if test "${SERIAL-CONSOLE}" = "ON"; then
if test ${console} = ""; then
@@ -93,8 +101,7 @@ fi;
# initrd on aarch64
if test ${cpu} = "armv8"; then
if test ${board} = "rpi"; then
setenv ramdisk_addr -;
setenv root_dev /dev/mmcblk0p3;
setenv ramdisk_addr -;
fi;
fi;

Binary file not shown.