summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2018-04-17 11:23:03 +0530
committerAmit Pundir <amit.pundir@linaro.org>2018-04-18 00:03:11 +0530
commitbda2295cb8c99bc8a75636c0336701648fe68d7f (patch)
tree2138979bfc2dce4dca75d4d4a4d931cf619852b2
parent6e60c94fcaa05547e8403c856da5376cb5967a74 (diff)
db820c: Use vendor partition
Change-Id: Ia38872045baf4e7807a2799afc7ee313f3a9dbee Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--db820c/BoardConfig.mk5
-rw-r--r--fstab.common1
-rwxr-xr-xinstaller/db820c/flash-all-aosp.sh1
3 files changed, 6 insertions, 1 deletions
diff --git a/db820c/BoardConfig.mk b/db820c/BoardConfig.mk
index e375a97..9a5a726 100644
--- a/db820c/BoardConfig.mk
+++ b/db820c/BoardConfig.mk
@@ -10,8 +10,11 @@ TARGET_BOARD_PLATFORM := db820c
# Image Configuration
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_PAGESIZE := 4096
-BOARD_KERNEL_CMDLINE := firmware_class.path=/system/vendor/firmware/ androidboot.hardware=db820c
+BOARD_KERNEL_CMDLINE := firmware_class.path=/vendor/firmware/ androidboot.hardware=db820c
BOARD_KERNEL_CMDLINE += printk.devkmsg=on maxcpus=2
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4294967296 #4G
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12884901888 #12G
BOARD_CACHEIMAGE_PARTITION_SIZE := 536870912 #512M
+TARGET_COPY_OUT_VENDOR := vendor
+BOARD_VENDORIMAGE_PARTITION_SIZE := 2147483648 #2G
+BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
diff --git a/fstab.common b/fstab.common
index 67cefc2..ae34a80 100644
--- a/fstab.common
+++ b/fstab.common
@@ -3,5 +3,6 @@
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
LABEL=system /system ext4 ro wait
+LABEL=vendor /vendor ext4 ro wait
LABEL=cache /cache ext4 discard,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait
LABEL=data /data ext4 discard,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait
diff --git a/installer/db820c/flash-all-aosp.sh b/installer/db820c/flash-all-aosp.sh
index 909aaed..cdf0dce 100755
--- a/installer/db820c/flash-all-aosp.sh
+++ b/installer/db820c/flash-all-aosp.sh
@@ -41,6 +41,7 @@ fastboot flash keymaster "${INSTALLER_DIR}"/keymaster.mbn
fastboot reboot-bootloader
fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img
fastboot flash system "${ANDROID_PRODUCT_OUT}"/system.img
+fastboot flash vendor "${ANDROID_PRODUCT_OUT}"/vendor.img
fastboot flash cache "${ANDROID_PRODUCT_OUT}"/cache.img
fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img
fastboot reboot