OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: sven on January 26, 2005, 05:38:30 pm

Title: Usb Host Kernel Module Not Loading
Post by: sven on January 26, 2005, 05:38:30 pm
Hi,

when try to load the module for the usb host ctlr i get this strange error:

Code: [Select]
# lsmod
Module                  Size  Used by
prism2_cs              69584   1
p80211                 18864   1  [prism2_cs]
pxa_bi                 24912   0  (unused)
net_fd                 25216   0  (unused)
usbdcore               35504   0  [pxa_bi net_fd]
usbdmonitor             5488   0
usb-monitor             6496   0
sharp_mmcsd_m          41008   1
# modprobe usb_ohci_pxa27x
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o: init_module: Operation not permitted
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o: insmod /lib/modules.rom/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o failed
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o: insmod usb_ohci_pxa27x failed
#

Any thoughts?

thanks
Sven
PS: usbcore is loading fine, if i load usbcore before trying to insmod the ohci module i get the same error.
Title: Usb Host Kernel Module Not Loading
Post by: Jonathan on January 26, 2005, 09:52:58 pm
Sven,

I get the same messages, but... do you really need to do this?  

When I plug in my mini-USB adaptor cable (just the dumb cable, with no USB device attached) the module loads automatically.

Before plugging in cable:


Code: [Select]
zaurus:[zaurus]:$ lsmod
Module                  Size  Used by
usbdmonitor             5488   0
usb-monitor             6496   0
sharp_mmcsd_m          41008   1

then I plug in the cable:

Code: [Select]
zaurus:[zaurus]:$ lsmod
Module                  Size  Used by
usb_ohci_pxa27x        21696   0 (unused)
usbcore                63264   1 [usb_ohci_pxa27x]
usbdmonitor             5488   0
usb-monitor             6496   0
sharp_mmcsd_m          41008   1
zaurus:[zaurus]:$

Seems that the dumb cable shorts some connector in the mini USB socket and wakes up the built in controller.  Before that it is off and the modules can't be forced to load.

Is that what you want to happen?  

Jonathan
Title: Usb Host Kernel Module Not Loading
Post by: sven on January 27, 2005, 05:41:47 am
Quote
Seems that the dumb cable shorts some connector in the mini USB socket and wakes up the built in controller.  Before that it is off and the modules can't be forced to load.

Is that what you want to happen? 

Ahh, that means my cable is defect or just the false one. That was also my first guess.

Thanks a lot
Sven
Title: Usb Host Kernel Module Not Loading
Post by: cwaig on January 27, 2005, 06:59:21 am
Isn't the SLC3000's USB port a MiniAB type? MiniAB decides if it's being a USB host or USB slave based on what type of cable you plug into it, so that's probably the reason the driver doesn't load 'til you plug in the cable.....