Author Topic: Wanted: 5600 usb mass storage test volunteer/victim ;-)  (Read 8899 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #15 on: February 27, 2004, 11:09:21 am »
The card is recognised (in that it know which one to look at), but I don\'t think it\'s reading it properly as these two:

Device file descriptor:0x00000000
Device size:0x0

Should be non-zero. This looks much like my output on the 5500, I had expected it to be more promising for you guys. It looks like I\'ll have to dig deeper for the differences.

In truth this is a good thing (for me at least) as the sl5600 and c860 kernel sources are far more similar than those of the sl5500 and c860. Hopefully I\'ll be able to spot the difference.


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

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #16 on: February 27, 2004, 11:16:46 am »
I\'m not sure If you\'ve seen my previous msg...

the string [2] in /proc/usb-devices display \"SL-C860\".

my module was showing \"SL-5600\".
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #17 on: February 27, 2004, 11:20:04 am »
I must have been posting while you were.

So it\'s working now is it? You have access to the card, etc.?

I didn\'t compile this module, I just borrowed it from the c860 root fs tarball (though I can give you instructions as to how I compiled the module for my sl5500 if you want them).

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

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #18 on: February 27, 2004, 11:32:51 am »
lardman

I see it works!

I can\'t create this directory: /storage_fd ,where it should be
when I run it in this directory: /device ,I get:

Bad interpreter: no such file or directory

yesterday I removed that directory from your script and it seemed to be ok?

Any thoughts?

Greg

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #19 on: February 27, 2004, 11:38:00 am »
yes everything is working fine with the CF card.

yes please for the compilation instructions.

It\'s a bit shitty if I\'m suspending my zaurus (or stopping the device in windows), the usbcore module is busy and can\'t be removed. And finally, to reboot I need to use the hard reset button...
I\'ve checked the /proc/usb-devices file after a suspend:

Code: [Select]
bash-2.05$ cat /proc/usb-devices

usb-device list

Device: PXA

             Device:[        ]

Segmentation fault



I\'m using now the C860 hotplug script and it\'s working ok apart the above issues.
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #20 on: February 27, 2004, 11:46:10 am »
Try \'rmmod storage_fd\' before suspending, this should stick you back to the normal condition.

I have to go home and look on my Linux box for the compilation instructions. I\'ll do that this evening. Actually I\'ll try compiling a 5600 version of the storage module too.


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

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #21 on: February 27, 2004, 12:17:38 pm »
I\'ve compiled my modules like this:
  - make menuconfig
  - load poodle config file
  - enable \"mass storage function\" as a module
  - make dep; make clean; make zImage; make modules; make modules_install

What do I need to change in the configuration of the mass storage?

I\'m just wondering if the C860 users got the same issues during a suspend?

how do I configure the \"PC Link\" (qtsamba) application to use the storage option? and make it work properly?

so far I\'ve updated these files from the C860 rootfs source:
/etc/sdcontrol
/etc/usbcontrol
/etc/pcmia/ide
/etc/hotplug/usbd.agent (removed the MODULE_BI_OPT variable at the install module pxa_bi.o line)
/etc/hotplug/usbdstorage.agent
/etc/hotplug/usbdstorage.conf
/etc/rc.d/init.d/usb
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #22 on: February 27, 2004, 12:31:17 pm »
lardman

Is there a trick to write in a read-only file system? (anybody?)

If not over the weekend I will back everything up and flash to Sharp rom.

Good work

Greg

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #23 on: February 27, 2004, 12:49:19 pm »
@Ced: I\'ve tried enabling it the way you say (in the OE/OZ kernel build system), but no luck. In the end I looked at the log of the build process and copied the command line which was used to build net_fd. It seemed to work fine. No matter what I tried to enable I couldn\'t seem to get it to compile (including editing the makefile and config files manually).

@Greg: You may be able to mount the filesystem as rw temporarily, I don\'t know.

Take a look at the scripts I amended and then make changes to the ones you already have and it should work. If you just remove the entire path before the storafe_fd.o module then cd to the directory which contains the module you should be able to load it without troubles.


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

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #24 on: February 28, 2004, 09:46:03 am »
Si

I finally made it work with all your help!

I could have made the other rom work with your new modified script but I wanted something more neat and stable. For the record you can write on the Sharp read-only file system but not the Zynergy 1.1-with a trick that tumnus has posted in at least two other threads.(I will look into that another time)

I was going to make 2 little icons and create executable scripts but in the other thread I see you are thinking of hotplug scripts?

This was something you were trying on the dev/net that i was watching closely, it is a very valuable feature for me!

New specs: 5600, Rom 1.32 with Special kernel and USB-storage

Thanks

Greg

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #25 on: February 28, 2004, 10:15:44 am »
No problem Greg, I\'m glad you\'ve got it working.

Sorry I missed your earlier post:

Quote
lardman

I see it works!

I can\'t create this directory: /storage_fd ,where it should be
when I run it in this directory: /device ,I get:

Bad interpreter: no such file or directory

yesterday I removed that directory from your script and it seemed to be ok?

Any thoughts?

Greg

This is because the Sharp text editor adds line feeds to the text files which it creates/edits. So you\'ll either have to get a different text editor (like the opie one), use vi, or run dos2unix (which strips out the line feeds) on the script which you were editing.


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

dz

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • http://www.dangerz.net
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #26 on: February 28, 2004, 12:41:29 pm »
..weird, i try and run the scripts right from the sd card and i get this:

[u@h w]$ pxastart_storage.sh
pxastart_storage.sh: not found

when i try and do sh pxastart_storage.sh, i get this:

[u@h w]$ sh pxastart_storage.sh
: not found
: No such file or directory
: not found
 is not loadedpxa_bi
 is not loadedstorage_fd
 is not loadedserial_fd
 is not loadednet_fd
 is not loadedusbdcore
: not found
insmod: /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/usbdcore: No such file or directory
/lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/storage_fd/storage_fd.o: init_module: Invalid argument
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
insmod: /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/bi/pxa_b: No such file or directory

i dunno :/
http://www.dangerz.net
c860 : Cacko
The greatest experience we can have is the mysterious.
- Albert Einstein

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #27 on: February 28, 2004, 01:15:32 pm »
Hopefully you\'re not trying to run the scripts from the card which is unmounted as part of the process?

Unless the command is in the path you have to do this:

$ ./command-name

rather than just:

$ command-name

to get it to run.

What device is this you\'re trying it on, a 5600? Which ROM?

Try just doing \'lsmod\' and see whether any of the modules are loaded.


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

dz

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • http://www.dangerz.net
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #28 on: February 28, 2004, 01:32:40 pm »
ahh it works now.. i had to change the line in the file that said which drive to mount/umount

works well now.. i have a 5600 pxa255 with tkcRom

only thing is when windows recognized the mass storage option, it said it was a CL860 or whatnot.. either way, i dont know if that matters since it still works fine.. and i can rw from the new drive also

thanks
http://www.dangerz.net
c860 : Cacko
The greatest experience we can have is the mysterious.
- Albert Einstein

dz

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • http://www.dangerz.net
Wanted: 5600 usb mass storage test volunteer/victim ;-)
« Reply #29 on: February 28, 2004, 01:37:16 pm »
now what would be nice is if you could do net + mass storage..  that way i could still ssh into it

either way, very nice job
http://www.dangerz.net
c860 : Cacko
The greatest experience we can have is the mysterious.
- Albert Einstein