I appear to be in the same boat, there are mentions
of mmc0 and mmc2 in dmesg, but fdisk won’t touch either and I can only see the mmc1 sd card device under /sys
Devicetree problem maybe?
root@revyos-meles:/home/debian# dmesg |grep mmc0
[ 3.330077] mmc0: SDHCI controller on ffe7080000.sdhci [ffe7080000.sdhci] using ADMA 64-bit
root@revyos-meles:/home/debian# dmesg |grep mmc
[ 3.330077] mmc0: SDHCI controller on ffe7080000.sdhci [ffe7080000.sdhci] using ADMA 64-bit
[ 4.119234] mmc1: SDHCI controller on ffe7090000.sd [ffe7090000.sd] using ADMA 64-bit
[ 4.231311] mmc1: new ultra high speed SDR104 SDXC card at address 59b4
[ 4.238784] mmcblk1: mmc1:59b4 USD00 58.9 GiB
[ 4.247843] mmcblk1: p1 p2 p3 p4
[ 4.254081] sdhci-dwcmshc ffe70a0000.sd: allocated mmc-pwrseq
[ 4.394715] mmc2: SDHCI controller on ffe70a0000.sd [ffe70a0000.sd] using ADMA 64-bit
[ 4.459233] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 4.466384] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4.473501] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4.481900] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 4.490961] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[ 4.559284] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[ 6.676864] EXT4-fs (mmcblk1p4): mounted filesystem with ordered data mode. Opts: (null)
[ 9.216244] EXT4-fs (mmcblk1p4): re-mounted. Opts: (null)
[ 13.309600] Adding 4194300k swap on /dev/mmcblk1p3. Priority:-2 extents:1 across:4194300k SS
[ 13.648403] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
root@revyos-meles:/home/debian# fdisk /dev/mmc0
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: cannot open /dev/mmc0: No such file or directory
root@revyos-meles:/home/debian# fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: cannot open /dev/mmcblk0: No such file or directory
root@revyos-meles:/home/debian#
root@revyos-meles:/home/debian# fdisk /dev/mmc2
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: cannot open /dev/mmc2: No such file or directory
root@revyos-meles:/home/debian# fdisk /dev/mmcblk2
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: cannot open /dev/mmcblk2: No such file or directory
root@revyos-meles:/home/debian# ls /sys/class/block/ -la
total 0
drwxr-xr-x 2 root root 0 Jan 1 1970 .
drwxr-xr-x 57 root root 0 Jan 1 1970 …
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop0 → …/…/devices/virtual/block/loop0
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop1 → …/…/devices/virtual/block/loop1
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop2 → …/…/devices/virtual/block/loop2
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop3 → …/…/devices/virtual/block/loop3
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop4 → …/…/devices/virtual/block/loop4
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop5 → …/…/devices/virtual/block/loop5
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop6 → …/…/devices/virtual/block/loop6
lrwxrwxrwx 1 root root 0 Jan 1 1970 loop7 → …/…/devices/virtual/block/loop7
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmcblk1 → …/…/devices/platform/soc/ffe7090000.sd/mmc_host/mmc1/mmc1:59b4/block/mmcblk1
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmcblk1p1 → …/…/devices/platform/soc/ffe7090000.sd/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p1
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmcblk1p2 → …/…/devices/platform/soc/ffe7090000.sd/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p2
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmcblk1p3 → …/…/devices/platform/soc/ffe7090000.sd/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p3
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmcblk1p4 → …/…/devices/platform/soc/ffe7090000.sd/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p4
lrwxrwxrwx 1 root root 0 Jan 1 1970 mtdblock0 → …/…/devices/platform/soc/ffea000000.spi/spi_master/spi1/spi1.0/mtd/mtd0/mtdblock0