Author Topic: Zaurus As Usb Mass Storage [usbcontrols]  (Read 3133 times)

bubak

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Zaurus As Usb Mass Storage [usbcontrols]
« on: March 08, 2007, 07:50:19 am »
Hi,

usually (99%) i use linux and i want my zaurus to be accesible as a network device (ie. etherent-over-usb, using kernel zaurus module).

sometimes (1%) i am forced to connect my zaurus to a windows machine, typically i just want some data to be copied from/to zaurus -- because windows do not know without additional drivers how to use etheret-over-usb, i would like to use zaurus as a mass storage device.

When i use System Tools -> USB and i choose Storage, i have several options to choose from (SD Card and CF card).  Once i choose, i plug in USB cable and i see zaurus as USB mass storage.  I have only one memory card -- 1GB Kingston SD card.

So far, no problems.  Now the questions:

1. Why i can choose only from SD or CF card, why cant i choose the harddrive? (i know i formatted the drive with ext2 fs, so this is only option if i connect my zaurus to a linux comp)

2. The mass storage device is mounted read-only (no matter how i set up the 'lock' on my SD card).  Why is that? Am i doing anything wrong?

Thanks in advance.  Martin
SL-C3200
pdaXrom 1.1.0beta3
1G Kingston SD
WiFi Planex GW-CF11X
Bluetooth USB 3com dongle,
Sharp CE-RH2 remote

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #1 on: March 08, 2007, 09:51:14 am »
Quote
1. Why i can choose only from SD or CF card, why cant i choose the harddrive? (i know i formatted the drive with ext2 fs, so this is only option if i connect my zaurus to a linux comp)
The choice of SD and CF are hardcoded in /usr/bin/usbfunction.py, as are the partitions that you're allowed to select. If you know a bit of python you can fairly easily modify it to allow sharing the microdrive.

Quote
2. The mass storage device is mounted read-only (no matter how i set up the 'lock' on my SD card).  Why is that? Am i doing anything wrong?
No idea. It works for me (ie both SD and CF mounts as r/w).
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

bubak

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #2 on: March 08, 2007, 10:52:42 am »
ad /usr/bin/usbfunction.py => ok, thanks, i was looking at that script before, as well as on some other scripts in /etc/hotplug, etc/sdcontrol and such, but i was afraid of changing something -- but not anymore :-)

ad SD card mounted ro => maybe i was not clear enough -- tha card itself is mounted rw under /mnt/card (which is fine) and i can access it from zaurus with no problems.  _But_ once i choose this card to be exported via "Storage" option in System Tools -> USB, and i connect to Linux machine, i get the access to that card, but the dmesg says:

Code: [Select]
[ 5196.949841] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.004920] sde: Write Protect is on
[ 5197.004925] sde: Mode Sense: 43 00 80 00
[ 5197.004927] sde: assuming drive cache: write through
[ 5197.120847] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.140847] sde: Write Protect is on
[ 5197.140850] sde: Mode Sense: 43 00 80 00
[ 5197.140852] sde: assuming drive cache: write through
[ 5197.140855]  sde:
[ 5197.161886] sd 6:0:0:3: Attached scsi removable disk sde
[ 5197.181841] scsi 6:0:0:4: Direct-Access     Sharp    SL-C1000         1.00 PQ: 0 ANSI: 0 CCS

note the line
Code: [Select]
[ 5197.004920] sde: Write Protect is on
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro
SL-C3200
pdaXrom 1.1.0beta3
1G Kingston SD
WiFi Planex GW-CF11X
Bluetooth USB 3com dongle,
Sharp CE-RH2 remote

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #3 on: March 09, 2007, 06:55:51 am »
Quote
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro
I understood you correctly the first time  Like I said windoze mounts both my SD and CF as r/w, so sorry, can't help you there
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #4 on: March 09, 2007, 07:27:01 pm »
I was going to suggest buying a CF ethernet card, but it appears that these are difficult to find.   The only one I found after a quick search was also surprisingly expensive.

My Kingston CIO10T has served me extremely well since I was on the Palm platform, and even better on the Zaurus.  It's a darned shame that these things are now nowhere to be found.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #5 on: March 09, 2007, 07:29:26 pm »
StreamlineCPUs has the Socket CF ethernet card.
I don't remember how much it cost, I'll dig through my reciepts and post back.
EDIT: According to my reciept from StreamlineCPUs, this card cost $99.99
Sorry, I couldn't do better than that, but StreamlineCPUs is the only Zaurus related vendor I shop at.
« Last Edit: March 09, 2007, 07:31:47 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #6 on: March 09, 2007, 11:09:12 pm »
Quote
ad /usr/bin/usbfunction.py => ok, thanks, i was looking at that script before, as well as on some other scripts in /etc/hotplug, etc/sdcontrol and such, but i was afraid of changing something -- but not anymore :-)

ad SD card mounted ro => maybe i was not clear enough -- tha card itself is mounted rw under /mnt/card (which is fine) and i can access it from zaurus with no problems.  _But_ once i choose this card to be exported via "Storage" option in System Tools -> USB, and i connect to Linux machine, i get the access to that card, but the dmesg says:

Code: [Select]
[ 5196.949841] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.004920] sde: Write Protect is on
[ 5197.004925] sde: Mode Sense: 43 00 80 00
[ 5197.004927] sde: assuming drive cache: write through
[ 5197.120847] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.140847] sde: Write Protect is on
[ 5197.140850] sde: Mode Sense: 43 00 80 00
[ 5197.140852] sde: assuming drive cache: write through
[ 5197.140855]  sde:
[ 5197.161886] sd 6:0:0:3: Attached scsi removable disk sde
[ 5197.181841] scsi 6:0:0:4: Direct-Access     Sharp    SL-C1000         1.00 PQ: 0 ANSI: 0 CCS

note the line
Code: [Select]
[ 5197.004920] sde: Write Protect is on
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155766\"][{POST_SNAPBACK}][/a][/div]

have you tried unmounting the SD on your Zaurus before you plug it into your linux pc?

also, are you using the mmc driver that comes with beta3 or are you using the sharp sd driver?
« Last Edit: March 09, 2007, 11:12:25 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

bubak

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #7 on: March 10, 2007, 08:09:21 am »
Quote
have you tried unmounting the SD on your Zaurus before you plug it into your linux pc?

well, i dont see the point, but i tried it now.  i managed the card to be mounted to allow anyone to write (skript /etc/sdcontrol, variable FATOPTS="-o umask 000"), but still no change

Quote
also, are you using the mmc driver that comes with beta3 or are you using the sharp sd driver?

as far as i can guess, it's the mmc driver -- lsmod shows mmc is loaded and card is mounted as

Code: [Select]
/dev/mmcda1 on /mnt/card type vfat (rw)
SL-C3200
pdaXrom 1.1.0beta3
1G Kingston SD
WiFi Planex GW-CF11X
Bluetooth USB 3com dongle,
Sharp CE-RH2 remote

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Zaurus As Usb Mass Storage [usbcontrols]
« Reply #8 on: March 20, 2007, 03:56:09 pm »
Did anybody get the zaurus recognized as a mass usb storage device in the 2.6 kernel series yet?
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus