]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/u-boot/boot.cmd
kernel: disable FW_LOADER_USER_HELPER_FALLBACK
[people/pmueller/ipfire-2.x.git] / config / u-boot / boot.cmd
1 if test ${boot_dev} = ""; then
2 setenv boot_dev mmc;
3 setenv root_dev /dev/mmcblk0p3;
4 fi;
5
6 if test ${boot_part} = ""; then
7 setenv boot_part 0:1;
8 fi;
9
10 if test ${soc} = "kirkwood"; then
11 setenv kernel_type -kirkwood;
12 else
13 if test ${cpu} = "armv8"; then
14 echo ;
15 else
16 setenv kernel_type -multi;
17 fi;
18 fi;
19
20 # Import uEnv txt...
21 if fatload ${boot_dev} ${boot_part} ${kernel_addr_r} uEnv.txt; then
22 echo Load uEnv.txt...;
23 env import -t ${kernel_addr_r} ${filesize};
24 if test "${uenvcmd}" = ""; then
25 echo ...;
26 else
27 echo Boot with uEnv.txt...;
28 run uenvcmd;
29 fi;
30 fi;
31
32 # for compatiblity reasons set DTBSUNXI if we run on sunxi
33 if test "${board}" = "sunxi"; then
34 setenv fdtfile ${DTBSUNXI};
35 fi;
36
37 # Check if serial console is enabled
38 if test "${SERIAL-CONSOLE}" = "ON"; then
39 if test ${console} = ""; then
40 if test "${board}" = "rpi"; then
41 if test ${cpu} = "armv8"; then
42 if test "${fdtfile}" = "boradcom/bcm2837-rpi-3-b-plus.dtb"; then
43 setenv console ttyS1,115200n8;
44 else
45 if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b.dtb"; then
46 setenv console ttyS1,115200n8;
47 else
48 setenv console ttyAMA0,115200n8;
49 fi;
50 fi;
51 else
52 if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
53 setenv console ttyS1,115200n8;
54 else
55 if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
56 setenv console ttyS1,115200n8;
57 else
58 setenv console ttyAMA0,115200n8;
59 fi;
60 fi;
61 fi;
62 else
63 setenv console ttyS0,115200n8;
64 fi;
65 fi
66 echo Set console to ${console};
67 setenv bootargs console=${console} root=${root_dev} rootwait;
68 else
69 echo Set console to tty1 ;
70 setenv bootargs console=tty1 root=${root_dev} rootwait;
71 fi;
72
73 setenv fdt_high ffffffff;
74 fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire${kernel_type};
75 fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire${kernel_type}/${fdtfile};
76
77 if test "${FDTCMDS}" = ""; then
78 echo ;
79 else
80 fdt addr ${fdt_addr_r};
81 run FDTCMDS;
82 fi;
83
84 setenv ramdisk_addr ${ramdisk_addr_r}
85 if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire${kernel_type}; then
86 echo Ramdisk loaded...;
87 else
88 echo Ramdisk not loaded...;
89 setenv ramdisk_addr -;
90 fi ;
91 bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
92 booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
93
94 # Recompile with:
95 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr