SD card can not be writed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SD card can not be writed

1,746 次查看
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

标签 (1)
0 项奖励
回复
4 回复数

1,434 次查看
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 项奖励
回复

1,434 次查看
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 项奖励
回复

1,434 次查看
igorpadykov
NXP Employee
NXP Employee

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

~igor

0 项奖励
回复

1,434 次查看
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 项奖励
回复