View previous topic :: View next topic |
Author |
Message |
Gb
Joined: 04 Aug 2007 Posts: 8
|
Posted: Sat Aug 04, 2007 12:05 pm Post subject: Modules not loaded at boot? |
|
|
Hello,
I have re-compiled the kernel many times (2.6.22.1) and also
run manually depmod afterwards (even if I think that lunar does it by itself).
What puzzles me is the fact that the module here:
/lib/modules/2.6.22.1/kernel/drivers/usb/host/uhci-hcd.ko
is not automatically loaded at startup.
I thought that maybe it would be loaded on demand,
but inserting a usb pendrive didn't work.
What I have done is loading manually the module with:
insmod uhci-hcd.ko
and then the pendrive works fine.
Maybe the module should be compiled directly into the kernel
and not as a module? According to the kernel documentation,
both ways are ok.
I have also compiled other kernel features as modules,
but the only modules actually loaded are:
Quote: | gb@gbhome:~$ lsmod
Module Size Used by
i915 27648 0
ipv6 283464 24
iptable_filter 4096 0
iptable_mangle 3968 0
ip_tables 20376 2 iptable_filter,iptable_mangle
x_tables 18568 1 ip_tables
e100 37392 0
ohci1394 33864 0
i2c_i801 9756 0 |
For sure, the kernel virtualization module is not loaded, and I wonder why.
Comments welcome.
Gb |
|
Back to top |
|
 |
Jason5876
Joined: 31 Jul 2007 Posts: 4
|
Posted: Sun Aug 05, 2007 6:42 pm Post subject: |
|
|
I have the usb related stuff compiled into the kernel so no modules need to be loaded. All works well. My usb section of my kernel config:
#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
CONFIG_USB_DEVICEFS=y
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_SPLIT_ISO=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
# CONFIG_USB_EHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_ISP116X_HCD=y
CONFIG_USB_OHCI_HCD=y
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_U132_HCD=m
CONFIG_USB_SL811_HCD=y
CONFIG_USB_SL811_CS=m
#
# USB Device Class drivers
#
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_KARMA=y
# CONFIG_USB_LIBUSUAL is not set
I usually have usb and such compiled as modules. If so, then I add the modules I want loaded at boot time into my /etc/modules file. This prevents having to load them manually after every boot.
Hope this helps.
JW |
|
Back to top |
|
 |
Gb
Joined: 04 Aug 2007 Posts: 8
|
Posted: Tue Aug 07, 2007 8:49 am Post subject: |
|
|
Hi Jason,
You pinpointed the problem.
My /etc/modules was empty, so I put there all the module names and now everything works!
Thank you,
Gb |
|
Back to top |
|
 |
mwplinux
Joined: 23 Nov 2005 Posts: 9 Location: Denmark
|
Posted: Tue Aug 07, 2007 11:13 am Post subject: |
|
|
Gb wrote: | Hi Jason,
You pinpointed the problem.
My /etc/modules was empty, so I put there all the module names and now everything works!
Thank you,
Gb |
Well I guess you also could use the lmodules tool for loading/unloading modules at startup  |
|
Back to top |
|
 |
Gb
Joined: 04 Aug 2007 Posts: 8
|
Posted: Tue Aug 07, 2007 3:22 pm Post subject: |
|
|
Hi mwplinux,
Thanks for pointing out lmodules.
I must read the docs!
Gb |
|
Back to top |
|
 |
|