summaryrefslogtreecommitdiff
path: root/recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2015-10-19 17:14:29 +0200
committerMax Krummenacher <max.oss.09@gmail.com>2015-10-28 09:31:27 +0100
commit4c49bd46708dd552d6471e24657ebcbf1c4f44bd (patch)
tree0da40493f0b5bfac226a0175b6721f816ec811d4 /recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr
parent878f19253370e3d11f1e877bfb83f65db4315f5b (diff)
flash_eth: provide option to split output file
To flash a large rootfs over tftp the rootfs must be split into chunks of 64MB on the tftp server. Add the option '-c' to the update.sh script which does this automatically. Use 64MB chunks on all module types.
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.scr4
1 files changed, 2 insertions, 2 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
index e21870a..0a671bd 100644
--- a/recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr
+++ b/recipes/images/files/colibri-imx6/colibri-imx6_bin/flash_eth.scr
@@ -11,6 +11,6 @@ setenv update_1 'tftpboot ${loadaddr} mbr.bin && mmc dev 0 0 && mmc write ${load
setenv update_2 'tftpboot ${loadaddr} boot.vfat && run set_blkcnt && mmc dev 0 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'
+#split -a 2 -b `expr 64 \* 1024 \* 1024` --numeric-suffixes=10 root.ext3 root.ext3-
+setenv update_3 'setenv filesize 4000000; setenv filenum 10; 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'