summaryrefslogtreecommitdiff
path: root/recipes/images/files/colibri-t30/colibri-t30_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-t30/colibri-t30_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-t30/colibri-t30_bin/flash_eth.scr')
-rw-r--r--recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr b/recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr
index e3e7a59..797dd4c 100644
--- a/recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr
+++ b/recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr
@@ -26,10 +26,10 @@ setenv update_configblock 'run check_configblock; tftpboot ${loadaddr} configblo
setenv update_1 'tftpboot ${loadaddr} mbr.bin && mmc dev 0 0 && mmc write ${loadaddr} 0x0 0x1'
setenv update_2 'tftpboot ${loadaddr} boot.vfat && run set_blkcnt && mmc dev 0 0 && mmc write ${loadaddr} 0x2000 ${blkcnt}'
-#do it in chunks of 256M to fit into DDR RAM of the smallest module
-#split root.ext3 into multiple 256M chunks before copying to TFTP folder as follows
-#split -a 1 -b `expr 256 \* 1024 \* 1024` -d root.ext3 root.ext3-
-setenv update_3 'setenv filesize 10000000; setenv filenum 0; setenv blkstart a000; while test ${filesize} -eq "10000000"; do run cp_file_chunk; run set_nextnum; done'
+#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 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'
setenv echo_v2.3b1 echo "successfully updated U-Boot, power-cycle and enter \"run setupdate\; run migrate_v2.3b1\" to complete update"
setenv migrate_v2.3b1 'run migrate_configblock; run update_new'