[Android Software Development] Rapacious:
Well, I read this somewhere.

I also know, that I have to multiply the partition blocks by block size. Here's my sticking point:

Where to get the block size? And how to transform it to the BoardConfig.mk value?

so I think I do need the block size.

Here's the output of df -k

/mnt/secure/asec: Permission denied

/mnt/knox/default/knox-emulated: Permission denied

/mnt/knox/read/knox-emulated: Permission denied

/mnt/knox/write/knox-emulated: Permission denied

/mnt/runtime/default/emulated: Permission denied

/mnt/runtime/read/emulated: Permission denied

/mnt/runtime/write/emulated: Permission denied

/mnt/media_rw/410B-3822: Permission denied

/mnt/secure/asec: Permission denied

/mnt/runtime/default/410B-3822: Permission denied

/mnt/runtime/read/410B-3822: Permission denied

/mnt/runtime/write/410B-3822: Permission denied

Filesystem Size Used Free Blksize

/dev 712740.0K 144.0K 712596.0K 4.0K

/sys/fs/cgroup 712740.0K 12.0K 712728.0K 4.0K

/mnt 712740.0K 0.0K 712740.0K 4.0K

/mnt/secure 712740.0K 0.0K 712740.0K 4.0K

/cpefs 3952.0K 524.0K 3428.0K 4.0K

/system 2931532.0K 2536196.0K 395336.0K 4.0K

/cache 297560.0K 2288.0K 295272.0K 4.0K

/data 4063664.0K 2176636.0K 1887028.0K 4.0K

/efs 16048.0K 2316.0K 13732.0K 4.0K

/persdata/absolute 8080.0K 56.0K 8024.0K 4.0K

/storage 712740.0K 0.0K 712740.0K 4.0K

/mnt/knox 4063664.0K 2176636.0K 1887028.0K 4.0K

/mnt/shell/enc_media 4043184.0K 2198140.0K 1845044.0K 4.0K

/storage/emulated 4043184.0K 2198140.0K 1845044.0K 4.0K

/data/enc_user 4063664.0K 2176636.0K 1887028.0K 4.0K

/mnt/shell/enc_emulated 4043184.0K 2198140.0K 1845044.0K 4.0K

/storage/410B-3822 3805184.0K 39488.0K 3765696.0K 32.0K

I tried multiplying the number of blocks by 1024. I don't think the numbers were lining up.

---------- Post added at 02:04 PM ---------- Previous post was at 01:51 PM ----------

Actually, 1024 might not be too far off.

3001888768 Bytes divided by 2990080 blocks is 1003.94

---------- Post added at 02:22 PM ---------- Previous post was at 02:04 PM ----------

so for BOARD_BOOTIMAGE_PARTITION_SIZE, I multiplied the number of blocks (13312) by 1024 and came up with D00000 which is the exact setting that was there for the SM-G550T.

I think 1024 is right.

---------- Post added at 02:48 PM ---------- Previous post was at 02:22 PM ----------

alright so here's ls -l /dev/block/platform/13540000.dwmmc0/by-name/

lrwxrwxrwx root root 2017-01-09 23:04 BOOT -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 2017-01-09 23:04 BOTA0 -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2017-01-09 23:04 BOTA1 -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 2017-01-09 23:04 CACHE -> /dev/block/mmcblk0p20

lrwxrwxrwx root root 2017-01-09 23:04 CDMA-RADIO -> /dev/block/mmcblk0

lrwxrwxrwx root root 2017-01-09 23:04 CPEFS -> /dev/block/mmcblk0p4

lrwxrwxrwx root root 2017-01-09 23:04 EFS -> /dev/block/mmcblk0p3

lrwxrwxrwx root root 2017-01-09 23:04 OTA -> /dev/block/mmcblk0p11

lrwxrwxrwx root root 2017-01-09 23:04 PARAM -> /dev/block/mmcblk0p8

lrwxrwxrwx root root 2017-01-09 23:04 PERSDATA -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2017-01-09 23:04 PERSISTENT -> /dev/block/mmcblk0

lrwxrwxrwx root root 2017-01-09 23:04 RADIO -> /dev/block/mmcblk0p13

lrwxrwxrwx root root 2017-01-09 23:04 RECOVERY -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2017-01-09 23:04 RESERVED2 -> /dev/block/mmcblk0p

lrwxrwxrwx root root 2017-01-09 23:04 SYSTEM -> /dev/block/mmcblk0p19

lrwxrwxrwx root root 2017-01-09 23:04 TDATA -> /dev/block/mmcblk0p15

lrwxrwxrwx root root 2017-01-09 23:04 TOMBSTONES -> /dev/block/mmcblk0

lrwxrwxrwx root root 2017-01-09 23:04 USERDATA -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 2017-01-09 23:04 m9kefs1 -> /dev/block/mmcblk0p5

lrwxrwxrwx root root 2017-01-09 23:04 m9kefs2 -> /dev/block/mmcblk0p6

lrwxrwxrwx root root 2017-01-09 23:04 m9kefs3 -> /dev/block/mmcblk0p7

cat /proc/partitions

major minor #blocks name

179 0 7634944 mmcblk0

179 1 4096 mmcblk0p1

179 2 4096 mmcblk0p2

179 3 20480 mmcblk0p3

179 4 8192 mmcblk0p4

179 5 4096 mmcblk0p5

179 6 4096 mmcblk0p6

179 7 4096 mmcblk0p7

259 0 8192 mmcblk0p8

259 1 13312 mmcblk0p9

259 2 15360 mmcblk0p10

259 3 8192 mmcblk0p11

259 4 4096 mmcblk0p12

259 5 40960 mmcblk0p13

259 6 4096 mmcblk0p14

259 7 4096 mmcblk0p15

259 8 1024 mmcblk0p16

259 9 12288 mmcblk0p17

259 10 7168 mmcblk0p18

259 11 2990080 mmcblk0p19

259 12 307200 mmcblk0p20

259 13 4161536 mmcblk0p21

179 24 512 mmcblk0rpmb

179 16 4096 mmcblk0boot1

179 8 4096 mmcblk0boot0

253 0 786432 vnswap0

179 32 3813376 mmcblk1

179 33 3809280 mmcblk1p1

254 0 2978316 dm-0

It seems like recovery and and userdata have the same number of blocks. Is that alright?

---------- Post added at 02:54 PM ---------- Previous post was at 02:48 PM ----------

because I'd rather not have BOARD_RECOVERYIMAGE_PARTITION_SIZE and BOARD_USERDATAIMAGE_PARTITION_SIZE the same value, unless they're supposed to be.