Help - Search - Members - Calendar
Full Version: Zaurus As Usb Mass Storage [usbcontrols]
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
bubak
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
desertrat
QUOTE(bubak @ Mar 8 2007, 12:50 PM)
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).
bubak
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
[ 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
[ 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
desertrat
QUOTE(bubak @ Mar 8 2007, 03:52 PM)
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 smile.gif Like I said windoze mounts both my SD and CF as r/w, so sorry, can't help you there sad.gif
Drake01
I was going to suggest buying a CF ethernet card, but it appears that these are difficult to find. sad.gif 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.
Jon_J
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.
Meanie
QUOTE(bubak @ Mar 9 2007, 01:52 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
[ 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
[ 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
*


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?
bubak
QUOTE(Meanie @ Mar 10 2007, 06:09 AM)
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(Meanie @ Mar 10 2007, 06:09 AM)
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
/dev/mmcda1 on /mnt/card type vfat (rw)
radiochickenwax
Did anybody get the zaurus recognized as a mass usb storage device in the 2.6 kernel series yet?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.