Author Topic: Usb Storage  (Read 10751 times)

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Usb Storage
« Reply #15 on: October 20, 2007, 09:57:37 am »
Quote from: jpmatrix
Quote from: ZDevil
How about:

modprobde ohci-hcd?

If that works, then simply add ohci-hcd to /etc/modules so that the module will load automatically when the system boots up.

Or ask the gurus?  


oh yeah i forgot the ohci-hcd stuff ..
unhopefully, i now have a curious message as i plug the key :

rejected 1 configuration due to insufficient available bus power
...........

I got that message at one time, then got a powered usb hub -- very convenient for multiple devices.  But with debian I have been able to just plug in my usb keychain device, and it works.  The proper modules just load, once I start ohci-hcd.
Zaurus:  SL C3100
ROM:  eabi debian/sid

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Usb Storage
« Reply #16 on: October 20, 2007, 09:58:48 am »
Quote from: jpmatrix
Quote from: ZDevil
I got the same error when plugging in my Sony Ericsson w800i (which can function as a USB mass storage device).

hmm
i've just try to plug in my PSP (which has its own power!) and .. it works!
so is it a kernel problem or some config files to tweak ?

I believe the limited power available to the usb port would be a hardware limitation, not something that could be re-configured.
Zaurus:  SL C3100
ROM:  eabi debian/sid

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Usb Storage
« Reply #17 on: October 20, 2007, 10:03:47 am »
Quote from: tux
sda: unknown partition table
sd 1:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete

Then I used mount:

debian:/# mount /dev/sda1 /media/cf -t vfat

mount: special device /dev/sda1 does not exist


So I have used fdisk and will now format the stick as ext2 and see what happens

Huh.  Mine works fine with whatever fs (vfat, probably) that came on the thing.  I guess you have managed to mount it successfully on another machine, but that would be worth testing.  And, keeping the fs vfat makes the device usable on more machines.
Zaurus:  SL C3100
ROM:  eabi debian/sid

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Usb Storage
« Reply #18 on: October 20, 2007, 10:55:51 am »
Quote from: dlj0
I believe the limited power available to the usb port would be a hardware limitation, not something that could be re-configured.

But my Z can connect and use the SE w800i phone in pdaX without trouble, while there is a error showing not enough power in Debian. So I rather think it is not really hardware limitation in some cases.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Usb Storage
« Reply #19 on: October 20, 2007, 02:38:42 pm »
Quote from: dlj0
Quote from: tux
sda: unknown partition table
sd 1:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete

Then I used mount:

debian:/# mount /dev/sda1 /media/cf -t vfat

mount: special device /dev/sda1 does not exist


So I have used fdisk and will now format the stick as ext2 and see what happens

Huh.  Mine works fine with whatever fs (vfat, probably) that came on the thing.  I guess you have managed to mount it successfully on another machine, but that would be worth testing.  And, keeping the fs vfat makes the device usable on more machines.
 In fact, any device that actually works at all will work with whatever format is on it. I was just checking if there was a problem with the default partitions on the device. There are some that seem to have a system all of their own.  

The interesting thing to me, was that the CF card reader worked. But I could only mount the CF card after I ran fdisk on /dev/sda. I didn't actually have to alter anything, just use it and quit. Then the CF card could be mounted.  

Some devices, like the swapped out 6GB drive, just hung when I ran fdisk. (Works fine in the CF slot.)

Strange happenings.

 
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

Marcin iwi Iwinski

  • Newbie
  • *
  • Posts: 3
    • View Profile
Usb Storage
« Reply #20 on: March 06, 2008, 09:06:51 pm »
I know that topic is quite old - but i'm having the "bus power" problem as well. I'm using sharp version of yongguns's 2.6.24. Did anyone find any solution ?

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Usb Storage
« Reply #21 on: March 07, 2008, 03:48:39 am »
when I first started using linux on the desktop full time (oh, about 7 years ago) I was trying to use a particular memory card reader with a sony memstick, and it just wouldn't work. then I discovered I had to do some patches to the kernel - scary stuff - and it worked. I investigated and found that apparently many manufacturers did not create hardware that properly fulfils the USB specifications, but that Windows was very lax about enforcing any standards, and thus the manufacturers got away with it. This means that linux had to add kludges to allow the hardware to work.
I would hope that in theory things are better now, but quite possibly not.

So, it's quite possible that the hardware will work, but reports the wrong information to the Z, which assumes that the usb device isn't functioning, reports an incorrect error, and fails to fire it up?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Marcin iwi Iwinski

  • Newbie
  • *
  • Posts: 3
    • View Profile
Usb Storage
« Reply #22 on: March 07, 2008, 09:13:50 pm »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Usb Storage
« Reply #23 on: March 11, 2008, 06:26:57 am »
Quote from: Marcin iwi Iwinski
I've found something eventually
https://www.oesf.org/forum/index.php?showto...&hl=pegasus
Does this trick work?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Usb Storage
« Reply #24 on: July 13, 2008, 07:45:21 pm »
Quote from: ZDevil
Does this trick work?

Yes, this trick works... but it's kind of a pain to do this every time.

*EDIT*

I was thinking about trying to change the kernel configs for this reason.  Does anyone know which line it is to change this behavior?  Or is it not even the kernel?

*EDIT2*  

Udev might be a good workaround, according to post #5 in the following:

http://ubuntuforums.org/showthread.php?p=3533694#post3533694

*EDIT3*

FWIW, there's a good deal of info at

http://www.mjmwired.net/kernel/Documentati...-management.txt
« Last Edit: July 13, 2008, 08:26:55 pm by radiochickenwax »
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

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Usb Storage
« Reply #25 on: July 13, 2008, 11:01:43 pm »
The udev trick is the way to go, see my old post: https://www.oesf.org/forum/index.php?showto...st&p=177297
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote