cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
3,722 Views
Registered: ‎12-07-2016

ZynqMP: SD card is write protect

Jump to solution

Hello,

 

for a custom Zynq MPSoC board we are using a microSD controller with following Vivado settings:

 

Unbenannt.PNG

 

The SD card has no write protect pin.

But the card is recognised only as Read-Only. See Petalinux Output:

 

[    2.899024] mmc0: new SDHC card at address 0001
[    2.903803] mmcblk0: mmc0:0001 00000 7.30 GiB (ro)
[    2.910559] mmcblk0: p1 p2

Is it possible to disable the write protection?

 

Regards,

Andreas

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Voyager
Voyager
5,605 Views
Registered: ‎06-24-2013

Hey @andreas.bachmaier,

 

In the kernel devicetree, you can add disable-wp or wp-inverted to the mmc0 sdhc node.

The first one simply disables the write protection detection logic while the second one inverts the logic.

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!

View solution in original post

1 Reply
Highlighted
Voyager
Voyager
5,606 Views
Registered: ‎06-24-2013

Hey @andreas.bachmaier,

 

In the kernel devicetree, you can add disable-wp or wp-inverted to the mmc0 sdhc node.

The first one simply disables the write protection detection logic while the second one inverts the logic.

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!

View solution in original post