blob: f81804ca12c1bdff145636bf3f6eb947b27c1198 [file] [log] [blame]
Tim Harvey942bf432022-11-04 08:51:45 -07001kernel_addr_r=0x48200000
2fdt_addr_r=0x50200000
3scriptaddr=0x50280000
4ramdisk_addr_r=0x50300000
5kernel_comp_addr_r=0x40200000
6script=boot.scr
7bootm_size=0x10000000
8dev=2
9preboot=gsc wd-disable
10console=ttymxc1,115200
11update_firmware=tftpboot $loadaddr $image &&
12 setexpr blkcnt $filesize + 0x1ff &&
13 setexpr blkcnt $blkcnt / 0x200 &&
14 mmc dev $dev &&
15 mmc write $loadaddr $splblk $blkcnt
16loadfdt=if $fsload $fdt_addr_r $dir/$fdt_file1;
17 then echo loaded $fdt_file1;
18 elif $fsload $fdt_addr_r $dir/$fdt_file2;
19 then echo loaded $fdt_file2;
20 elif $fsload $fdt_addr_r $dir/$fdt_file3;
21 then echo loaded $fdt_file3;
22 elif $fsload $fdt_addr_r $dir/$fdt_file4;
23 then echo loaded $fdt_file4;
24 elif $fsload $fdt_addr_r $dir/$fdt_file5;
25 then echo loaded $fdt_file5;
26 fi
27boot_net=setenv fsload tftpboot;
28 run loadfdt && tftpboot $kernel_addr_r $dir/Image &&
29 booti $kernel_addr_r - $fdt_addr_r
30update_rootfs=tftpboot $loadaddr $image &&
31 gzwrite mmc $dev $loadaddr $filesize 100000 1000000
32update_all=tftpboot $loadaddr $image &&
33 gzwrite mmc $dev $loadaddr $filesize
34erase_env=mmc dev $dev; mmc erase 0x7f08 0x40