Modules not loaded at boot?

 
Post new topic   Reply to topic    Lunar-Linux Forum Index -> Installing Lunar
View previous topic :: View next topic  
Author Message
Gb



Joined: 04 Aug 2007
Posts: 8

PostPosted: Sat Aug 04, 2007 12:05 pm    Post subject: Modules not loaded at boot? Reply with quote

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
View user's profile Send private message
Jason5876



Joined: 31 Jul 2007
Posts: 4

PostPosted: Sun Aug 05, 2007 6:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gb



Joined: 04 Aug 2007
Posts: 8

PostPosted: Tue Aug 07, 2007 8:49 am    Post subject: Reply with quote

Hi Jason,

You pinpointed the problem.

My /etc/modules was empty, so I put there all the module names and now everything works! Very Happy

Thank you,
Gb
Back to top
View user's profile Send private message
mwplinux



Joined: 23 Nov 2005
Posts: 9
Location: Denmark

PostPosted: Tue Aug 07, 2007 11:13 am    Post subject: Reply with quote

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! Very Happy

Thank you,
Gb


Well I guess you also could use the lmodules tool for loading/unloading modules at startup Wink
Back to top
View user's profile Send private message
Gb



Joined: 04 Aug 2007
Posts: 8

PostPosted: Tue Aug 07, 2007 3:22 pm    Post subject: Reply with quote

Hi mwplinux,

Thanks for pointing out lmodules.
Embarassed I must read the docs! Smile

Gb
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lunar-Linux Forum Index -> Installing Lunar All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group