Author Topic: USB Storage ported to 5xxx ROM\'s ?  (Read 25395 times)

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
USB Storage ported to 5xxx ROM\'s ?
« Reply #45 on: March 01, 2004, 02:46:29 am »
Scripts from 860 root fs always load storage_fd before zaurus is in cradle. I want to take a look at your scripts, but cannot download them form this topic.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
USB Storage ported to 5xxx ROM\'s ?
« Reply #46 on: March 01, 2004, 04:38:58 am »
My scripts:

start_net.sh (to return to normal operation)

#!/bin/sh
/sbin/rmmod sa1100_bi
/sbin/rmmod storage_fd
/sbin/rmmod usbdcore
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/usbdcore.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/net_fd/net_fd.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/bi/sa1100_bi.o
mount /mnt/cf

and start_storage.sh (to get usb-storage working)

#!/bin/sh
umount /dev/hda1
/sbin/rmmod sa1100_bi
/sbin/rmmod net_fd
/sbin/rmmod usbdcore
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/usbdcore.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/storage_fd/storage_fd.o storage_device=/dev/hda1
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/bi/sa1100_bi.o


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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
USB Storage ported to 5xxx ROM\'s ?
« Reply #47 on: March 01, 2004, 04:40:01 am »
In the script above:

/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/storage_fd/storage_fd.o
and
storage_device=/dev/hda1

Should all be on the same line.
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

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
USB Storage ported to 5xxx ROM\'s ?
« Reply #48 on: March 01, 2004, 02:05:32 pm »
OK, now I can see what the problem was. That one line patch from rrusaw did the trick - it now works!
I\'m using scripts from 860 root fs and it works just fine.  A bit more testing and I\'ll create a complete package.

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
USB Storage ported to 5xxx ROM\'s ?
« Reply #49 on: March 02, 2004, 08:39:34 am »
I\'ve built the package including a simle GUI application to switch between the two modes. The package is avalable at http://my-zaurus.narod.ru/usbstorage.html

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
USB Storage ported to 5xxx ROM\'s ?
« Reply #50 on: March 02, 2004, 08:55:38 am »
can you do one for the SL5600?
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
USB Storage ported to 5xxx ROM\'s ?
« Reply #51 on: March 02, 2004, 10:21:24 am »
Quote
can you do one for the SL5600?

I hope lardman will.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
USB Storage ported to 5xxx ROM\'s ?
« Reply #52 on: March 02, 2004, 10:46:58 am »
Yep, give me a bit of time..... :-)
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

Anonymous

  • Guest
USB Storage ported to 5xxx ROM\'s ?
« Reply #53 on: March 11, 2004, 07:46:21 pm »
Quote
I\'ve built the package including a simle GUI application to switch between the two modes. The package is avalable athttp://my-zaurus.narod.ru/usbstorage.html

I downloaded this app and set my Z up for mass storage which worked great . I removed it from the cradle and changed to standard network but the Z stopped responding when I confirmed my choice. After a few minutes I gave up and rebooted it.
I guess I messed up as now it is not recognised as a network interface by windows; I can\'t change USB configuration (it crashes) and my CF cards are no longer automatically mounted
Should I use the scripts above to return to \"normal\" operation or is there something else I need to do?

cheers,
Sean

Anonymous

  • Guest
USB Storage ported to 5xxx ROM\'s ?
« Reply #54 on: March 11, 2004, 07:50:11 pm »
OK, I wholeheartedly apologise for that post above. I restarted the Z twice after it crashed and everything appears to be working as normal.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
USB Storage ported to 5xxx ROM\'s ?
« Reply #55 on: March 12, 2004, 05:01:43 am »
Assuming my ipks even work (they never used to ;-)), and also assuming that the directory structure on the 5600/7x0 is the same as that on the 5500 with a 3.xx rom then this one should work:

PXA processor, Sharp ROM: http://students.bath.ac.uk/enpsgp/Zaurus/u...ROM_PXA_arm.ipk

For PXA OZ machines try this: http://students.bath.ac.uk/enpsgp/Zaurus/u..._OZ_PXA_arm.ipk
For SA (5000D/5500) OZ machines try this: http://students.bath.ac.uk/enpsgp/Zaurus/u...0_OZ_SA_arm.ipk

The two OZ ipks haven\'t been tested, at all (sorry I\'ve been busy). But they should backup the scripts which they alter and then restore them when you uninstall the ipk. I was planning to add this into the hotplug scripts myself but I\'m a bit to busy to do that for a while, currently they use the same script changes as Maslovsky originally had in his ipk (and I don\'t know whether this works on OZ).


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

Anonymous

  • Guest
USB Storage ported to 5xxx ROM\'s ?
« Reply #56 on: March 13, 2004, 07:29:25 am »
Hi,

I\'ve been messing with the app as well.

My experience:
OK under windows with my (FAT formatted) CF
Not working under Windows with my (ext formatted) SD

I guess this is due to the filesystem?!

Not working at all under Linux (MandrakeLinux 10) :-(

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
USB Storage ported to 5xxx ROM\'s ?
« Reply #57 on: March 13, 2004, 07:56:45 am »
The OS has to be able to mount and read the storage card directly - Windows can\'t mount ext2 filesystems.

I\'m not running Mandrake 10 (yet) so I can\'t really help you there, but if you post some more info/symptoms I\'ll try.


Simon
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

Anonymous

  • Guest
USB Storage ported to 5xxx ROM\'s ?
« Reply #58 on: March 15, 2004, 03:34:42 am »
Hi,

Thx for your reply.

So with this:
Quote
The OS has to be able to mount and read the storage card directly - Windows can\'t mount ext2 filesystems.
you mean indeed that ext file formats will NOT work with USB storage mode and windows.

I haven\'t tried very much with mdk10. I just know that my USB memory stick works out of the box, whereas the Z didn\'t. There is a service under mdk10 I hadn\'t seen before, called hotplug. But I can\'t enable it, because it crashes my system.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
USB Storage ported to 5xxx ROM\'s ?
« Reply #59 on: March 15, 2004, 04:54:09 am »
Yes that\'s correct. Windows will not work with ext2 formatted cards via usb-storage (or any other direct method such as a card reader for that matter).

If your memory stick works then so should the Z, but I don\'t have a memory stick so I can\'t compare myself.


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