Forums

Skip to content

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

Dracut not loading drivers

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
8 posts • Page 1 of 1
Author
Message
brundage
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Thu Dec 02, 2004 6:38 am

Dracut not loading drivers

  • Quote

Post by brundage » Thu Oct 23, 2025 5:37 pm

Hia. I'm using dracut for initramfs with gentoo-kernel. It fails to early-load the drivers for my root drive. I can drop into the rescue shell, modprobe sdhci_pci, and continue booting. Any advice?

I asked nicely.

Code: Select all

0 aperture /root # cat /etc/dracut.conf.d/mmc_modules.conf 
add_drivers+=" mmc_core mmc_block sdhci sdhci_pci "
force_drivers+=" sdhci_pci "
It makes the initramfs correctly(?)

Code: Select all

dracut[D]: dracut cmdline:
dracut[D]: rd.driver.pre=sdhci_pci
dracut[D]: root=UUID=2c6e265d-827f-4419-9d9a-5bc3c50648b9 rootfstype=xfs rootflags=rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,noquota
Here's the build output.
Unscrambler of Eggs
he/him
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Thu Oct 23, 2025 6:39 pm

Some very modern machines need SPI to be able to access MMC. Maybe have a look into the link of this chapter:
https://wiki.gentoo.org/wiki/User:Pieti ... Finalizing

Maybe boot with our GentooLiveCD and check with "lsmod" all loaded modules.
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
brundage
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Thu Dec 02, 2004 6:38 am

  • Quote

Post by brundage » Fri Oct 24, 2025 12:10 am

pietinger wrote:Some very modern machines need SPI to be able to access MMC. Maybe have a look into the link of this chapter:
https://wiki.gentoo.org/wiki/User:Pieti ... Finalizing

Maybe boot with our GentooLiveCD and check with "lsmod" all loaded modules.
I'm pretty sure it has all the necessary modules. The boot hangs and opens a rescue shell. All I have to do is load the module and exit. The machine continues to boot normally.
Unscrambler of Eggs
he/him
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Oct 24, 2025 12:41 am

brundage wrote:[...] All I have to do is load the module [...]
Which module?

Maybe you are only missing the kernel command line parameter "rootwait" ?

Maybe there is also a bug in dracut not generating a needed rule/command? So, maybe we need a bug report for our developers.
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
brundage
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Thu Dec 02, 2004 6:38 am

  • Quote

Post by brundage » Fri Oct 24, 2025 3:15 pm

pietinger wrote:
brundage wrote:[...] All I have to do is load the module [...]
Which module?
brundage wrote:I can drop into the rescue shell, modprobe sdhci_pci, and continue booting. Any advice?
pietinger wrote: Maybe you are only missing the kernel command line parameter "rootwait" ?
It's my understanding that "rootwait" applies to the first stage of boot, while the kernel is waiting for its initial root device, which it gets. I'll try adding that and report back.
Unscrambler of Eggs
he/him
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Oct 24, 2025 4:23 pm

brundage wrote:It's my understanding that "rootwait" applies to the first stage of boot, while the kernel is waiting for its initial root device, which it gets. I'll try adding that and report back.
rootwait is useless when used with most initramfs because the kernel has a "root" in the initramfs.

The default of dracut is rd.retry=180 (seconds). Meaning dracut will wait for a root device to come online within 3 minutes before dropping to a shell and reporting an issue.
There is also these options to consider:

Code: Select all

       rd.driver.pre=<drivername>[,<drivername>,...]
           force loading kernel module <drivername>. This parameter can be specified multiple times.

       rd.driver.post=<drivername>[,<drivername>,...]
           force loading kernel module <drivername> after all automatic loading modules have been loaded. This parameter can be specified multiple
           times.
See also man dracut.cmdline for what dracut can do on startup with kernel options.
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Oct 24, 2025 4:56 pm

grknight wrote:
brundage wrote:It's my understanding that "rootwait" applies to the first stage of boot, while the kernel is waiting for its initial root device, which it gets. I'll try adding that and report back.
rootwait is useless when used with most initramfs [...]
Yes, it is useless and only necessary if a kernel without an initramfs is used (so kernel does the mounting of the root paritition instead the init of the initramfs). :oops:
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
brundage
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Thu Dec 02, 2004 6:38 am

  • Quote

Post by brundage » Fri Oct 24, 2025 5:01 pm

grknight wrote:
brundage wrote:It's my understanding that "rootwait" applies to the first stage of boot, while the kernel is waiting for its initial root device, which it gets. I'll try adding that and report back.
rootwait is useless when used with most initramfs because the kernel has a "root" in the initramfs.

The default of dracut is rd.retry=180 (seconds). Meaning dracut will wait for a root device to come online within 3 minutes before dropping to a shell and reporting an issue.
This is consistent with my experience.
grknight wrote:There is also these options to consider:

Code: Select all

       rd.driver.pre=<drivername>[,<drivername>,...]
           force loading kernel module <drivername>. This parameter can be specified multiple times.

       rd.driver.post=<drivername>[,<drivername>,...]
           force loading kernel module <drivername> after all automatic loading modules have been loaded. This parameter can be specified multiple
           times.
See also man dracut.cmdline for what dracut can do on startup with kernel options.
Dracut builds the image with the necessary module in rd.driver.pre.

Code: Select all

dracut[D]: dracut cmdline:
dracut[D]: rd.driver.pre=sdhci_pci
dracut[D]: root=UUID=2c6e265d-827f-4419-9d9a-5bc3c50648b9 rootfstype=xfs rootflags=rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,noquota
Yet it does not load. I'll see if changing it to post does something.
Unscrambler of Eggs
he/him
Top
Post Reply

8 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

 

 

magic