AnsweredAssumed Answered

Misrecognition of eMMC and SD

Question asked by 川添 真一 on Jul 20, 2017
Latest reply on Jul 27, 2017 by 川添 真一

Hi, we have imx6dlsabre-sd based custom board, 4GB eMMC(mmcblk3) and SD slot(mmcblk0).
and enviroment is below
fsl_yocto-L4.1.15_1.1.0
u-boot-imx:2015.04-r0
kernel:Linux version 4.1.15

 

When boot from eMMC, misrecognition of eMMC and SD occur

 

-------boot log----------------------------
sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
sdhci-esdhc-imx 2190000.usdhc: Got WP GPIO
sdhci-esdhc-imx 2190000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
/soc/aips-bus@02100000/usdhc@0219c000: voltage-ranges unspecified
sdhci-esdhc-imx 219c000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 219c000.usdhc: No vqmmc regulator found
mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
mxc_vpu 2040000.vpu_fsl: VPU initialized
mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
galcore: clk_get vg clock failed, disable vg!
Galcore version 5.0.11.41671
mmc0: new high speed SDHC card at address 0007
mmcblk0: mmc0:0007 SD16G 14.6 GiB << 16G SD 1 partition
mmcblk0: p1
mmc3: MAN_BKOPS_EN bit is not set
mmc3: new DDR MMC card at address 0001
mmcblk3: mmc3:0001 Q2J54A 3.58 GiB << 4G eMMC 2 partitions
mmcblk3boot0: mmc3:0001 Q2J54A partition 1 16.0 MiB
mmcblk3boot1: mmc3:0001 Q2J54A partition 2 16.0 MiB
mmcblk3rpmb: mmc3:0001 Q2J54A partition 3 512 KiB
mmcblk3: p1 p2

----------------------------------------

 

When mount sd card,

 

root@imx6dl_mw_board:~# mount /dev/mmcblk0p1 /mnt/
mount: mounting /dev/mmcblk0p1 on /mnt/ failed: No such device or address


mount failed, message suggest no device, but exist.


root@imx6dl_mw_board:~# ls /dev/mmcblk*
mmcblk0 mmcblk3 mmcblk3boot1 mmcblk3p2
mmcblk0p1 mmcblk3boot0 mmcblk3p1 mmcblk3rpmb


I rty fsisk command /dev/mmcblk3

root@imx6dl_mw_board:~# fdisk /dev/mmcblk3


The number of cylinders for this disk is set to 239872.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/mmcblk3: 15.7 GB, 15720251392 bytes
4 heads, 32 sectors/track, 239872 cylinders
Units = cylinders of 128 * 512 = 65536 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk3p1 17 239872 15350784 83 Linux

Command (m for help): q

 

Only one partition and disk size 15.7GB
It is meen eMMC points to SD card!!


This case occur sometime, not alwasy!

Does anyone know this phenomenon

Outcomes