blob: a0d6c43325cffc94131aa9fb49a2060a08d996b0 [file] [log] [blame]
Tim Harvey765f6f12022-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
Tim Harvey7b39e5b2023-05-02 17:05:55 -070011update_firmware=tftpboot $loadaddr $dir/venice-$soc-flash.bin &&
Tim Harvey765f6f12022-11-04 08:51:45 -070012 setexpr blkcnt $filesize + 0x1ff &&
13 setexpr blkcnt $blkcnt / 0x200 &&
Tim Harvey7b39e5b2023-05-02 17:05:55 -070014 mmc dev $dev $bootpart &&
15 mmc write $loadaddr $bootblk $blkcnt
Tim Harvey765f6f12022-11-04 08:51:45 -070016loadfdt=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