LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-23-2010, 11:58 PM   #1
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Rep: Reputation: 41
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
 
Old 08-24-2010, 02:23 AM   #2
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
*I mean usb mass storage device, not usb memory device.
 
Old 08-24-2010, 03:34 PM   #3
TedHornsby84
Member
 
Registered: Mar 2010
Location: Oak Cliff, TX
Distribution: Gentoo
Posts: 35

Rep: Reputation: 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.
 
Old 08-24-2010, 10:29 PM   #4
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
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.
 
Old 08-24-2010, 10:31 PM   #5
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
Ah sorry I read it "insmod", you are referring to the lsmod. The output of lsmod is already listed above.
 
Old 08-25-2010, 04:41 PM   #6
TedHornsby84
Member
 
Registered: Mar 2010
Location: Oak Cliff, TX
Distribution: Gentoo
Posts: 35

Rep: Reputation: 2
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
 
Old 08-27-2010, 01:45 AM   #7
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
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 
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 init
android_bind
mass_storage_function_add
android_usb gadget: Number of LUNs=1
adb_function_add
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?

Thanks.

Last edited by archieval; 08-27-2010 at 01:47 AM. Reason: added bootlog
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What config option needed for usb wifi rt2x00 modules? wufo Slackware 4 01-06-2010 07:05 AM
Question considering a not defined USB-Flash memory device ... MyAndy Linux - General 2 02-28-2009 06:46 AM
Help needed installing usb device on Asus Eeepc (where is the kernel?) Ironnes Linux - Newbie 12 10-25-2008 06:00 PM
usb driver for memory stick pro device Simon Bridge Linux - Hardware 5 05-22-2005 07:25 AM
USB Song Memory Stick Device KePSuX Linux - Hardware 3 07-09-2003 04:38 PM


All times are GMT -5. The time now is 08:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration