Author Topic: C1000 Can Write To Sd Card... Why?  (Read 4538 times)

Akitabara

  • Newbie
  • *
  • Posts: 16
    • View Profile
C1000 Can Write To Sd Card... Why?
« on: December 04, 2006, 11:28:18 am »
A few minutes ago I was formatting some SD cards with my Akita (running pdaXrom 1.1.0beta3).

I was on a root console, no X running. Formatted a Dane-Elec 1GB SD card just fine. I took it out from the Zaurus, put it in the card reader of my desktop computer, and as soon as I tried to write on it, the computer complained that the card was write-protected.  

I unmounted it, took it out and checked the switch. It really was in the "Lock" position   But I just formatted it with the Zaurus mere seconds before, and it didn't complain then...  

So I decided to give it a try. I made sure the card was write-protected, put it in the Zaurus and ran this:
Code: [Select]
#touch /mnt/card/test
#
No errors came out.

I took the card again to my computer, without touching the switch, and sure enough, there was the "test" file. When I try to delete it with the computer, it complains again (as it should) that the card is write-protected.

Does the Zaurus just ignore the write-protection switch on SD cards? It's dangerous!
[span style=\'font-size:8pt;line-height:100%\']Sharp Zaurus SL-C1000 (Akita)
pdaXrom 1.1.0beta3
1GB Dane-Elec SD card
eCable USB to Ethernet adapter (it Just Works!)
No wifi CF card - yet.[/span]

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
C1000 Can Write To Sd Card... Why?
« Reply #1 on: December 04, 2006, 12:02:06 pm »
Write protect switch on SD cards need to be checked by driver - it is not mechanical like it was in 3.5" floppies. So maybe Sharp did not implemented it.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
C1000 Can Write To Sd Card... Why?
« Reply #2 on: December 04, 2006, 12:04:18 pm »
pdaXrom uses/used MMC drivers... MMC cards do not have write protect switches...

Late
« Last Edit: December 04, 2006, 12:04:53 pm by InSearchOf »
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Akitabara

  • Newbie
  • *
  • Posts: 16
    • View Profile
C1000 Can Write To Sd Card... Why?
« Reply #3 on: December 05, 2006, 05:44:49 am »
I see... So basically Zaurii have a MMC slot, only it's thick enough to fit SD cards.
Still, there should be a warning about that somewhere in the documentation... maybe it is, but I can't read japanese

Thanks for your replies, everyone.
« Last Edit: December 05, 2006, 05:45:34 am by Akitabara »
[span style=\'font-size:8pt;line-height:100%\']Sharp Zaurus SL-C1000 (Akita)
pdaXrom 1.1.0beta3
1GB Dane-Elec SD card
eCable USB to Ethernet adapter (it Just Works!)
No wifi CF card - yet.[/span]

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
C1000 Can Write To Sd Card... Why?
« Reply #4 on: December 05, 2006, 07:04:50 am »
The japanese doco would only apply to the Sharprom. You're running pdaXrom, which is an altogether different beastie.

It /is/ an SD slot, however in order to support it in software you need to pay a ransom*cough*licensing fees (sorry) to extortionists*cough*patent holders (sorry again) which tends to put a bit of a damper on the free software spirit.

...good thing SD cards have to support the older (and more open) MMC interface, so we have MMC drivers.

Does anyone *actually* rely on that write protect tab anyway? I wouldn't, and that's even if it didn't look like it would break off if I breathed on it too hard...
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote