hikey: Move to real vendor partition
$ fastboot flash ptable ptable-aosp-8g.img
$ fastboot reboot-bootloader
$ fastboot flashall -w
$ adb shell df
Filesystem 1K-blocks Used Available Use% Mounted on rootfs 932472 3288 929184 1% /
tmpfs 1001012 260 1000752 1% /dev
tmpfs 1001012 0 1001012 0% /mnt
/dev/block/mmcblk0p9 1515376 855460 659916 57% /system
/dev/block/mmcblk0p7 261856 15176 246680 6% /vendor
/dev/block/mmcblk0p8 237536 176 237360 1% /cache
/dev/block/mmcblk0p10 5306620 33296 5273324 1% /data
Bug: 75288279
Test: Manual
Change-Id: I079f1a626ccc6d918a372130e2adbe2c9de2335f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/hikey/BoardConfig.mk b/hikey/BoardConfig.mk
index 7f50c5d..f984c26 100644
--- a/hikey/BoardConfig.mk
+++ b/hikey/BoardConfig.mk
@@ -34,3 +34,10 @@
endif
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
BOARD_FLASH_BLOCK_SIZE := 131072
+
+# Vendor partition definitions
+TARGET_COPY_OUT_VENDOR := vendor
+BOARD_VENDORIMAGE_PARTITION_SIZE := 268435456 # 256MB
+BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
+BOARD_VENDORIMAGE_JOURNAL_SIZE := 0
+BOARD_VENDORIMAGE_EXTFS_INODE_COUNT := 2048
diff --git a/hikey/fstab.hikey b/hikey/fstab.hikey
index 8c3d816..35eee26 100644
--- a/hikey/fstab.hikey
+++ b/hikey/fstab.hikey
@@ -5,6 +5,7 @@
/dev/block/platform/soc/f723d000.dwmmc0/by-name/system /system ext4 ro wait
/dev/block/platform/soc/f723d000.dwmmc0/by-name/system /system squashfs ro wait
+/dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor /vendor ext4 ro wait
/dev/block/platform/soc/f723d000.dwmmc0/by-name/cache /cache ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait
/dev/block/platform/soc/f723d000.dwmmc0/by-name/userdata /data f2fs discard,noatime,nosuid,nodev wait,check,fileencryption=software,quota
/dev/block/platform/soc/f723d000.dwmmc0/by-name/userdata /data ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait,formattable
diff --git a/hikey/fstab.hikey-3.18 b/hikey/fstab.hikey-3.18
index 40b44f9..6e184c5 100644
--- a/hikey/fstab.hikey-3.18
+++ b/hikey/fstab.hikey-3.18
@@ -5,6 +5,7 @@
/dev/block/platform/f723d000.dwmmc0/by-name/system /system ext4 ro wait
/dev/block/platform/f723d000.dwmmc0/by-name/system /system squashfs ro wait
+/dev/block/platform/f723d000.dwmmc0/by-name/vendor /vendor ext4 ro wait
/dev/block/platform/f723d000.dwmmc0/by-name/cache /cache ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait
/dev/block/platform/f723d000.dwmmc0/by-name/userdata /data f2fs discard,noatime,nosuid,nodev wait,check,fileencryption=software,quota
/dev/block/platform/f723d000.dwmmc0/by-name/userdata /data ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait,formattable