SD card can not be writed

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

SD card can not be writed

1,671 Views
tomgao
Contributor III

mmc2: error -110 whilst initialising SD card
mmc2: new high speed SDHC card at address 1234
mmcblk2: mmc2:1234 SA32G 28.9 GiB (ro)
mmcblk2: p1

root@imx6qsabresd:~# mount -t vfat -wr /dev/mmcblk2p1 sd
root@imx6qsabresd:~# cd sd
root@imx6qsabresd:~/sd# mkdir wwww
mkdir: can't create directory 'wwww': Read-only file system
v/mmcblk2p1 sdesd:~/sd# mount -t vfat -wr /dev/mmcblk2p1 sdmount -t vfat -wr /de

Labels (1)
0 Kudos
Reply
4 Replies

1,359 Views
igorpadykov
NXP Employee
NXP Employee

Hi tom

please check SD_WP (write protection) signal.

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

0 Kudos
Reply

1,359 Views
tomgao
Contributor III

my  SD _WP is high . does it matter ? when I insert the SD card it will notes:mmc2: error -110 whilst initialising SD card

0 Kudos
Reply

1,359 Views
igorpadykov
NXP Employee
NXP Employee

is it working in uboot, had you checked signals with oscilloscope ?

~igor

0 Kudos
Reply

1,359 Views
tomgao
Contributor III

I remov the wp from the dts . It work .

when I insert the card it display:

root@imx6qsabresd:~# mmc2: host does not support reading read-only switch. assuming write-enable.
mmc2: new high speed SDHC card at address 1234
mmcblk2: mmc2:1234 SA32G 28.9 GiB
mmcblk2: p1

but after I mount it on the system. the card's content like the next:

root@imx6qsabresd:~/sd# ls
ddd imx6q-sabresd.dtb zImage
imx6dl-sabresd.dtb imx6sx-sdb.dtb

It is not my card .how weirdly it is . could you explant for me ?

0 Kudos
Reply