From 4c49bd46708dd552d6471e24657ebcbf1c4f44bd Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 19 Oct 2015 17:14:29 +0200 Subject: 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. --- recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes/images/files/colibri-t30/colibri-t30_bin/flash_eth.scr') 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' -- cgit v1.2.3