cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Adventurer
Adventurer
7,619 Views
Registered: ‎04-10-2016

The SD card is not mounted

I chose the SD card interface in the vivado design, I use the hardware configuration of the petalinux project, the compiler generates image, image burning QSPI FLASH, start linxu system related equipment found no files in the /dev directory. I want to use this SD to store data, I use the how to use the SD card? The system startup log is as follows(start.log):

0 Kudos
Reply
7 Replies
Teacher
Teacher
7,608 Views
Registered: ‎06-16-2013

Hi xilinx-zhaosheng

 

I have some questions.

 

Q1) Did you configure SD as enable by petalinux-config ?

Q2) Did you confirm device tree source files ? Are device tree source files correct ?

Q3) Did you modify or reconfigure rootfs ?

 

Here is a part of my petalinux boot log file.

I can use SD card to store data.

 

<snip>

Driver 'mmcblk' needs updating - please use bus_type methods
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-arasan e0100000.sdhci: No vmmc regulator found
sdhci-arasan e0100000.sdhci: No vqmmc regulator found
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA

</snip>

 

<snip>

mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 USDU1 30.0 GiB
mmcblk0: p1 p2

</snip>

 

Thank you.

Best regards,

 

0 Kudos
Reply
Adventurer
Adventurer
7,587 Views
Registered: ‎04-10-2016

I use the device tree generated by SDK, and the file system is automatically configured. In addition, I didn't see the SD enabled in the petalinxu-config menu. mcc after the system started in the /proc/devices file, but did not have to be related to the device file in the /dev directory. As follows:

0 Kudos
Reply
Adventurer
Adventurer
7,586 Views
Registered: ‎04-10-2016

I use the device tree generated by SDK, and the file system is automatically configured. In addition, I didn't see the SD enabled in the petalinxu-config menu. mcc after the system started in the /proc/devices file, but did not have to be related to the device file in the /dev directory. As follows:

devices.png
dev.png
0 Kudos
Reply
Teacher
Teacher
7,583 Views
Registered: ‎06-16-2013

Hi xilinx-zhaosheng

 

I guess you need to modify rootfs.

Please refer the following URL.

 

http://www.xilinx.com/support/answers/55979.html

http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs

 

If you accept to use SD card as root partition, it's easy.

You only need to add root option at petalinux-config or add root option on device tree blob source file.

Could you try it by petalinux-config ?

 

Thank you.

Best regards,

 

 

0 Kudos
Reply
Adventurer
Adventurer
7,578 Views
Registered: ‎04-10-2016

In the case of SD card is not inserted, the/dev directory will create a mmcblk file?

0 Kudos
Reply
Teacher
Teacher
7,453 Views
Registered: ‎06-16-2013

Hi xilinx-zhaosheng

 

Could you execute the following commands ?

 

% mknod /dev/mmcblk0 b 179 0

% mknod /dev/mmcblk0p1 b 179 1

% mknod /dev/mmcblk0p2 b 179 2

 

Thank you

Best regards,

 

 

0 Kudos
Reply
Observer
Observer
7,400 Views
Registered: ‎11-25-2015

Hi Zhao,

 

In case when no SDcard is inserted, you cannot see mmcblk entry under tmpfs i.e., /dev.

 

When SDcard is inserted, it is detected on /sys(mostly not user accessible; this is where kernel writes from the device tree). Kernel thread or hotplug notifies /sys entry of device to 'mdev' daemon. 'mdev' reads configuration files of device from /sys, checks for matching of devices to rules under /etc and creates device file(mmcblk) under /dev (tmpfs). /dev is user accessible but not a readable format of device files. Again, for user understandable format, we do mounting using 'mount' command. 

 

Thanks,

naveen

0 Kudos
Reply