Tim Harvey | 942bf43 | 2022-11-04 08:51:45 -0700 | [diff] [blame] | 1 | kernel_addr_r=0x48200000 |
| 2 | fdt_addr_r=0x50200000 |
| 3 | scriptaddr=0x50280000 |
| 4 | ramdisk_addr_r=0x50300000 |
| 5 | kernel_comp_addr_r=0x40200000 |
| 6 | script=boot.scr |
| 7 | bootm_size=0x10000000 |
| 8 | dev=2 |
| 9 | preboot=gsc wd-disable |
| 10 | console=ttymxc1,115200 |
| 11 | update_firmware=tftpboot $loadaddr $image && |
| 12 | setexpr blkcnt $filesize + 0x1ff && |
| 13 | setexpr blkcnt $blkcnt / 0x200 && |
| 14 | mmc dev $dev && |
| 15 | mmc write $loadaddr $splblk $blkcnt |
| 16 | loadfdt=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 |
| 27 | boot_net=setenv fsload tftpboot; |
| 28 | run loadfdt && tftpboot $kernel_addr_r $dir/Image && |
| 29 | booti $kernel_addr_r - $fdt_addr_r |
| 30 | update_rootfs=tftpboot $loadaddr $image && |
| 31 | gzwrite mmc $dev $loadaddr $filesize 100000 1000000 |
| 32 | update_all=tftpboot $loadaddr $image && |
| 33 | gzwrite mmc $dev $loadaddr $filesize |
| 34 | erase_env=mmc dev $dev; mmc erase 0x7f08 0x40 |