[Galaxy S 4 Mini Android Development] Vierko:
[MENTION=1230453]Kan-g[/MENTION], sorry for misleading you before, but these mount points are not correct. Definitions (ext4, emmc, fix_boot) are ok. I was so stupid it took me 3 flashes to understand that I was flashing the winds, doing nothing. Although the edify_defs won't brick the phone, they won't flash it correctly either.:D

Now I've checked the correct block devices/partitions and their mount points, cooked a ROM using the kitchen, flashed correctly with success. Below are the new defs:

# Samsung Galaxy S4 Mini LTE GT-I9195
# Snapdragon 400 - DualCore 1.7GHz - Adreno 305

change_mnt=yes

param1=ext4
param2=EMMC

param1_sdcard=vfat
param2_sdcard=MTD

sys_mnt=\/dev\/block\/mmcblk0p21
cache_mnt=\/dev\/block\/mmcblk0p22
boot_mnt=\/dev\/block\/mmcblk0p13
data_mnt=\/dev\/block\/mmcblk0p24
sdcard_mnt=\/dev\/block\/mmcblk1p1

modem_mnt=\/dev\/block\/mmcblk0p1

fix_boot=yes

[MENTION=5256529]Whosat[/MENTION], you should check two forum threads, you maybe already did:

1) How To set Device Mount Points in Cygwin Android Kitchen for Any Android Device

2) [KITCHEN] Android Kitchen, v0.224 [Linux / Mac / Windows]

We'll need to find essential mount points and corresponding block devices using recovery.fstab file from a stock firmware located in recovery.img or by using adb shell/terminal emulator for android:

# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# mount point	fstype	device	[device2]
/boot	emmc	/dev/block/platform/msm_sdcc.1/by-name/boot
/system ext4	/dev/block/platform/msm_sdcc.1/by-name/system
/data	ext4	/dev/block/platform/msm_sdcc.1/by-name/userdata	length=-16384
/cache ext4	/dev/block/platform/msm_sdcc.1/by-name/cache
/recovery emmc	/dev/block/platform/msm_sdcc.1/by-name/recovery
/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1
/efs	ext4	/dev/block/platform/msm_sdcc.1/by-name/efs
/modem	emmc	/dev/block/platform/msm_sdcc.1/by-name/modem
/preload ext4	/dev/block/platform/msm_sdcc.1/by-name/hidden

~ # mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/secure type tmpfs (rw,seclabel,relatime,mode=700)
tmpfs on /mnt/asec type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
/dev/block/dm-0 on /mnt/asec/com.quoord.tapatalkxda.activity-1 type ext4 (ro,dirsync,seclabel,nosuid,nodev,noatime)
tmpfs on /mnt/obb type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
[COLOR="DarkGreen"]/dev/block/platform/msm_sdcc.1/by-name/system on /system type ext4 (rw,seclabel,relatime,errors=panic,data=ordered)
/dev/block/platform/msm_sdcc.1/by-name/userdata on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered)
/dev/block/platform/msm_sdcc.1/by-name/cache on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered)
/dev/block/platform/msm_sdcc.1/by-name/persist on /persist type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered)
/dev/block/platform/msm_sdcc.1/by-name/efs on /efs type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered)
/dev/block/platform/msm_sdcc.1/by-name/modem on /firmware type vfat (ro,context=u:object_r:firmware:s0,relatime,gid=1000,fmask=0006,dmask=0006,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
[/COLOR]/data/container on /mnt/shell/container type sdcardfs (rw,nosuid,nodev,relatime,uid=1000,gid=1000)
/dev/block/mmcblk0p23 on /preload type ext4 (ro,seclabel,nosuid,nodev,noatime,data=ordered)
/data/media on /mnt/shell/emulated type sdcardfs (rw,nosuid,nodev,relatime,uid=1023,gid=1023)
tmpfs on /storage/emulated type tmpfs (rw,seclabel,nosuid,nodev,relatime,mode=050,gid=1028)
/dev/block/vold/179:33 on /storage/extSdCard type vfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /storage/extSdCard/.android_secure type tmpfs (ro,seclabel,relatime,size=0k,mode=000)
/data/media on /storage/emulated/0 type sdcardfs (rw,nosuid,nodev,relatime,uid=1023,gid=1023)
/data/media on /storage/emulated/0/Android/obb type sdcardfs (rw,nosuid,nodev,relatime,uid=1023,gid=1023)
/data/media on /storage/emulated/legacy type sdcardfs (rw,nosuid,nodev,relatime,uid=1023,gid=1023)
/data/media on /storage/emulated/legacy/Android/obb type sdcardfs (rw,nosuid,nodev,relatime,uid=1023,gid=1023)
~ # ls -la /dev/block/platform/msm_sdcc.1/by-name/
total 1
drwxr-xr-x 2 root root 520 Aug 12 20:23 .
drwxr-xr-x 4 root root 580 Aug 12 20:23 ..
lrwxrwxrwx 1 root root 20 Aug 12 20:23 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 Aug 12 20:23 backup -> /dev/block/mmcblk0p16
[COLOR="DarkGreen"]lrwxrwxrwx 1 root root 21 Aug 12 20:23 boot -> /dev/block/mmcblk0p13
[/COLOR]lrwxrwxrwx 1 root root 21 Aug 12 20:23 cache -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 Aug 12 20:23 efs -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 Aug 12 20:23 fota -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 Aug 12 20:23 fsg -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 Aug 12 20:23 hidden -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 20 Aug 12 20:23 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 Aug 12 20:23 modemst1 -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 Aug 12 20:23 modemst2 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 Aug 12 20:23 pad -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 Aug 12 20:23 param -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 Aug 12 20:23 persdata -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 Aug 12 20:23 persist -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 Aug 12 20:23 recovery -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 20 Aug 12 20:23 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 Aug 12 20:23 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 Aug 12 20:23 sbl2 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 Aug 12 20:23 sbl3 -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 Aug 12 20:23 ssd -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 Aug 12 20:23 system -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 20 Aug 12 20:23 tz -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 Aug 12 20:23 userdata -> /dev/block/mmcblk0p24

~ # parted /dev/block/mmcblk0 print
Model: MMC SEM08G (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 4194kB 67.1MB 62.9MB modem
2 67.1MB 67.2MB 131kB sbl1
3 67.2MB 67.5MB 262kB sbl2
4 67.5MB 68.0MB 524kB sbl3
5 68.0MB 70.1MB 2097kB aboot
6 70.1MB 70.6MB 524kB rpm
7 70.6MB 71.2MB 524kB tz
8 71.2MB 84.3MB 13.1MB pad
9 84.3MB 92.7MB 8389kB param
10 92.7MB 107MB 14.3MB ext4 efs
11 107MB 110MB 3146kB modemst1
12 110MB 113MB 3146kB modemst2
13 113MB 124MB 10.5MB boot
14 124MB 134MB 10.5MB recovery
15 134MB 145MB 10.5MB fota
16 145MB 152MB 7332kB ext4 backup
17 152MB 155MB 3146kB fsg
18 155MB 155MB 8192B ssd
19 155MB 164MB 8389kB ext4 persist
20 164MB 176MB 12.6MB persdata
21 176MB 1749MB 1573MB ext4 system
22 1749MB 1959MB 210MB ext4 cache
23 1959MB 1996MB 37.7MB ext4 hidden
24 1996MB 7818MB 5822MB ext4 userdata

Now we can use these partitions and define them using a template (kitchen/tools/edify_defs/_template) in a definition file for the specific phone device. From the recovery.fstab we know that partitions are emmc and the FS is ext4. That's in very brief, for more info refer the threads linked above.