Author Topic: Usb Mass Storage Driver(ide)  (Read 6323 times)

Sashi Bhusan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Usb Mass Storage Driver(ide)
« on: March 21, 2005, 04:01:54 am »
HI all,
i have written a USB peripheral controller driver for ISP1583 chip & IDE mass storage class driver  on device side for my custom board.when i am inserting the USB cable in windows host system it is detecting USB Mass Storage Device but while clicking on that it should show Generic Disk device but in my case it is showing "the device cannot be stat".

 can anybody, is aware of this problem , helpm me out.i

if anybody knows about this problem please give me a reply & ii can send all other details .


with regards
Sashi Bhusan

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Mass Storage Driver(ide)
« Reply #1 on: March 21, 2005, 05:21:18 am »
I've seen this before - when testing out mass storage on my 5500 - but I have no idea why it happened, nor how to debug it. Iirc, it was fixed (for me) by a suitable combo of rebooting, re-insmod'ing and altering one of the kernel modules.

I'm not sure if the following will be of any use to you but for completeness' sake.

The original posts are here:
https://www.oesf.org/forums/index.php?showtopic=495&hl=
https://www.oesf.org/forums/index.php?showtopic=1856&hl=
https://www.oesf.org/forums/index.php?showtopic=1485&hl=

might be something here too:
https://www.oesf.org/forums/index.php?showtopic=2129&hl=
https://www.oesf.org/forums/index.php?showtopic=1996&hl=

Sorry I can't be of more help,


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

Sashi Bhusan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Usb Mass Storage Driver(ide)
« Reply #2 on: March 21, 2005, 10:30:06 am »
hi Si,
thanks for responding.i have got the usb_mass.c code from the links you have given.but some functions are there which are not defined in this .c file.so  where can i get that.for example "sa1100_usb_start()".

waiting for your reply

with regards
Sashi Bhusan

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Mass Storage Driver(ide)
« Reply #3 on: March 21, 2005, 10:51:53 am »
It's probably in the source which builds the sa1100_bi.o module, not sure exactly where that is in the kernel source without looking (and I can't atm).

You might be better looking at the source code for storage_fd.o which comes in the c860 kernel source code. I imagine that the handhelds.org kernels also
support mass storage, so a browse through their source might also be worth while.

I imagine that this kind of error has been encountered before by those who develop mass storage drivers for devices, so you should also have a look at any USB related mailing lists you can find to see if you can spot anything there.


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

Sashi Bhusan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Usb Mass Storage Driver(ide)
« Reply #4 on: March 26, 2005, 05:23:33 am »
Hi Si,
i am able detect that fault now i am able to detect the disk & icon "removable disk " is coming in My Computer.but i am unable to access that i.e. when i am clicking on that nothing is coming.

what might be the problem ?how i can access that.please help me out.

regards
Sashi Bhusan