1 if test ${boot_dev} = ""; then
3 setenv root_dev /dev/mmcblk0p3;
6 if test ${boot_part} = ""; then
10 if test ${soc} = "kirkwood"; then
11 setenv kernel_type -kirkwood;
13 if test ${cpu} = "armv8"; then
16 setenv kernel_type -multi;
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
27 echo Boot with uEnv.txt...;
32 # for compatiblity reasons set DTBSUNXI if we run on sunxi
33 if test "${board}" = "sunxi"; then
34 setenv fdtfile ${DTBSUNXI};
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}" = "broadcom/bcm2837-rpi-3-b-plus.dtb"; then
43 setenv console ttyS1,115200n8;
45 if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b.dtb"; then
46 setenv console ttyS1,115200n8;
48 setenv console ttyAMA0,115200n8;
52 if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
53 setenv console ttyS1,115200n8;
55 if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
56 setenv console ttyS1,115200n8;
58 setenv console ttyAMA0,115200n8;
63 setenv console ttyS0,115200n8;
66 echo Set console to ${console};
67 setenv bootargs console=${console} root=${root_dev} rootwait;
69 echo Set console to tty1 ;
70 setenv bootargs console=tty1 root=${root_dev} rootwait;
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};
77 if test "${FDTCMDS}" = ""; then
80 fdt addr ${fdt_addr_r};
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...;
88 echo Ramdisk not loaded...;
89 setenv ramdisk_addr -;
91 bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
92 booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
94 bootz ${kernel_addr_r} - ${fdt_addr_r};
95 booti ${kernel_addr_r} - ${fdt_addr_r};
98 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr