diff options
author | Sanchayan Maity <maitysanchayan@gmail.com> | 2016-12-01 12:15:33 +0530 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-01-10 16:17:43 -0800 |
commit | 384d2cde13bd344dacfde6c8e771593de2b38d23 (patch) | |
tree | 089bc4594ca4f810b7b7d098e741c5753be38f45 /recipes-images/images/files/library/imx6/update.sh | |
parent | 119ce7c0724fff64c331fe6b1c94403a0d885b62 (diff) |
images: Remove rootfs size limitation of 4GB with update scripts
Our current update procedure requires the rootfs payload to fit in
one file on a FAT filesystem. This limits its usable size to 4GB.
Use the process of splitting up the files in 64MB chunks and then
doing the update which is also what the Ethernet update scripts
currently follow.
However due to the workaround for u-boot counting in hex and split
did in decimal, the number of chunks is limited to 89 resulting in
a maximum size of 5.5GB. We will remove the limitation in a follow
up patch.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-images/images/files/library/imx6/update.sh')
-rwxr-xr-x | recipes-images/images/files/library/imx6/update.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/recipes-images/images/files/library/imx6/update.sh b/recipes-images/images/files/library/imx6/update.sh index a7f1a1b..6914438 100755 --- a/recipes-images/images/files/library/imx6/update.sh +++ b/recipes-images/images/files/library/imx6/update.sh @@ -40,7 +40,6 @@ Usage() echo "Will require a running U-Boot on the target. Either one already flashed on the" echo "eMMC or one copied over USB into the module's RAM" echo "" - echo "-c : split resulting rootfs into chunks usable for TFTP transmission" echo "-d : use USB connection to copy/execute U-Boot to/from module's RAM" echo "-f : flash instructions" echo "-h : prints this message" @@ -62,16 +61,14 @@ MIN_PARTITION_FREE_SIZE=100 MODTYPE_DETECT=0 OUT_DIR="" ROOTFSPATH=rootfs -SPLIT=0 +SPLIT=1 UBOOT_RECOVERY=0 U_BOOT_BINARY=u-boot.imx-spl U_BOOT_RECOVER_BINARY=u-boot.imx SPL_BINARY=SPL -while getopts "cdfhm:o:" Option ; do +while getopts "dfhm:o:" Option ; do case $Option in - c) SPLIT=1 - ;; d) UBOOT_RECOVERY=1 ;; f) Flash |