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/tegra/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/tegra/update.sh')
-rwxr-xr-x | recipes-images/images/files/library/tegra/update.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/recipes-images/images/files/library/tegra/update.sh b/recipes-images/images/files/library/tegra/update.sh index 5b4e1b8..a3ae741 100755 --- a/recipes-images/images/files/library/tegra/update.sh +++ b/recipes-images/images/files/library/tegra/update.sh @@ -43,7 +43,6 @@ Usage() echo "eMMC/NAND or one copied over USB into the module's RAM" echo "" echo "-b : T20: selects boot device (hsmmc/nand) (default: nand)" - echo "-c : split resulting rootfs into chunks usable for TFTP transmission" echo "-d : use USB recovery mode to copy/execute U-Boot to/from module's RAM" echo "-f : flash instructions" echo "-h : prints this message" @@ -82,19 +81,17 @@ PAGE="4KiB" OUT_DIR="" ROOTFSPATH=rootfs -SPLIT=0 +SPLIT=1 UBOOT_RECOVERY=0 # don't provide working defaults which may lead to wrong HW/SW combination MODVERSION=Add_Version_-v RAM_SIZE=Add_RAMsize_-r -while getopts "b:cdfhm:o:r:sv:" Option ; do +while getopts "b:dfhm:o:r:sv:" Option ; do case $Option in b) BOOT_DEVICE=$OPTARG ;; - c) SPLIT=1 - ;; d) UBOOT_RECOVERY=1 ;; f) Flash |