diff options
author | Vishal Mahaveer <vishalm@ti.com> | 2016-02-12 16:04:07 -0500 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2016-02-12 16:04:07 -0500 |
commit | 6e986074e0f631eb53d565efa00d98fb26c9fb4d (patch) | |
tree | e083d63292d1eefc301b8f8c456f7b22b191b97a | |
parent | 799475ad6550b80392c1deae8a943b320edf3653 (diff) | |
download | jacinto6evm-6e986074e0f631eb53d565efa00d98fb26c9fb4d.tar.gz |
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.mk | 2 | ||||
-rwxr-xr-x | fastboot.sh | 12 |
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 TARGET_USERIMAGES_USE_EXT4 := true BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368 BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 +BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 BOARD_FLASH_BLOCK_SIZE := 4096 TARGET_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 fi if [ ! -e "${cacheimg}" ] ; then echo "Missing ${cacheimg}" -# exit -1; + exit -1; fi if [ ! -e "${recoveryimg}" ] ; then echo "Missing ${recoveryimg}" @@ -226,16 +226,6 @@ else echo "efs partition is untouched" fi -#Create cache.img -if [ ! -f ${cacheimg} ] -then - echo "Creating cache.img as empty ext4 img...." - rm -rf /tmp/fastboot-cache - mkdir /tmp/fastboot-cache - ./make_ext4fs -s -l 256M -a cache ${cacheimg} /tmp/fastboot-cache/ - rm -rf /tmp/fastboot-cache -fi - #flash cache.img ${FASTBOOT} flash cache ${cacheimg} |