Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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:
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
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.
Last edited by TedHornsby84; 08-24-2010 at 03:35 PM.
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.
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.
Last edited by TedHornsby84; 08-25-2010 at 04:44 PM.
Reason: Forgot to ask
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?
DMA: got clock for controller 1 and disabled
DMA: got clock for controller 2 and disabled
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 31
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
s5pc110-ehci s5pc110-ehci: s5pc110 EHCI
s5pc110-ehci s5pc110-ehci: new USB bus registered, assigned bus number 1
s5pc110-ehci s5pc110-ehci: irq 87, io mem 0xec200000
s5pc110-ehci s5pc110-ehci: USB 0.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s5pc110-ohci s5pc110-ohci: s5pc110 OHCI
s5pc110-ohci s5pc110-ohci: new USB bus registered, assigned bus number 2
s5pc110-ohci s5pc110-ohci: irq 87, io mem 0xec300000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adaptes
s3c-udc : S3C HS USB OTG Device Driver, (c) 2008-2009 Samsung Electronics
s3c-udc : version 15 March 2009 (DMA Mode)
android_usb gadget: Number of LUNs=1
android_usb gadget: android_usb ready
Registered gadget driver 'android_usb'
mice: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
The filesystem type of the disk is vfat (FAT32 partition). How can I know if the filesystem is supported?
Last edited by archieval; 08-27-2010 at 01:47 AM.
Reason: added bootlog