Misrecognition of eMMC and SD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Misrecognition of eMMC and SD

1,822 Views
川添真一
Contributor I

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

Labels (3)
0 Kudos
2 Replies

1,018 Views
川添真一
Contributor I

gorpadykov,


Thank you for your reply!

I tried clean build, but not work.
Prebuild image can't use for hardware difference.


I find the fact, /dev/mmcblk3p2 as rootfs is normaly mounted at the time.

So I'm tring to auto mount other partition.

Now the issue is not appare, but the case happens "not always",

so I see how it's going!

kawazoe

0 Kudos

1,018 Views
igorpadykov
NXP Employee
NXP Employee

Hi

if this happens not always please rebuild anew image from scratch,

also one can try to test Demo Images on

http://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&appType=license&location=null&Pa... 

Best regards
igor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos