1 if test ${boot_dev} = ""; then
3 setenv root_dev /dev/mmcblk0p3;
6 if test ${dev_num} = ""; then
10 if test ${boot_part} = ""; then
11 setenv boot_part ${dev_num}:1;
15 if fatload ${boot_dev} ${boot_part} ${kernel_addr_r} uEnv.txt; then
16 echo Load uEnv.txt...;
17 env import -t ${kernel_addr_r} ${filesize};
18 if test "${uenvcmd}" = ""; then
21 echo Boot with uEnv.txt...;
26 # for compatiblity reasons set DTBSUNXI if we run on sunxi
27 if test "${board}" = "sunxi"; then
28 setenv fdtfile ${DTBSUNXI};
31 # Check if serial console is enabled
32 if test "${SERIAL-CONSOLE}" = "ON"; then
33 if test ${console} = ""; then
34 if test "${board}" = "rpi"; then
35 if test ${cpu} = "armv8"; then
36 if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b-plus.dtb"; then
37 setenv console ttyS1,115200n8;
39 if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b.dtb"; then
40 setenv console ttyS1,115200n8;
42 setenv console ttyAMA0,115200n8;
46 if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
47 setenv console ttyS1,115200n8;
49 if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
50 setenv console ttyS1,115200n8;
52 setenv console ttyAMA0,115200n8;
57 setenv console ttyS0,115200n8;
60 echo Set console to ${console};
61 setenv bootargs console=${console} root=${root_dev} rootwait;
63 echo Set console to tty1 ;
64 setenv bootargs console=tty1 root=${root_dev} rootwait;
67 setenv fdt_high ffffffff;
68 fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire${kernel_type};
69 fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire${kernel_type}/${fdtfile};
71 if test "${FDTCMDS}" = ""; then
74 fdt addr ${fdt_addr_r};
78 setenv ramdisk_addr ${ramdisk_addr_r}
79 if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire${kernel_type}; then
80 echo Ramdisk loaded...;
82 echo Ramdisk not loaded...;
83 setenv ramdisk_addr -;
86 bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
87 booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
89 bootz ${kernel_addr_r} - ${fdt_addr_r};
90 booti ${kernel_addr_r} - ${fdt_addr_r};
93 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr