diff options
author | Vishal Mahaveer | 2016-02-12 15:04:07 -0600 |
---|---|---|
committer | Vishal Mahaveer | 2016-02-12 15:04:07 -0600 |
commit | 6e986074e0f631eb53d565efa00d98fb26c9fb4d (patch) | |
tree | e083d63292d1eefc301b8f8c456f7b22b191b97a | |
parent | 799475ad6550b80392c1deae8a943b320edf3653 (diff) | |
download | device-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.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 | |||
51 | TARGET_USERIMAGES_USE_EXT4 := true | 51 | TARGET_USERIMAGES_USE_EXT4 := true |
52 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368 | 52 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368 |
53 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 | 53 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 |
54 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 | ||
55 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
54 | BOARD_FLASH_BLOCK_SIZE := 4096 | 56 | BOARD_FLASH_BLOCK_SIZE := 4096 |
55 | 57 | ||
56 | TARGET_RECOVERY_FSTAB = device/ti/jacinto6evm/fstab.jacinto6evmboard | 58 | 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 | |||
127 | fi | 127 | fi |
128 | if [ ! -e "${cacheimg}" ] ; then | 128 | if [ ! -e "${cacheimg}" ] ; then |
129 | echo "Missing ${cacheimg}" | 129 | echo "Missing ${cacheimg}" |
130 | # exit -1; | 130 | exit -1; |
131 | fi | 131 | fi |
132 | if [ ! -e "${recoveryimg}" ] ; then | 132 | if [ ! -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" |
227 | fi | 227 | fi |
228 | 228 | ||
229 | #Create cache.img | ||
230 | if [ ! -f ${cacheimg} ] | ||
231 | then | ||
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 | ||
237 | fi | ||
238 | |||
239 | #flash cache.img | 229 | #flash cache.img |
240 | ${FASTBOOT} flash cache ${cacheimg} | 230 | ${FASTBOOT} flash cache ${cacheimg} |
241 | 231 | ||