]> git.ipfire.org Git - ipfire-2.x.git/blob - config/u-boot/boot.cmd
u-boot: update to 2018.03
[ipfire-2.x.git] / config / u-boot / boot.cmd
1 # Import uEnv txt...
2 if fatload mmc 0 ${kernel_addr_r} uEnv.txt; then
3 echo Load uEnv.txt...;
4 env import -t ${kernel_addr_r} ${filesize};
5 if test "${uenvcmd}" = ""; then
6 echo ...;
7 else
8 echo Boot with uEnv.txt...;
9 run uenvcmd;
10 fi;
11 fi;
12
13 # for compatiblity reasons set DTBSUNXI if we run on sunxi
14 if test "${board}" = "sunxi"; then
15 setenv fdtfile ${DTBSUNXI};
16 fi;
17
18 # Check if serial console is enabled
19 if test "${SERIAL-CONSOLE}" = "ON"; then
20 if test ${console} = ""; then
21 if test "${board}" = "rpi"; then
22 if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
23 setenv console ttyS1,115200n8;
24 else
25 setenv console ttyAMA0,115200n8;
26 fi;
27 else
28 setenv console ttyS0,115200n8;
29 fi;
30 fi
31 echo Set console to ${console};
32 setenv bootargs console=${console} rootwait root=/dev/mmcblk0p3 rootwait;
33 else
34 echo Set console to tty1 ;
35 setenv bootargs console=tty1 rootwait root=/dev/mmcblk0p3 rootwait;
36 fi;
37
38 setenv fdt_high ffffffff;
39 fatload mmc 0:1 ${kernel_addr_r} vmlinuz-${KVER}-ipfire-multi;
40 fatload mmc 0:1 ${fdt_addr_r} dtb-${KVER}-ipfire-multi/${fdtfile};
41 if fatload mmc 0:1 ${ramdisk_addr_r} uInit-${KVER}-ipfire-multi; then
42 echo Ramdisk loaded...;
43 else
44 echo Ramdisk not loaded...;
45 setenv ramdisk_addr_r -;
46 fi ;
47 bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r};
48
49 # Recompile with:
50 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr