[LG K7 Questions & Answers] Bughora:
Damn, bro I've been trying to find you but I guess you changed your Twitter name. Nah I'm stuck at trying to get all the partition sizes so that I can build the recoveryimage and kernel.

Also, I was looking at your source and was wondering how you got the proprietary blobs? I was looking at your extract_files.sh but I seemed to be for a different device

Anyway my issue is BoardConfig.mk is asking for:

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00380000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00480000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x08c60000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072

There is no /proc/mtd but there is /proc/partitions which looks like this:

major minor #blocks name

253 0 359144 zram0
179 0 7634944 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 1024 mmcblk0p3
179 4 512 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 512 mmcblk0p6
179 7 1024 mmcblk0p7
179 8 512 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 1536 mmcblk0p10
179 11 1536 mmcblk0p11
179 12 512 mmcblk0p12
179 13 512 mmcblk0p13
179 14 1536 mmcblk0p14
179 15 512 mmcblk0p15
179 16 512 mmcblk0p16
179 17 512 mmcblk0p17
179 18 512 mmcblk0p18
179 19 512 mmcblk0p19
179 20 1024 mmcblk0p20
179 21 512 mmcblk0p21
179 22 6656 mmcblk0p22
179 23 6144 mmcblk0p23
179 24 512 mmcblk0p24
179 25 1536 mmcblk0p25
179 26 1024 mmcblk0p26
179 27 1024 mmcblk0p27
179 28 6144 mmcblk0p28
179 29 6144 mmcblk0p29
179 30 10240 mmcblk0p30
179 31 8192 mmcblk0p31
259 0 16384 mmcblk0p32
259 1 16384 mmcblk0p33
259 2 16384 mmcblk0p34
259 3 24576 mmcblk0p35
259 4 8192 mmcblk0p36
259 5 2584576 mmcblk0p37
259 6 204800 mmcblk0p38
259 7 4616192 mmcblk0p39
259 8 8175 mmcblk0p40
179 32 4096 mmcblk0rpmb
179 64 31166976 mmcblk1
179 65 31162880 mmcblk1p1

And according to "ls -l /dev/block/platform/7824900.sdhci/by-name/ " the scheme is

lrwxrwxrwx root root 1970-01-04 06:41 DDR -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-01-04 06:41 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-04 06:41 abootbak -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-01-04 06:41 boot -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-01-04 06:41 cache -> /dev/block/mmcblk0p38
lrwxrwxrwx root root 1970-01-04 06:41 config -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-01-04 06:41 devinfo -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-01-04 06:41 drm -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-01-04 06:41 eksst -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-01-04 06:41 encrypt -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-01-04 06:41 factory -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-01-04 06:41 fota -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-01-04 06:41 fsc -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-01-04 06:41 fsg -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-01-04 06:41 grow -> /dev/block/mmcblk0p40
lrwxrwxrwx root root 1970-01-04 06:41 keystore -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-01-04 06:41 laf -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-01-04 06:41 misc -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-01-04 06:41 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-04 06:41 modemst1 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-01-04 06:41 modemst2 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-01-04 06:41 mpt -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-01-04 06:41 persist -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-01-04 06:41 raw_resources -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-01-04 06:41 raw_resourcesbak -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-01-04 06:41 rct -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-01-04 06:41 recovery -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-01-04 06:41 rpm -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-04 06:41 rpmbak -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-04 06:41 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-04 06:41 sbl1bak -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-04 06:41 sec -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-01-04 06:41 sns -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-01-04 06:41 spare1 -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-01-04 06:41 spare2 -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-01-04 06:41 ssd -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-01-04 06:41 system -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1970-01-04 06:41 tz -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-04 06:41 tzbak -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-01-04 06:41 userdata -> /dev/block/mmcblk0p39