Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Autoloaded modules from genkernel during bootup

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Vlad
Apprentice
Apprentice
Posts: 264
Joined: Tue Apr 09, 2002 8:47 pm
Location: San Diego, California

Autoloaded modules from genkernel during bootup

  • Quote

Post by Vlad » Fri Jun 22, 2007 7:50 am

I'm curious what mechanism the genkernel created initramfs uses to determine what modules to load during bootup. It seems they're not dynamically detected or anything, as it loads up modules for hardware I don't have. I'm interested in modifying this list to load modules I will be using (took me a while to figure out the ATA drivers for my hardware were modules and were not being loaded during bootup).

Thanks for any help.

-Vlad
Top
warrawarra
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Wed May 30, 2007 7:24 am

  • Quote

Post by warrawarra » Fri Jun 22, 2007 6:31 pm

make menuconfig
or
make xconfig

then specify the drivers needed and compile the kernel.

Or not sure when this loads but it is very close to the beginning:

/etc/modules.autoload.d/kernel-2.6

I sometimes add wireless modules to this above file and it works think it is close to or before udev detecting.

Insmod bcm43xx force
or
modprobe bcm43xx force
once inside a live cd /dvd enviroment and then "update-module force" .

ATA = think the newer kernels uses sata as the default module and this is a combination of ata and sata and scsi or at least that is how it works on mine.

Might also be able to use a cheat code during startup or at least on live cd's /dvd's and say generic-ata or noacpi or xres or similar not sure if you can add this to grub and have it do the job ?

Hope this helps.
Top
Vlad
Apprentice
Apprentice
Posts: 264
Joined: Tue Apr 09, 2002 8:47 pm
Location: San Diego, California

  • Quote

Post by Vlad » Fri Jun 22, 2007 7:30 pm

I've already configured the kernel to contain the modules (note that they're modules and not statically compiled). There are drivers loaded before INIT is ever called and before the real_root filesystem has been mounted (in fact the modules I want to load are required to access this file system!). I don't know if genkernel supports livecd-style command line instructions, but even if it does, I have no idea what the commands would be to load any arbitrary driver.
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10894
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Fri Jun 22, 2007 9:25 pm

Vlad wrote:I don't know if genkernel supports livecd-style command line instructions, but even if it does, I have no idea what the commands would be to load any arbitrary driver.
See [topic=544642]Specify modules to load from an initramfs?[/topic]

- John
Top
Vlad
Apprentice
Apprentice
Posts: 264
Joined: Tue Apr 09, 2002 8:47 pm
Location: San Diego, California

  • Quote

Post by Vlad » Fri Jun 22, 2007 10:56 pm

Thank you ever so much, that's exactly what I was looking for. :)
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10894
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Fri Jun 22, 2007 11:23 pm

Yeah, me, too, minus 3 months. :D

- John
Top
Vlad
Apprentice
Apprentice
Posts: 264
Joined: Tue Apr 09, 2002 8:47 pm
Location: San Diego, California

  • Quote

Post by Vlad » Sat Jun 23, 2007 1:41 am

Hm, do you know if there's a way to limit the modules loaded by default? It loads a ton of sata and networking drivers I don't need loaded.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy