Author Topic: usb net/storage package  (Read 10168 times)

panyo

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
usb net/storage package
« Reply #15 on: December 30, 2004, 01:10:51 pm »
Quote
What is your
cat /proc/version

This didn't seem to work properly until 2.4.22 >  and later?
Have you created the zaurus directory?
Ok! That worked.
I was using 2.4.22.
I switched to kernel version 2.6.7 and could see the Z in the vendor information of dmesg. After initial failures saying no medium was found it worked. Immediately before, I had tried running the storage script twice before replacing the Z in the cradle. Then I saw the following and was able to mount and see my CF card.
Code: [Select]
ohci_hcd 0001:01:18.0: remote wakeup
usb 1-1: new full speed USB device using address 10
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Sharp     Model: SL-5500           Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0,  type 0
USB Mass Storage device found at 10
After unmounting and removing the Zaurus in an attempt to replicate my success,  it is no longer seen. But at least I have one shot per reboot, which will do for the lab computers, assuming OSX and Windows will also see the usb device.

A curious thing I have noticed in trying to read dmesg is that it is rapidly (a line or two per second) being filled with lines like these:
Code: [Select]
evbug.c: Event. Dev: adb2:2.c3/input, Type: 1, Code: 28, Value: 0
evbug.c: Event. Dev: adb2:2.c3/input, Type: 0, Code: 0, Value: 0
Only the cradle was plugged in.

Looking at dmesg also helped me figure out why my media bay drive was not working (the device letter changed from hde to hdc across kernels!)
« Last Edit: December 30, 2004, 01:17:04 pm by panyo »
SL5500  OZ3.5.2 (Opie), Dvorak built in keyboard
Spectrum24 Ethernet
SanDisk 256 ext2 (AR0401RF China) SD
Lexar 256 VFAT (P/N 2260, Rev. A), Transcend 128 ext2 CF
Pismo, Cube, 8600, Gentoo PowerPC, YellowDog

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
usb net/storage package
« Reply #16 on: December 30, 2004, 01:19:21 pm »
I don't want to sound rude, but the time it took you all to rip an .ipk, hack it,
install scripts etc is probably longer than it would have taken someone to port the USB storage driver
to the Z5x00 kernel and thus include it in OE / the official feeds.
Webmaster of hentges.net & Embedded Linux Developer.

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
usb net/storage package
« Reply #17 on: December 30, 2004, 01:31:29 pm »
@panyo

Is this the Yellow Dog in your sig?

I've never used it... but would be curios as to what usbview on terminal or gui says with just the cradle attached?

Maybe if you unplug the cradle after removing the Z you won't have to reboot to mount it again?

@CoreDump

This is my plan in a couple of months when I have access to dsl. In early spring I will have OE setup in my home to help out.

Greg

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
usb net/storage package
« Reply #18 on: December 30, 2004, 01:36:31 pm »
I would hzve put it in myself but I'm not sure where to make the alterations to get the storage_fd module to be built, plus I've broken my wrist so Z development has taken a bit of a back seat to just trying to do normal stuff.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
usb net/storage package
« Reply #19 on: December 30, 2004, 01:56:16 pm »
Hey, I didn't want to accuse anyone of anything  
It is just a little bit frustrating to see such threads where people spend hours upon
hours to "fix" a binary .ipk (which is in the end kinda pointless)

And guess what? In 3.5.3 the threads will probably start all over again.

The time would be so much better invested in OE.
Porting the driver to Z5x00 should be trivial for a developer. The code is already
in the C7x0 / c8x0 kernel IIRC.

Bleh, what's the correct plural of "kernel"?

If anyone wants to have a go at it, I'll happily provide C7x0 and Z5x00 kernel source archives as they are used for OZ (ie including all patches).
Webmaster of hentges.net & Embedded Linux Developer.

panyo

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
usb net/storage package
« Reply #20 on: December 30, 2004, 03:24:19 pm »
Quote
@panyo

Is this the Yellow Dog in your sig?

I've never used it... but would be curios as to what usbview on terminal or gui says with just the cradle attached?

Maybe if you unplug the cradle after removing the Z you won't have to reboot to mount it again?

Greg
Greg2,
Now the Z mounted in my
Linux version 2.4.22-ben2 (Gentoo, my YDL machine is dormant atm).
Then when I tried to re-insert after unmounting it, I think this was the key error:
Code: [Select]
usb-storage: host_reset() requested but not implementedSubsequent attempts to re-insert gave
Code: [Select]
bash-2.05b# dmesg -c
usb.c: USB disconnect on device 10:19.0-1 address 5
hub.c: new USB device 10:19.0-1, assigned address 6
emi26_probe start<7>WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 6
In usbview, the cradle alone does not appear, and the Z does appear when inserted
with , among others,
Code: [Select]
    Interface Number: 0
  Name: usb-storage
  Alternate Number: 0
  Class: 08(stor.)
  Sub Class: 6
  Protocol: 50
  Number of Endpoints: 2
Trying to mount (after un/replugging the cradle) gives this:
Code: [Select]
#mount /mnt/zaurus/
mount: /dev/sda is not a valid block device
and
Code: [Select]
# mount -t vfat /dev/sdb /mnt/zaurus
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       or too many mounted file systems

Building a new 2.6.9 kernel to support my ext3 volumes now, so this may be of only historical
interest after I re-boot, but here it is for completeness while I wait (and for my reference in case I develop the skills to work on this in the near future).
SL5500  OZ3.5.2 (Opie), Dvorak built in keyboard
Spectrum24 Ethernet
SanDisk 256 ext2 (AR0401RF China) SD
Lexar 256 VFAT (P/N 2260, Rev. A), Transcend 128 ext2 CF
Pismo, Cube, 8600, Gentoo PowerPC, YellowDog

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
usb net/storage package
« Reply #21 on: December 30, 2004, 05:43:48 pm »
@Coredump:

It's easier than that. The storage_fd.o module can be built 'out of the box' for the Cxxx machines (it comes with the C860, and is in the source, just needs to be enabled somehow). For the 5500, sa1100_bi needs (well, actually it works with the original actually, but someone provided a kernel patch in one of the original threads) to be patched, and storage_fd.o needs to be added (as I don't think the appropriate source is in the 5500 kernel source tree).

What it will need is a GUI app to select the connection method, and a patch to the hotplug scripts to load the appropriate drivers, depending on the user's choice. Maslovsky did these things for cacko in short order after it was proven to work and I don't think it'd be that hard for OE (assuming someone knows how to alter what modules are built with the kernel).

If someone wants to produce a GUI app and add it that would be useful as I've not done any GUI programming.


Si

P.S. The lock-up thing happens with my C750 too (part of my reason for not pushing to get it added), I've no idea why, as it was fine with 3.3.6pre1 on both the C750 & sl5500 (except that perhaps the kernel modules need to be rebuilt as we're using ones for 3.3.6pre1...?).
« Last Edit: December 30, 2004, 05:44:26 pm by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

panyo

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
usb net/storage package
« Reply #22 on: January 04, 2005, 04:06:23 am »
Running Linux version 2.6.10-rc3 everything works fine.
To get the Zaurus to show up after unplugging, I just have to re-run the
start_storage.sh script

Just plugging it in makes it show up in dmesg, but it stops at
Code: [Select]
usb-storage: waiting for device to settle before scanning.
Runnig the script makes it show up again in dmesg, as if I plugged it in again,
but this time it settles.

Can't wait to try it on a lab computer and remove the card reader from my wallet!
SL5500  OZ3.5.2 (Opie), Dvorak built in keyboard
Spectrum24 Ethernet
SanDisk 256 ext2 (AR0401RF China) SD
Lexar 256 VFAT (P/N 2260, Rev. A), Transcend 128 ext2 CF
Pismo, Cube, 8600, Gentoo PowerPC, YellowDog

panyo

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
usb net/storage package
« Reply #23 on: January 24, 2005, 10:57:18 pm »
Quote
Can't wait to try it on a lab computer and remove the card reader from my wallet!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=60488\"][{POST_SNAPBACK}][/a][/div]
Ok, I tried it on a lab mac and saw nothing. I tried it on a lab PC, and it shows up as a removable disk. but when I open it, it contains nothing.  These are public machines on which I cannot install things. I am out of luck?
SL5500  OZ3.5.2 (Opie), Dvorak built in keyboard
Spectrum24 Ethernet
SanDisk 256 ext2 (AR0401RF China) SD
Lexar 256 VFAT (P/N 2260, Rev. A), Transcend 128 ext2 CF
Pismo, Cube, 8600, Gentoo PowerPC, YellowDog

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
usb net/storage package
« Reply #24 on: January 25, 2005, 05:33:04 am »
It should work without anything needing to be installed on XP/2k.

When I was working out how to get it all working in the first place I had the same problem as you do now - the drive shows up, but there's nothing there (I think it asked me to format when I tried to open the drive, that or it complained).

Take a look at the original thread and see if there's anything relevant there that I've forgotten.

I'll dig out my collie this evening and see if I can come up with any suggestions.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

panyo

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
usb net/storage package
« Reply #25 on: January 25, 2005, 03:35:45 pm »
Quote
It should work without anything needing to be installed on XP/2k.

When I was working out how to get it all working in the first place I had the same problem as you do now - the drive shows up, but there's nothing there (I think it asked me to format when I tried to open the drive, that or it complained).

Take a look at the original thread and see if there's anything relevant there that I've forgotten.

I'll dig out my collie this evening and see if I can come up with any suggestions.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63849\"][{POST_SNAPBACK}][/a][/div]
Thanks Lardman, I had a look.
The thread in which you posted your scripts started with you and Maslovsky having a problem that appeared similar to mine. You seemed to solve it by loading the modules, then suspending and waking up again before plugging in. I have just tried that sequence. On a PC I get that the USB device is malfunctioning and see an empty USB device listed. On a Mac I see the following in dmesg:
Code: [Select]
USBF:   2907.190        AppleUSBHubPort: Error 0xe00002ed: set feature (resetting port)
USBF:   2907.988        AppleUSBOHCI[0x1c7e800]::MakeDevice error setting address. err=0xe00002ed device=0x2747f00 - releasing device
USBF:   2908.788        AppleUSBOHCI[0x1c7e800]::MakeDevice error setting address. err=0xe00002ed device=0x1f8bc00 - releasing device
USBF:   2909.588        AppleUSBOHCI[0x1c7e800]::MakeDevice error setting address. err=0xe00002ed device=0x1f8bc00 - releasing device
This SL-5500 works fine in both network and USB mode in Linux where I mount it by hand as I do my card readers. (and my flash cards are fine on all computers with a reader).
SL5500  OZ3.5.2 (Opie), Dvorak built in keyboard
Spectrum24 Ethernet
SanDisk 256 ext2 (AR0401RF China) SD
Lexar 256 VFAT (P/N 2260, Rev. A), Transcend 128 ext2 CF
Pismo, Cube, 8600, Gentoo PowerPC, YellowDog

chrisl

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://web.mac.com/iepfreaks/iWeb/Site/Main%20Page.html
usb net/storage package
« Reply #26 on: August 30, 2006, 03:53:35 pm »
Quote
Quote
It should work without anything needing to be installed on XP/2k.

When I was working out how to get it all working in the first place I had the same problem as you do now - the drive shows up, but there's nothing there (I think it asked me to format when I tried to open the drive, that or it complained).

Take a look at the original thread and see if there's anything relevant there that I've forgotten.

I'll dig out my collie this evening and see if I can come up with any suggestions.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63849\"][{POST_SNAPBACK}][/a][/div]
Thanks Lardman, I had a look.
The thread in which you posted your scripts started with you and Maslovsky having a problem that appeared similar to mine. You seemed to solve it by loading the modules, then suspending and waking up again before plugging in. I have just tried that sequence. On a PC I get that the USB device is malfunctioning and see an empty USB device listed. On a Mac I see the following in dmesg:
Code: [Select]
USBF:   2907.190        AppleUSBHubPort: Error 0xe00002ed: set feature (resetting port)
USBF:   2907.988        AppleUSBOHCI[0x1c7e800]::MakeDevice error setting address. err=0xe00002ed device=0x2747f00 - releasing device
USBF:   2908.788        AppleUSBOHCI[0x1c7e800]::MakeDevice error setting address. err=0xe00002ed device=0x1f8bc00 - releasing device
USBF:   2909.588        AppleUSBOHCI[0x1c7e800]::MakeDevice error setting address. err=0xe00002ed device=0x1f8bc00 - releasing device
This SL-5500 works fine in both network and USB mode in Linux where I mount it by hand as I do my card readers. (and my flash cards are fine on all computers with a reader).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63908\"][{POST_SNAPBACK}][/a][/div]

I realize this is an old thread, but usb accessibility is important to me. I have used the usb-storage package mentioned on this thread on Cacko. I also know there is one created for OZ, but apparently for a much older version. I have tried to install that OZ version, but it refuses to install for me, even with --force depends. It gives me a warning about qpe-base 1.5 and then later aborts. Is there a way to make it install? Or is there another version of usb-storage out there that works on OZ and a Collie?
Zaurus SL-5500, Kodak CF 32 & 256 MB, generic (pqi) 1 GB SD & polaroid 1 GB SD, tkc 2a3 with home on SD, Belkin F5D6060 CF WiFi Card, MacBook Pro 1.8 GHz Core Duo, OS X 10.4.10

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
usb net/storage package
« Reply #27 on: September 01, 2006, 09:48:20 am »
For Collie, I think the fd_storage.o module should now be compiled and install as standard. Is this not the case?

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

chrisl

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://web.mac.com/iepfreaks/iWeb/Site/Main%20Page.html
usb net/storage package
« Reply #28 on: September 04, 2006, 11:28:26 pm »
Quote
For Collie, I think the fd_storage.o module should now be compiled and install as standard. Is this not the case?

Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140460\"][{POST_SNAPBACK}][/a][/div]


Not sure, but never the less, it does not work. GPE has a piece of software for usb mass storage that also does not work. Its kinda of strange that an ancient kernel like the Cacko/Crow does have usb storage that works. Oh well, sigh...

Chris--
Zaurus SL-5500, Kodak CF 32 & 256 MB, generic (pqi) 1 GB SD & polaroid 1 GB SD, tkc 2a3 with home on SD, Belkin F5D6060 CF WiFi Card, MacBook Pro 1.8 GHz Core Duo, OS X 10.4.10

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
usb net/storage package
« Reply #29 on: September 05, 2006, 05:28:39 am »
I'll take a look at it.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva