From 384d2cde13bd344dacfde6c8e771593de2b38d23 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 1 Dec 2016 12:15:33 +0530 Subject: 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 Signed-off-by: Max Krummenacher --- recipes-images/images/files/library/tegra/update.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'recipes-images/images/files/library/tegra/update.sh') 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 -- cgit v1.2.3