What modules are needed for usb memory device?
Hello,
Currently I am working on a new android device that has a usb port. When I insert the usb flash drive it is detected and but when I do fdisk -l, nothing is displayed and when I do lsmod, no usb related modules are installed. / # lsmod gspca_vc032x 22400 0 - Live 0xbf069000 gspca_main 22576 1 gspca_vc032x, Live 0xbf05e000 uvcvideo 58104 0 - Live 0xbf04a000 s3c_bc 4076 0 - Live 0xbf044000 s3c_lcd 6252 0 - Live 0xbf03d000 pvrsrvkm 225856 30 s3c_bc,s3c_lcd, Live 0xbf000000 I am new to usb drivers so I do not know what the modules are needed to be installed. I am assuming usb-storage.ko and scsi_mod.ko. I also insmod usbcore.ko but it has error: /modules # insmod usbcore.ko usbcore: module is already loaded insmod: init_module 'usbcore.ko' failed (Invalid argument) But as I have said earlier, usbcore is not running when I do lsmod. What could be the other dependencies/modules that are needed to run my usb device? The connection of the usb device only has these notification after installing the usb-storage.ko and scsi_mod.ko /modules # insmod scsi_mod.ko SCSI subsystem initialized /modules # insmod usb-storage.ko Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. /modules # usb 1-1: new high speed USB device using s5pc110-ehci and address 2 usb 1-1: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices scsi 0:0:0:0: Direct-Access Kingston DT 101 II 1.00 PQ: 0 ANSI: 2 |
*I mean usb mass storage device, not usb memory device.
|
Could you post the output from lsmod, please? I'm looking to see if you have ehci, uhci, and ohci loaded. These are the modules necessary for most USB controllers. The full output from lsmod is really essential for others to help you troubleshoot this problem.
|
Ok I'll post it later as I am currently doing an other urgent thing. The ehci, uhci, and ohci drivers are not compiled as modules, they are automatically initialized during bootup. I'll get the usb logs on boot up later.
|
Ah sorry I read it "insmod", you are referring to the lsmod. The output of lsmod is already listed above.
|
It sure is, isn't it? I'll chalk that one up to lack of sleep :) You answered my main question anyway, that the ehci, ohci, etc are compiled into the kernel so you should have USB support built-in. Yes, please post your dmesg.boot logs. That's another good place for us to start looking for signs of trouble. A little more background info, like exactly what kind of device are you working on, and kernel version would be helpful. Is this a cell phone or blackberry we're talking about?
EDIT: What filesystem are you using on your storage device, and did you make sure that support for it is compiled into the kernel? If it isn't, you would have to load support as a module. |
Sorry for the late reply, I just get back to this one just today. The device I am working on a is a mini laptop/computer with rich functionality running 2.6.29 and busybox package. Here is a snippet of the boot up with the usb related. Are there any other installed part that you need to know?
Code:
DMA: got clock for controller 1 and disabled The filesystem type of the disk is vfat (FAT32 partition). How can I know if the filesystem is supported? Thanks. |
All times are GMT -5. The time now is 06:36 PM. |