How to find out partition sizes to put in BoardConfig.mk?

I'm trying to build a recovery for my device and need the partition sizes to fill in these flags:

BOARD_BOOTIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072

I know their sizes in block by cat /proc/partitions

How do I find out the block size so I can know the actual size of each partition?

I don't have a /proc/mtd or /proc/emmc

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by earline96
2 hours ago
Last post by skiles.ola
1 hour ago
Last post by kuvalis.rahsaan
3 hours ago
Last post by hstracke
2 hours ago
Last post by jhessel
1 hour ago
Last post by gbruen
4 hours ago