diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-03-28 13:59:29 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-05-12 10:04:34 +0200 |
commit | 495ad28eadc1733c58fb644586f8f9ce60e4a6ce (patch) | |
tree | 823c2d2ca93396be5075922c76f9a0592705d55b /recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr | |
parent | 48d95d0878b84c42a194800d904ff93908b9b785 (diff) |
trdx-image-fstype: drop tarball in favour of files
Drop the burnflash.tar.bz2 tarball and put the individual files under
version control.
Only create minimal set for colibri-t20 for now and move it with the
change to tegra-uboot-flasher.
Diffstat (limited to 'recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr')
-rw-r--r-- | recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr b/recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr new file mode 100644 index 0000000..6eb57fb --- /dev/null +++ b/recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr @@ -0,0 +1,15 @@ +setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200' +setenv set_nextnum 'setexpr filenum ${filenum} + 1; setexpr blkstart ${blkstart} + ${blkcnt}' +setenv cp_file_chunk 'tftpboot ${loadaddr} root.ext3-${filenum}; run set_blkcnt; mmc dev 0 && mmc write ${loadaddr} ${blkstart} ${blkcnt}' +setenv update_uboot 'tftpboot ${loadaddr} u-boot.imx && run set_blkcnt && mmc dev 0 && mmc write ${loadaddr} 2 ${blkcnt}; patch_ddr_size' +setenv update_kernel 'tftpboot ${loadaddr} uImage && fatwrite mmc 0:1 ${loadaddr} uImage ${filesize}' +setenv update_fdt 'tftpboot ${loadaddr} ${fdt_file} && fatwrite mmc 0:1 ${loadaddr} ${fdt_file} ${filesize}' +setenv update_configblock 'tftpboot ${loadaddr} configblock.bin && run set_blkcnt && mmc dev 0 && mmc write ${loadaddr} 0x500 ${blkcnt}' +setenv update 'run update_1; run update_uboot; run update_2; run update_3; reset' +setenv update_1 'tftpboot ${loadaddr} mbr.bin && mmc dev 0 && mmc write ${loadaddr} 0x0 0x1' +setenv update_2 'tftpboot ${loadaddr} boot.vfat && run set_blkcnt && mmc dev 0 && mmc write ${loadaddr} 0x2000 ${blkcnt}' +#do it in chunks of 64M to fit into DDR RAM of the smallest module +#split root.ext3 into multiple 64M chunks before copying to TFTP folder as follows +#split -a 1 -b `expr 64 \* 1024 \* 1024` -d root.ext3 root.ext3- +setenv update_3 'setenv filesize 4000000; setenv filenum 0; setenv blkstart a000; while test ${filesize} -eq "4000000"; do run cp_file_chunk; run set_nextnum; done' +echo 'enter "run update" to update the entire module' |