Forums

Skip to content

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

Booting into updated kernel causes drm panic

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
22 posts • Page 1 of 1
Author
Message
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

Booting into updated kernel causes drm panic

  • Quote

Post by Stormtroppy » Sun Mar 15, 2026 3:29 pm

Whenever I boot into the newest kernel in grub it doesn't boot (It hangs on a part showing all the devices)

Reading /var/log/messages seems makes it look like it's a kernel panic:

Code: Select all

Mar 15 09:28:10 gentoo-btw kernel: i915 0000:00:02.0: [drm] Registered 3 planes
with drm panic
I can provide the .config for both kernels and anything else that might be part of the problem.
I like Wayland :D
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Mar 15, 2026 7:36 pm

Stormtroppy,

Welcome to Gentoo.

Use wgetpaste to put both kernel .config files onto a pastebin site.
the dmesg from the failed boot would be good too but if the kernel has paniced, you can't get that.
Your

Code: Select all

 lspci -nnk
output will be good, that will fit in a post if you like. It tells us all about your PCIe hardware.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Mon Mar 16, 2026 2:12 am

Here's 6.12 config (the working one): https://0x0.st/PL3R.txt

Here's 6.18 config (The one that kernel panics): https://0x0.st/PL37.txt

Here's the

Code: Select all

lspci -nnk
: https://0x0.st/PL3F.txt

I use intel arc with a pcie ethernet port. I don't use anything else in the pcie
I like Wayland :D
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Mar 16, 2026 12:56 pm

Stormtroppy wrote:Here's 6.12 config (the working one): https://0x0.st/PL3R.txt

[...]

Here's the

Code: Select all

lspci -nnk
: https://0x0.st/PL3F.txt
I dont believe that the 6.12 config is used ... because in the output of lspci I see that the XE driver was loaded:

Code: Select all

03:00.0 VGA compatible controller [0300]: Intel Corporation DG2 [Arc A750] [8086:56a1] (rev 08)
	Subsystem: Device [172f:3935]
	Kernel driver in use: i915
	Kernel modules: i915, xe
but in the 6.12 config you gave us there is no XE enabled:

Code: Select all

# CONFIG_DRM_XE is not set
So, you are using an other kernel ... :lol:

Now to you problem: You miss many important settings ... if you want to boot from a M.2 SSD then you need this enabled:

Code: Select all

# CONFIG_BLK_DEV_NVME is not set
to get it here:

Code: Select all

07:00.0 Non-Volatile memory controller [0108]: Micron/Crucial Technology P3 Plus NVMe PCIe SSD (DRAM-less) [c0a9:5421] (rev 01)
	Subsystem: Micron/Crucial Technology Device [c0a9:5021]
	Kernel driver in use: nvme
	Kernel modules: nvme
You also miss other important settings, for example:

Code: Select all

# CONFIG_X86_X2APIC is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_NATIVE_CPU is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
# CONFIG_IRQ_REMAP is not set
Dont enable this:

Code: Select all

CONFIG_DRM_SIMPLEDRM=y
This will not work when you enable i915 static (=as built-in =y):

Code: Select all

CONFIG_EXTRA_FIRMWARE=""
CONFIG_DRM_I915=y
Please read this chapter (better: the entire article; attention: this is a deep link):
https://wiki.gentoo.org/wiki/User:Pieti ... s_Firmware
and then read and do:
1.) https://wiki.gentoo.org/wiki/User:Pieti ... nvironment
2.) number 2 of: https://wiki.gentoo.org/wiki/User:Pieti ... _you_start
3.) https://wiki.gentoo.org/wiki/User:Pieti ... rsion_6.18 (this gives you all the important settings mentioned above)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Mon Mar 16, 2026 11:24 pm

This is so weird... As far as I know, I'm booting with the linux 6.12 option in grub and that's the only one working. Plus the only kernel installed is the source one. As well, I could have sworn I transferred the config from 6.12 to 6.18. In any case, I guess I'll just try to manually configure it using the links you provided.

Also, forgot to add, but I enabled simpledrm since I was having issues on it stuck on booting initramfs, but I don't think that's what fixed it, as it wasn't the only thing I enabled when I reinstalled the kernel with it on
I like Wayland :D
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Tue Mar 17, 2026 12:52 am

And now the kernel fails to compile :(

Code: Select all

  CC      fs/xfs/scrub/repair.o
  CC      fs/xfs/scrub/rmap_repair.o
  CC      fs/xfs/scrub/symlink_repair.o
  CC      fs/xfs/scrub/tempfile.o
  CC      fs/xfs/scrub/rtbitmap_repair.o
  CC      fs/xfs/scrub/rtrefcount_repair.o
  CC      fs/xfs/scrub/rtrmap_repair.o
  CC      fs/xfs/scrub/rtsummary_repair.o
  CC      fs/xfs/scrub/quota_repair.o
  CC      fs/xfs/scrub/quotacheck_repair.o
  AR      fs/xfs/built-in.a
  AR      fs/built-in.a
make[1]: *** [/usr/src/linux-6.18.12-gentoo/Makefile:2011: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
It seems like this error has more then one meaning, but I have no clue what it could be. I tried reinstall linux-firmware to see if that would help but it didn't
I like Wayland :D
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Mar 17, 2026 11:39 am

Stormtroppy,

A few things.

You have a lot more on your PCIe bus than the things you plug in.
manufactuers use it without providing connectors too.
Not all PCIe slots look the same either. NVMe is 4 lane PCIe.

The kernel that works may or may not be the version you say it is.
However, it was not produced from the .config file you posted.
Try

Code: Select all

uname -a
That tells you about the running kenel.
The date and time are the build date and time.
The timestamp on the .config file that produced that kernel must be before the build timestamp.

Your kernel build error is not displayed.
You ran make -jX to make best use of the CPU, so the error has scrolled off the screen.
make, or make -j1 will force the build to stop at the first error.
Then you get to see it.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Tue Mar 17, 2026 12:38 pm

Stormtroppy,

I strongly suspect that you're not actually booting your manually configured 6.12 kernel, but rather a Gentoo distribution kernel (sys-kernel/gentoo-kernel or sys-kernel/gentoo-kernel-bin). You can then read the actual configuration directly from the running kernel (because our dist-kernels have CONFIG_IKCONFIG_PROC enabled) using:

Code: Select all

zless /proc/config.gz
or you can redirect it to a file:

Code: Select all

zcat /proc/config.gz > myrealkernelconfig
Are you using GRUB as your boot manager? If so, check the file /boot/grub/grub.cfg. There you'll find a list of kernels that GRUB can boot (it starts with "10"). Then check the /boot directory to see what's "lying around" there. Maybe you forgot to run grub-mkconfig at some point. Also, you should know that GRUB sorts things in a strange way: It’s possible that the gentoo-dist-kernel-6.12 is listed first and your manually configured 6.12 kernel isn’t shown as the first option (which would mean you’ve been booting the dist-kernel the whole time).

What helps us all is the output of "dmesg" after you've booted the (bootable) kernel. If you need help with your new 6.18 kernel, we'll of course also need the .config file. An "emerge --info" would also be helpful ->
https://wiki.gentoo.org/wiki/User:Pieti ... rge_--info
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Tue Mar 17, 2026 9:47 pm

Here's dmesg: https://bpa.st/NTKRK

Here's current kernel config: https://0x0.st/P9ZU.txt

Here's emerge --info: https://0x0.st/P9ZG.txt

Reading it the grub.cfg there's 6.12.58 and 6.12.18-old
I like Wayland :D
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Mar 18, 2026 12:05 am

Stormtroppy wrote:Here's current kernel config: [...]
Thank you ... it is the default configuration for our stable Gentoo distribution kernel version 6.18.8 ... I already know it :lol:
(The hint about /proc/config.gz was for you ;-) )
Stormtroppy wrote:[...] Reading it the grub.cfg there's 6.12.58 and 6.12.18-old
If you boot 6.18.8 then there is surely more in your grub.cfg ... if you need help here, please provide your grub.cfg (via wgetpaste) ... and maybe also the output of:

Code: Select all

# ls -al /boot
# efibootmgr
BTW:

1. Maybe emerge the package net-wireless/wireless-regdb (see in your syslog: Direct firmware load for regulatory.db failed with error -2)

2. Maybe give your Intel GPU more memory in your BIOS settings (if the BIOS allows the configuration).

----

Internal note (because the pastebin site deletes after some time):

Code: Select all

System uname: Linux-6.18.8-gentoo-dist-x86_64-Intel-R-_Core-TM-_i5-9600K_CPU_@_3.70GHz-with-glibc2.42

[    0.000000] Linux version 6.18.8-gentoo-dist (root@devbox.amd64.dev.gentoo.org) (x86_64-pc-linux-gnu-gcc (Gentoo 15.2.1_p20251122 p3) 15.2.1 20251122, GNU ld (Gentoo 2.45.1 p1) 2.45.1) #1 SMP PREEMPT_DYNAMIC Fri Jan 30 14:04:46 -00 2026

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.18.8-gentoo-dist root=UUID=5b46ba17-9698-4307-a4c4-4f94c008ff00 ro ipv6.disable=1

[    0.000000] DMI: Micro-Star International Co., Ltd. MS-7B98/Z390-A PRO (MS-7B98), BIOS 1.E0 10/21/2022

[    0.191749] smpboot: CPU0: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (family: 0x6, model: 0x9e, stepping: 0xc)

[    1.249939] dracut: dracut-108

[    1.595319]  nvme0n1: p1 p2 p3 p4

[    1.867787] dracut: Mounted root filesystem /dev/nvme0n1p2

[    3.588930] r8169 0000:06:00.0 enp6s0: renamed from eth0

[    3.950006] i915 0000:00:02.0: enabling device (0000 -> 0003)
[    3.950162] i915 0000:00:02.0: [drm] Found coffeelake (device ID 3e98) integrated display version 9.00 stepping N/A

[    3.955988] Loading firmware: i915/kbl_dmc_ver1_04.bin
[    3.957682] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    3.958674] i915 0000:00:02.0: [drm] Registered 3 planes with drm panic
[    3.958676] [drm] Initialized i915 1.6.0 for 0000:00:02.0 on minor 0
[    3.996493] i915 0000:00:02.0: [drm] fb1: i915drmfb frame buffer device
[    4.014169] i915 0000:03:00.0: [drm] Found dg2/g10 (device ID 56a1) discrete display version 13.00 stepping C0
[    4.015340] Console: switching to colour dummy device 80x25
[    4.015365] i915 0000:03:00.0: vgaarb: deactivate vga console
[    4.015376] i915 0000:03:00.0: BAR 0 [mem 0x80000000-0x80ffffff 64bit]: releasing
[    4.015379] i915 0000:03:00.0: BAR 2 [mem 0x6000000000-0x600fffffff 64bit pref]: releasing

[    4.015447] i915 0000:03:00.0: BAR 2 [mem size 0x200000000 64bit pref]: can't assign; no space
[    4.015448] i915 0000:03:00.0: BAR 2 [mem size 0x200000000 64bit pref]: failed to assign
[    4.015450] i915 0000:03:00.0: BAR 0 [mem 0x80000000-0x80ffffff 64bit]: assigned
[    4.015478] i915 0000:03:00.0: BAR 0 [mem 0x80000000-0x80ffffff 64bit]: releasing
[    4.015480] i915 0000:03:00.0: BAR 2 [mem size 0x200000000 64bit pref]: can't assign; no space
[    4.015481] i915 0000:03:00.0: BAR 2 [mem size 0x200000000 64bit pref]: failed to assign
[    4.015482] i915 0000:03:00.0: BAR 0 [mem 0x80000000-0x80ffffff 64bit]: assigned
[
[    4.015545] i915 0000:03:00.0: [drm] Failed to resize BAR2 to 8192M (-ENOSPC)
[    4.015548] i915 0000:03:00.0: BAR 2 [mem 0x6000000000-0x600fffffff 64bit pref]: assigned
[    4.015566] i915 0000:03:00.0: [drm] Using a reduced BAR size of 256MiB. Consider enabling 'Resizable BAR' or similar, if available in the BIOS.

[    4.047377] Loading firmware: i915/dg2_dmc_ver2_08.bin
[    4.051631] i915 0000:03:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_08.bin (v2.8)
[    4.066469] Loading firmware: i915/dg2_guc_70.bin
[    4.069081] Loading firmware: i915/dg2_huc_gsc.bin
[    4.082862] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_fence_ops [i915])
[    4.088330] i915 0000:03:00.0: [drm] GT0: GuC firmware i915/dg2_guc_70.bin version 70.53.0
[    4.088335] i915 0000:03:00.0: [drm] GT0: HuC firmware i915/dg2_huc_gsc.bin version 7.10.16
[    4.100048] i915 0000:03:00.0: [drm] GT0: GUC: submission enabled
[    4.100051] i915 0000:03:00.0: [drm] GT0: GUC: SLPC enabled
[    4.101520] i915 0000:03:00.0: [drm] GT0: GUC: RC enabled

[    5.596045] Loading firmware: regulatory.db
[    5.596275] faux_driver regulatory: Direct firmware load for regulatory.db failed with error -2
[    5.596278] cfg80211: failed to load regulatory.db

[    5.621738] Loading firmware: rtl_nic/rtl8168e-2.fw
[    5.623681] RTL8211DN Gigabit Ethernet r8169-0-600:00: attached PHY driver (mii_bus:phy_addr=r8169-0-600:00, irq=MAC)
[    5.903817] r8169 0000:06:00.0 enp6s0: Link is Down
[    8.251353] r8169 0000:06:00.0 enp6s0: Link is Up - 1Gbps/Full - flow control rx/tx
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Wed Mar 18, 2026 12:51 am

I forgot to mention the other kernel I was haviong issues with, but here's grub.cfg: https://0x0.st/P9qg.cfg

Output of ls ls -al /boot: https://bpa.st/WZ3K2

I'll reply once I retry with that firmware (But a wireless firmware? My motherboard doesn't have bluetooth or wifi? I'm just curious as to how that'll help)
I like Wayland :D
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Mar 18, 2026 10:06 am

I suspect there was a misunderstanding from the start. You are only using our Gentoo distribution kernel (package: gentoo-kernel) and not a single manually configured kernel (gentoo-sources) (because both configurations are wrong). You have installed versions 6.12.58, 6.18.8-dist, and 6.18.12 (and all of them are correct configured in grub.cfg). According to what you’ve said, you encounter problems when you try to boot the latest 6.18.12 (which is normal because the config of this kernel is wrong).

Therefore, two important questions:

1. Have you made any modifications to your Gentoo distribution kernels? (As explained here: https://wiki.gentoo.org/wiki/Distributi ... figuration ). If not you are fine.

2. How much RAM does your BIOS allocate to your GPU (i915) from your CPU? (I also have an Intel CPU and a Gigabyte motherboard; there, I can configure it so that my GPU gets 128 MB of RAM exclusively.) You have 32 GB of RAM... so there’s no need to skimp ... ;-)

Here’s what I’d recommend: Forget about version 6.18.12 for now... because... version 6.18.18 is now stable (and is actually the latest 6.18 version at the moment). Install this Gentoo distribution kernel, JUST AS YOU ALWAYS DO... and note EVERY step (also save the output from the Gentoo kernel build).

If you don't use Wi-Fi, you don't need wireless-regdb (you'll just have a "minor flaw" in your system log).

BEFORE you do that, we can help you with your system. For example, you haven’t enabled the "dist-kernel" Use-flag globally... have you enabled it locally? Please provide us with the output of:

Code: Select all

grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage
Please also show us your world file:

Code: Select all

cat /var/lib/portage/world
In the meantime, you could read this:
https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Especially the last chapter:
https://wiki.gentoo.org/wiki/User:Pieti ... ith_Gentoo

If 6.18.18-dist doesn't boot either, we'll need the exact error message.... If necessary, you'll need to take a photo of your screen and send it to us.

If you want then a manually configured kernel (gentoo-sources) ... you have gotten all my links ... 8) ... start from scratch ... ;-)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Wed Mar 18, 2026 8:58 pm

1. I'm using intel arc, so I have 8gb of dedicated vram since it's a dedicated card

2. Here's

Code: Select all

grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage
https://0x0.st/P9_G.txt (dist-kernel doesn't appear anywhere)

3. World file: https://0x0.st/P9Lt.txt
I like Wayland :D
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Mar 18, 2026 11:47 pm

Stormtroppy wrote:1. I'm using intel arc, so I have 8gb of dedicated vram since it's a dedicated card
Yes, you have 8 GB ... but the kernel can only address 256 MB ... maybe you can disable the internal GPU of your CPU (just check your BIOS settings for graphics)?

Code: Select all

[    4.015545] i915 0000:03:00.0: [drm] Failed to resize BAR2 to 8192M (-ENOSPC)
.
[    4.015566] i915 0000:03:00.0: [drm] Using a reduced BAR size of 256MiB. Consider enabling 'Resizable BAR' or similar, if available in the BIOS.
Stormtroppy wrote:2. [...] (dist-kernel doesn't appear anywhere)
You once installed the dist-kernel 6.18.8 on your system. Either using “emerge -1” or you uninstalled the PACKAGE afterward. However, uninstalling a kernel package does NOT mean that the kernel itself is removed (be glad - it’s the only one that can boot :lol: ). Even if you uninstall a gentoo-sources package, a compiled (and installed) kernel remains in /boot. This is your dist-kernel (in /boot):

Code: Select all

-rw-r--r--  1 root root 22395376 Feb 21 09:06 vmlinuz-6.18.8-gentoo-dist
Configured in grub as:

Code: Select all

	menuentry 'Gentoo GNU/Linux, with Linux 6.18.8-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.18.8-gentoo-dist-recovery-5b46ba17-9698-4307-a4c4-4f94c008ff00' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 5b46ba17-9698-4307-a4c4-4f94c008ff00
		echo	'Loading Linux 6.18.8-gentoo-dist ...'
		linux	/boot/vmlinuz-6.18.8-gentoo-dist root=UUID=5b46ba17-9698-4307-a4c4-4f94c008ff00 ro single ipv6.disable=1
		echo	'Loading initial ramdisk ...'
		initrd	/boot/amd-uc.img /boot/initramfs-6.18.8-gentoo-dist.img
	}
(BTW: I like your disabling of IPv6 ... I did the same in my manually configured kernel directly, so I dont need the kernel command line parm.)

And here we can see that this dist-kernel was booted:
1. syslog (dmesg)

Code: Select all

[    0.000000] Linux version 6.18.8-gentoo-dist (root@devbox.amd64.dev.gentoo.org)  [...]
2. emerge --info

Code: Select all

System uname: Linux-6.18.8-gentoo-dist-x86
Stormtroppy wrote:3. World file: https://0x0.st/P9Lt.txt
Yes, there is no dist-kernel ... anymore ... but you must have installed it at some point. :lol:

Code: Select all

sys-kernel/gentoo-sources
sys-kernel/installkernel
sys-kernel/linux-firmware
How's it going with manually configuring your kernel? Have you managed to do it yet?

You probably know that you can now use this 6.18.8 dist-kernel to access all the information listed here (meaning: you don't need to boot the LiveGUI):
https://wiki.gentoo.org/wiki/User:Pieti ... _you_start
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Mar 18, 2026 11:53 pm

If you ask me why I am sure you never had booted your manually configured 6.12 and 6.18 kernel ... in both configuration you have:

Code: Select all

# CONFIG_BLK_DEV_NVME is not set
and the syslog says, your root partition is the 2nd of an NVMe:

Code: Select all

[    1.595319]  nvme0n1: p1 p2 p3 p4

[    1.867787] dracut: Mounted root filesystem /dev/nvme0n1p2
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Thu Mar 19, 2026 1:42 am

Yeah I have a vga cable connected to the integrated... (it was for iommu but I gave up lol wayyy to complicated for me instead of just using wine)

Also I disabled ipv6 cause it doesn't work for me (doesn't help that it sucks)

Anyway,s I think it'd be best if I based the config off the one given by the gentoo kernel (Once I figure out what's going wrong)

Just reran doas make -j1, this is what I got

Code: Select all

  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
make[3]: *** No rule to make target '/var/tmp/portage/sys-kernel/gentoo-kernel-6.18.8/temp/kernel_key.pem', needed by 'certs/signing_key.x509'.  Stop.
make[2]: *** [scripts/Makefile.build:544: certs] Error 2
make[1]: *** [/usr/src/linux-6.18.12-gentoo/Makefile:2011: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
I like Wayland :D
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Thu Mar 19, 2026 2:07 am

Do you try to emerge the dist-kernel with the Use-flags "modules-sign" and/or "secureboot"?

If so, you miss some settings in your make.conf: https://wiki.gentoo.org/wiki/Secure_Boot#USE_flags
Last edited by pietinger on Thu Mar 19, 2026 2:16 am, edited 2 times in total.
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Thu Mar 19, 2026 2:15 am

I don't use secureboot so I don't think so
I like Wayland :D
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Thu Mar 19, 2026 2:16 am

One moment please ... I just see that you are trying to emerge 6.18,8 ... AGAIN ?? (why?)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Mar 19, 2026 1:01 pm

Stormtroppy wrote:Also I disabled ipv6 cause it doesn't work for me (doesn't help that it sucks)
IPv6 support has been usable for years in most places, and disabling it will likely come back to trouble you at some point.
pietinger wrote:One moment please ... I just see that you are trying to emerge 6.18,8 ... AGAIN ?? (why?)
It's worse than that. OP is trying to build 6.18.12, but reuse signing material from a transient build of 6.18.8. This might be the result of reusing part of a .config from the older kernel.
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Thu Mar 19, 2026 3:49 pm

Hu wrote:IPv6 support has been usable for years in most places, and disabling it will likely come back to trouble you at some point. [...]
Yes, IPv4 support will probably be phased out at some point... but my personal assessment is that this won’t happen for another 10 or 15 years. You can read why I don’t like IPv6 here:
https://wiki.gentoo.org/wiki/User:Pieti ... ns_on_IPv6
Hu wrote:[...] It's worse than that. OP is trying to build 6.18.12, but reuse signing material from a transient build of 6.18.8. This might be the result of reusing part of a .config from the older kernel.
After sleeping on it for a night, I’ve come to the conclusion that PO probably got this Gentoo machine from someone else. The "package.use" and "package.mask" files were certainly configured by a Gentoo expert, while the fact that PO didn’t know which kernel he was booting suggests he’s a Gentoo newbie. I’m therefore going to start over from scratch ->

@Stormtroppy,

It’s always helpful if you provide a little more information. That helps both you and your helpers. The first thing you need to know: Leave everything related to the gentoo-dist-kernel alone. If you want a manually configured kernel, DO NOT try to do this by copying and pasting from other kernel .configs. If you get links, read them too. So read (possibly for the first time) this:
https://wiki.gentoo.org/wiki/User:Pieti ... it_.config

Now you should install a second dist-kernel. Log in as root and update the system first:

Code: Select all

$ su -
# emerge --sync
Free up some space in your /boot directory: Delete all old (unusable) kernels == everything EXCEPT *6.18.8* (this is necessary so that grub-mkconfig can generate a shorter grub.cfg later).

Then check if Portage wants install the latest (stable) dist-kernel using:

Code: Select all

# emerge -pvD gentoo-kernel-bin
You should see at least this line:

Code: Select all

[ebuild  N     ] sys-kernel/gentoo-kernel-bin-6.18.18:6.18.18::gentoo  USE="initramfs -debug (-generic-uki) -modules-compress -test -verify-sig" 466.774 KiB
If that's the case, go ahead and do:
1.) Add "dist-kernel" in your make.conf to USE=

Code: Select all

USE="dbus dist-kernel dracut opencl -pulseaudio grub vulkan X -acl -elogind -ipv6 -pipewire -gnome -systemd -wayland -xwayland"
2) Install the missing package:

Code: Select all

# emerge gentoo-kernel-bin intel-microcode
3.) and then do a world-update (with cleaning afterwards):

Code: Select all

# emerge -uUDv @world
# emerge -c
If any errors or issues arise during this process, we need the ENTIRE output (including the command you entered).

After rebooting, you should now be running the latest 6.18.18 distkernel.

If you want a manually configured kernel, go back to my first post in this thread ... ;-) ... please dont mix anything between gentoo-kernel(-bin) and gentoo-sources.
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Stormtroppy
n00b
n00b
Posts: 10
Joined: Sun Mar 15, 2026 2:43 pm

  • Quote

Post by Stormtroppy » Thu Mar 19, 2026 10:09 pm

I’ve come to the conclusion that PO probably got this Gentoo machine from someone else. The "package.use" and "package.mask" files were certainly configured by a Gentoo expert, while the fact that PO didn’t know which kernel he was booting suggests he’s a Gentoo newbie.
Unfortunately this is my computer. I just use emerge --autounmask --autounmask-write for unmasking and custom files if the flags are manual.

It worked :), I'll try to switch to the other one later.
I like Wayland :D
Top
Post Reply

22 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