sm6250-common: define partition rules
Partition sizes can be found by query-ing sysfs. For example, for super partition. > ls -la /dev/block/by-name/super lrwxrwxrwx 1 root root 16 1970-03-23 06:51 super -> /dev/block/sda17 > cat /proc/partitions | grep sda17 259 1 8388608 sda17 The size needs to be multiplied by the block size used by /proc/partitions, which is 1024 bytes. Logical partitions found inside the physical super partition can be found by looking for entries with the logical flag in the fstab inside boot ramdisk.
This commit is contained in:
parent
c21db8f4da
commit
ed08feb3fe
@ -80,6 +80,31 @@ BOARD_KERNEL_CMDLINE += video=vfb:640x400,bpp=32,memsize=3072000
|
||||
DEVICE_MANIFEST_FILE := $(COMMON_PATH)/manifest.xml
|
||||
DEVICE_MATRIX_FILE := $(COMMON_PATH)/compatibility_matrix.xml
|
||||
|
||||
# Partitions
|
||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 402653184
|
||||
BOARD_DTBOIMG_PARTITION_SIZE := 8388608
|
||||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 134217728
|
||||
BOARD_SUPER_PARTITION_SIZE := 8589934592
|
||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 112421842944
|
||||
|
||||
BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
|
||||
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor product
|
||||
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 8589934592
|
||||
|
||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
|
||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
TARGET_COPY_OUT_PRODUCT := product
|
||||
|
||||
BOARD_USES_METADATA_PARTITION := true
|
||||
|
||||
BOARD_FLASH_BLOCK_SIZE := 131072
|
||||
|
||||
# Platform
|
||||
TARGET_BOARD_PLATFORM := atoll
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user