1 if test ${boot_dev} = ""; then
3 setenv root_dev /dev/mmcblk0p3;
6 if test ${dev_num} = ""; then
7 setenv dev_num ${devnum}
8 if test ${dev_num} = ""; then
13 if test ${boot_part} = ""; then
14 setenv boot_part ${dev_num}:1;
18 if fatload ${boot_dev} ${boot_part} ${kernel_addr_r} uEnv.txt; then
19 echo Load uEnv.txt...;
20 env import -t ${kernel_addr_r} ${filesize};
21 if test "${uenvcmd}" = ""; then
24 echo Boot with uEnv.txt...;
29 # for compatiblity reasons set DTBSUNXI if we run on sunxi
30 if test "${board}" = "sunxi"; then
31 setenv fdtfile ${DTBSUNXI};
34 # Check if serial console is enabled
35 if test "${SERIAL-CONSOLE}" = "ON"; then
36 if test ${console} = ""; then
37 if test "${board}" = "rpi"; then
38 if test ${cpu} = "armv8"; then
39 if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b-plus.dtb"; then
40 setenv console ttyS1,115200n8;
42 if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b.dtb"; then
43 setenv console ttyS1,115200n8;
45 setenv console ttyAMA0,115200n8;
49 if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
50 setenv console ttyS1,115200n8;
52 if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
53 setenv console ttyS1,115200n8;
55 setenv console ttyAMA0,115200n8;
60 setenv console ttyS0,115200n8;
63 echo Set console to ${console};
64 setenv bootargs console=${console} root=${root_dev} rootwait;
66 echo Set console to tty1 ;
67 setenv bootargs console=tty1 root=${root_dev} rootwait;
70 setenv fdt_high ffffffff;
71 fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire${kernel_type};
72 fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire${kernel_type}/${fdtfile};
74 if test "${FDTCMDS}" = ""; then
77 fdt addr ${fdt_addr_r};
81 setenv ramdisk_addr ${ramdisk_addr_r}
82 if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire${kernel_type}; then
83 echo Ramdisk loaded...;
85 echo Ramdisk not loaded...;
86 setenv ramdisk_addr -;
89 bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
90 booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
92 bootz ${kernel_addr_r} - ${fdt_addr_r};
93 booti ${kernel_addr_r} - ${fdt_addr_r};
96 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr