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 setenv kernel_type multi;
17 if fatload ${boot_dev} ${boot_part} ${kernel_addr_r} uEnv.txt; then
18 echo Load uEnv.txt...;
19 env import -t ${kernel_addr_r} ${filesize};
20 if test "${uenvcmd}" = ""; then
23 echo Boot with uEnv.txt...;
28 # for compatiblity reasons set DTBSUNXI if we run on sunxi
29 if test "${board}" = "sunxi"; then
30 setenv fdtfile ${DTBSUNXI};
33 # Check if serial console is enabled
34 if test "${SERIAL-CONSOLE}" = "ON"; then
35 if test ${console} = ""; then
36 if test "${board}" = "rpi"; then
37 if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
38 setenv console ttyS1,115200n8;
40 if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
41 setenv console ttyS1,115200n8;
43 setenv console ttyAMA0,115200n8;
47 setenv console ttyS0,115200n8;
50 echo Set console to ${console};
51 setenv bootargs console=${console} root=${root_dev} rootwait;
53 echo Set console to tty1 ;
54 setenv bootargs console=tty1 root=${root_dev} rootwait;
57 setenv fdt_high ffffffff;
58 fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire-${kernel_type};
59 fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire-${kernel_type}/${fdtfile};
60 setenv ramdisk_addr ${ramdisk_addr_r}
61 if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire-${kernel_type}; then
62 echo Ramdisk loaded...;
64 echo Ramdisk not loaded...;
65 setenv ramdisk_addr -;
67 bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
68 booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
71 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr