Forums

Skip to content

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

cannot get a working kernel build

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
mark4
Apprentice
Apprentice
Posts: 219
Joined: Sat Feb 26, 2011 2:34 pm

cannot get a working kernel build

  • Quote

Post by mark4 » Wed Jan 28, 2026 1:33 am

well sort of can but... weird stuff

Just built a 6.18.7 kernel from gentoo sources and at boot it gets as far as loading initramfs and I get no further console output. If however I proceed to type in my / partitions decryption key my drive led starts to flash as if loading... still no console output at all. When the flashing stops and I type in my login I again see some flashy blinky and startx launches X.

However, nvidia-drivers does not seem to be working properly because nvidia-settings has almost nothing in it, there is tearing when I move windows suggesting I am software rendering and glxgears gives me a whopping 100 170 FPS.

my kernel config which was configured by following https://wiki.gentoo.org/wiki/User:Pieti ... ent_Kernel but I probably shafu'd something in there

http://dpaste.com/G435D6JV8
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: cannot get a working kernel build

  • Quote

Post by pietinger » Wed Jan 28, 2026 1:02 pm

mark4 wrote:my kernel config which was configured by following https://wiki.gentoo.org/wiki/User:Pieti ... ent_Kernel but I probably shafu'd something in there
... not quite ...

Code: Select all

# CONFIG_DRM_I915 is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
... also ... NVIDIA ... :evil: ... with every new nvidia driver version there are new kernel settings necessary ... sometimes something must be enabled ... sometimes the same must be disabled ... try to disable this

Code: Select all

CONFIG_SYSFB_SIMPLEFB=y
it it off by default ... and can make big problems ... maybe your nvdia driver does not need it (I am also unsure if the description in our NVIDIA Wiki article is correct for this parameter ... I dont know ... it its NVIDIA :evil: )

(all other options for framebuffer driver and console are correct)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
mark4
Apprentice
Apprentice
Posts: 219
Joined: Sat Feb 26, 2011 2:34 pm

Re: cannot get a working kernel build

  • Quote

Post by mark4 » Wed Jan 28, 2026 3:32 pm

pietinger wrote:
mark4 wrote:my kernel config which was configured by following https://wiki.gentoo.org/wiki/User:Pieti ... ent_Kernel but I probably shafu'd something in there
... not quite ...

Code: Select all

# CONFIG_DRM_I915 is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
... also ... NVIDIA ... :evil: ... with every new nvidia driver version there are new kernel settings necessary ... sometimes something must be enabled ... sometimes the same must be disabled ... try to disable this

Code: Select all

CONFIG_SYSFB_SIMPLEFB=y
it it off by default ... and can make big problems ... maybe your nvdia driver does not need it (I am also unsure if the description in our NVIDIA Wiki article is correct for this parameter ... I dont know ... it its NVIDIA :evil: )

(all other options for framebuffer driver and console are correct)
I cant remember what I did but i got output working on the fb during boot, im not 100% sure i need the intel stuff though because my laptop bios allows me to select between integrated only, discrete only or hybrid and I have it set to discrete only. compiling the intel stuff in might still be a good idea if later I decide I want to switch to using that only... I change my mind a lot :)

As it stands right now my startx takes about 10 seconds before I get anything on display and when my user attempts to run nvidia-settings it tells me that the nvidia drivers are not loaded. However, if I su to root i CAN launch nvidia-drivers and once root has done so so can my user. very weird.

< edit >

I stated the above incorrectly, user can run nvidia-settings its just that theres nothing in there at all, no gpu0 etc. That all becomes active once root runs nvidia-settings.

< /edit >
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: cannot get a working kernel build

  • Quote

Post by pietinger » Thu Jan 29, 2026 10:57 am

mark4 wrote:I cant remember what I did but i got output working on the fb during boot, [...]
:lol:
mark4 wrote:[...] im not 100% sure i need the intel stuff though because my laptop bios allows me to select between integrated only, discrete only or hybrid and I have it set to discrete only. [...]
The reason I mentioned it was: Some nvidia-drivers (in the past; today?) needed some helper-options in the kernel ... but ... these options are not selectable ... you can get it only when selecting i915 (or others like amdgpu). So, in the past there was the "trick" to enable another drm to get the needed helper-options for nvidia. Please dont ask me about the current state ... I am sorry, I cannot help with nvidia further. (you see that our LiveCD uses Nouveau ... ;-) )
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3530
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Thu Jan 29, 2026 11:12 am

Does gentoo-kernel-bin work? If it does, try gentoo-kernel with savedconfig use enabled and gradually strip parts of the configuration and don't touch sections you don't understand. Have backups of the config on every step. After you reduce enough (by your judgement) of the kernel, try building it yourself. If you manage to produce working kernel, now you can drop gentoo-kernel and shave off configuration manually. Still, keep backups of the config on every step.

Best Regards,
Georgi
Top
mark4
Apprentice
Apprentice
Posts: 219
Joined: Sat Feb 26, 2011 2:34 pm

  • Quote

Post by mark4 » Thu Jan 29, 2026 3:43 pm

logrusx wrote:Does gentoo-kernel-bin work? If it does, try gentoo-kernel with savedconfig use enabled and gradually strip parts of the configuration and don't touch sections you don't understand. Have backups of the config on every step. After you reduce enough (by your judgement) of the kernel, try building it yourself. If you manage to produce working kernel, now you can drop gentoo-kernel and shave off configuration manually. Still, keep backups of the config on every step.

Best Regards,
Georgi
I do not believe the gentoo kernel bin will work because my / partition is LUKS encrypted but I am not using LVM at all.

Things are very weird right now, I cannot tell if I have a serious hardware problem or if the drivers are just not working for me. I do have video but if i play minecraft i get 2 frames per second and nvidia-settings is almost completely blank until i run it as root at least once. After running it as root the user can also run it but the video settings tab shows absolutely no information what so ever and the GPU-0 tab shows GPU utilization locked to 0%.

This morning when booting the machine booted straight into windows so I booted the system rescue, unlocked / which is on the same drive as windows, chrooted in, mounted /boot and cd'd to it and ran grub-install --efi-directory=EFI /dev/nvme1n1p1 and I got my grub menu back on reboot. I have seen grub become uninstalled at power down before so this was an easy fix but very worrying that it is happening.

I do have a question though my two nvme drives are nvme0n1 and nvme1n1 and they flip flop which is which so I have to do lsblk to see where drive 0 is. WHY???? whiskey tango lol!
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Jan 29, 2026 4:19 pm

Device discovery order is non-deterministic. You should not rely on any particular drive being a particular ID. Instead, use drive attributes, partition attributes, or filesystem attributes to identify the target of interest.
Top
mark4
Apprentice
Apprentice
Posts: 219
Joined: Sat Feb 26, 2011 2:34 pm

  • Quote

Post by mark4 » Thu Jan 29, 2026 5:43 pm

[ 19.880444] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-4
[ 19.894519] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-4
[ 19.901327] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
[ 19.903771] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
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