2 if fatload mmc 0 ${kernel_addr_r} uEnv.txt; then
4 env import -t ${kernel_addr_r} ${filesize};
5 if test "${uenvcmd}" = ""; then
8 echo Boot with uEnv.txt...;
13 # for compatiblity reasons set DTBSUNXI if we run on sunxi
14 if test "${board}" = "sunxi"; then
15 setenv fdtfile ${DTBSUNXI};
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;
25 setenv console ttyAMA0,115200n8;
28 setenv console ttyS0,115200n8;
31 echo Set console to ${console};
32 setenv bootargs console=${console} rootwait root=/dev/mmcblk0p3 rootwait;
34 echo Set console to tty1 ;
35 setenv bootargs console=tty1 rootwait root=/dev/mmcblk0p3 rootwait;
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...;
44 echo Ramdisk not loaded...;
45 setenv ramdisk_addr_r -;
47 bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r};
50 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr