]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
u-boot: boot aarch64 kernel without -multi extension
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 19 Jul 2018 08:29:44 +0000 (09:29 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 19 Jul 2018 08:29:44 +0000 (09:29 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/u-boot/boot.cmd
config/u-boot/boot.scr

index 6679d679ab22c7e16ce60f32a2589cda2a1e7992..1d3017ba9e66a5a51155238d6f43727dbcdf03dc 100644 (file)
@@ -8,9 +8,13 @@ if test ${boot_part} = ""; then
 fi;
 
 if test ${soc} = "kirkwood"; then
-       setenv kernel_type kirkwood;
+       setenv kernel_type -kirkwood;
 else
-       setenv kernel_type multi;
+       if test ${cpu} = "armv8"; then
+               echo ;
+       else
+               setenv kernel_type -multi;
+       fi;
 fi;
 
 # Import uEnv txt...
@@ -34,13 +38,25 @@ fi;
 if test "${SERIAL-CONSOLE}" = "ON"; then
        if test ${console} = ""; then
                if test "${board}" = "rpi"; then
-                       if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
-                               setenv console ttyS1,115200n8;
+                       if test ${cpu} = "armv8"; then
+                               if test "${fdtfile}" = "boradcom/bcm2837-rpi-3-b-plus.dtb"; then
+                                       setenv console ttyS1,115200n8;
+                               else
+                                       if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b.dtb"; then
+                                               setenv console ttyS1,115200n8;
+                                       else
+                                               setenv console ttyAMA0,115200n8;
+                                       fi;
+                               fi;
                        else
-                               if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
+                               if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
                                        setenv console ttyS1,115200n8;
                                else
-                                       setenv console ttyAMA0,115200n8;
+                                       if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
+                                               setenv console ttyS1,115200n8;
+                                       else
+                                               setenv console ttyAMA0,115200n8;
+                                       fi;
                                fi;
                        fi;
                else
@@ -55,10 +71,10 @@ else
 fi;
 
 setenv fdt_high ffffffff;
-fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire-${kernel_type};
-fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire-${kernel_type}/${fdtfile};
+fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire${kernel_type};
+fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire${kernel_type}/${fdtfile};
 setenv ramdisk_addr ${ramdisk_addr_r}
-if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire-${kernel_type}; then
+if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire${kernel_type}; then
        echo Ramdisk loaded...;
 else
        echo Ramdisk not loaded...;
index 188d54456da43c74e5428aa94b20b9d6c6730532..0d9e67b9689c2cbbdb9f512d53ac8ce6fc682926 100644 (file)
Binary files a/config/u-boot/boot.scr and b/config/u-boot/boot.scr differ