summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2016-02-12 15:04:07 -0600
committerVishal Mahaveer2016-02-12 15:04:07 -0600
commit6e986074e0f631eb53d565efa00d98fb26c9fb4d (patch)
treee083d63292d1eefc301b8f8c456f7b22b191b97a
parent799475ad6550b80392c1deae8a943b320edf3653 (diff)
downloaddevice-ti-jacinto6evm-6e986074e0f631eb53d565efa00d98fb26c9fb4d.tar.gz
device-ti-jacinto6evm-6e986074e0f631eb53d565efa00d98fb26c9fb4d.tar.xz
device-ti-jacinto6evm-6e986074e0f631eb53d565efa00d98fb26c9fb4d.zip
jacinto6evm: enable creation of cache partition image
Previously we were using fastboot flashing script to create cache partition empty ext4 image. Instead use Android build system to create the same. Change-Id: I796e2ead6a6e3b8cd31b4ba8a104e685faec576c Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--BoardConfig.mk2
-rwxr-xr-xfastboot.sh12
2 files changed, 3 insertions, 11 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index dc7886e..0bd06fe 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -51,6 +51,8 @@ USE_OPENGL_RENDERER := true
51TARGET_USERIMAGES_USE_EXT4 := true 51TARGET_USERIMAGES_USE_EXT4 := true
52BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368 52BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368
53BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 53BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648
54BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
55BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_FLASH_BLOCK_SIZE := 4096 56BOARD_FLASH_BLOCK_SIZE := 4096
55 57
56TARGET_RECOVERY_FSTAB = device/ti/jacinto6evm/fstab.jacinto6evmboard 58TARGET_RECOVERY_FSTAB = device/ti/jacinto6evm/fstab.jacinto6evmboard
diff --git a/fastboot.sh b/fastboot.sh
index 97f573d..1be6752 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -127,7 +127,7 @@ if [ ! -e "${userdataimg}" ] ; then
127fi 127fi
128if [ ! -e "${cacheimg}" ] ; then 128if [ ! -e "${cacheimg}" ] ; then
129 echo "Missing ${cacheimg}" 129 echo "Missing ${cacheimg}"
130# exit -1; 130 exit -1;
131fi 131fi
132if [ ! -e "${recoveryimg}" ] ; then 132if [ ! -e "${recoveryimg}" ] ; then
133 echo "Missing ${recoveryimg}" 133 echo "Missing ${recoveryimg}"
@@ -226,16 +226,6 @@ else
226 echo "efs partition is untouched" 226 echo "efs partition is untouched"
227fi 227fi
228 228
229#Create cache.img
230if [ ! -f ${cacheimg} ]
231then
232 echo "Creating cache.img as empty ext4 img...."
233 rm -rf /tmp/fastboot-cache
234 mkdir /tmp/fastboot-cache
235 ./make_ext4fs -s -l 256M -a cache ${cacheimg} /tmp/fastboot-cache/
236 rm -rf /tmp/fastboot-cache
237fi
238
239#flash cache.img 229#flash cache.img
240${FASTBOOT} flash cache ${cacheimg} 230${FASTBOOT} flash cache ${cacheimg}
241 231