Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[Solved] Failed to UEFI Dual boot w/ Windows. Kernel panic.

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

[Solved] Failed to UEFI Dual boot w/ Windows. Kernel panic.

  • Quote

Post by Fitap » Sun Aug 28, 2022 10:55 pm

Hi,

I did read the wiki of how to dual boot on gentoo and this time result me very hard to achieve this goal. Getting kernel panic.

I have installed with this method, 3 diferent boxes sucessfully. One more time I'm ussing a ssd nvme like storage and I not have initramfs.

Here you are the entire .config file.

Any of you can give a hand ?


Regards.
Last edited by Fitap on Mon Aug 29, 2022 2:05 pm, edited 1 time in total.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Aug 28, 2022 11:59 pm

I found this in your config:

Code: Select all

CONFIG_X86_INTEL_LPSS=y
So your machine should be an Intel Notebook.

Code: Select all

CONFIG_EFI_PARTITION=y
CONFIG_BLK_DEV=y
CONFIG_NVME_CORE=y
CONFIG_BLK_DEV_NVME=y
CONFIG_SCSI_MOD=y
CONFIG_SCSI_COMMON=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_SATA_AHCI=y
CONFIG_EXT4_FS=y
You have all needed modules for booting from a NVMe with ext4 compiled static into your kernel - good.

Code: Select all

CONFIG_SGI_PARTITION=y
CONFIG_ULTRIX_PARTITION=y
Do you really use this ... ? ;-)

This tells me your root partition is partition nr. 7 of your first NVMe:

Code: Select all

CONFIG_CMDLINE="root=/dev/nvme0n1p7 rootfstype=ext4 rootdelay=10 raid=noautodetect"
CONFIG_CMDLINE_OVERRIDE=y
and you dont accept any further command line parameters (from UEFI).

So, if partition nr.7 is really your root partition, then I can see no mistake and we really need the complete error message of kernel panic !

----

All following is for later (=this is not the reason for kernel panic):
Enable this - You will need it:

Code: Select all

# CONFIG_CHECKPOINT_RESTORE is not set
and one of these:
# CONFIG_PINCTRL_BAYTRAIL is not set
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_LYNXPOINT is not set
# CONFIG_PINCTRL_ALDERLAKE is not set
# CONFIG_PINCTRL_BROXTON is not set
# CONFIG_PINCTRL_CANNONLAKE is not set
# CONFIG_PINCTRL_CEDARFORK is not set
# CONFIG_PINCTRL_DENVERTON is not set
# CONFIG_PINCTRL_ELKHARTLAKE is not set
# CONFIG_PINCTRL_EMMITSBURG is not set
# CONFIG_PINCTRL_GEMINILAKE is not set
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not set
# CONFIG_PINCTRL_LAKEFIELD is not set
# CONFIG_PINCTRL_LEWISBURG is not set
# CONFIG_PINCTRL_SUNRISEPOINT is not set
# CONFIG_PINCTRL_TIGERLAKE is not set
You should also configure a microcode update (you have not):

Code: Select all

CONFIG_EXTRA_FIRMWARE=""
Top
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

  • Quote

Post by Fitap » Mon Aug 29, 2022 12:26 am

Thanks for quicly response pietinger.

You are rigth, This gear is a Victus i5 from HP.
So, if partition nr.7 is really your root partition
Yes, the nr.7 is the root partition of my first (and unique) NVMe.

All following is for later (=this is not the reason for kernel panic):
Enable this - You will need it:
Thanks for the advice, I will do.
I can see no mistake and we really need the complete error message of kernel panic !
I dont know if is possible record boot screen from linux. Here you are a pic instead.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Aug 29, 2022 12:43 am

A pic is okay and it says your notebook cant find this device.
-6 ENXIO
No such device or address. The system tried to use the device represented by a file you specified, and it couldn't find the device. This can mean that the device file was installed incorrectly, or that the physical device is missing or not correctly attached to the computer.
What happens if you boot with a live CD and ask "blkid". Do you see something like this ?

Code: Select all

/dev/nvme0n1p7: UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" BLOCK_SIZE="4096" TYPE="ext4" [...]
Top
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

  • Quote

Post by Fitap » Mon Aug 29, 2022 12:54 am

blkid output from a live CD.

Code: Select all

/dev/nvme0n1p7: UUID="dafae8d5-0adb-4b57-bbc3-bb31d20e4412" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d7e84ce3-f73c-d84b-917b-20ae73b0bae6"
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Aug 29, 2022 1:12 am

Ok. Please describe how you installed your Gentoo on this notebook - especially how you made your kernel config (I hope you didnt edit your .config directly).
Top
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

  • Quote

Post by Fitap » Mon Aug 29, 2022 1:48 am

I never ever created a kernel by editing it manually. I always did it with the ncurses make menuconfig application.
I installed gentoo on this computer following the wiki handbook, as you know, partitioning, downloading the stage tarball. That's how I did with the other computers that are with me. This is quite rare for me. I have never been so stuck in an installation before.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Aug 29, 2022 2:05 am

Please change your command line paramters to:

Code: Select all

CONFIG_CMDLINE="root=/dev/nvme0n1p7 nodmraid"
(As you have experience you know how to chroot into your installation and change kernel config and install kernel into /boot/EFI/...)
Does your kernel find its root partition now ?

Problem is: Your kernel config looks good and it is all in it needed for finding its root partition IF nr. 7 is a root partition; At the moment I can only imagine that your nvme switches off within 10 seconds; therefore I want to remove this insane waiting parm (you would only need for usb drives or mmc drives).
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Aug 29, 2022 11:40 am

Fitap,

Please show us the output of

Code: Select all

lspci -nnk
The exact output of the panic message would be good too.
It probably ends with
...unknown-block(X,Y)
If that true, the values of X and Y point to the problem.

e.g. (0,0) the kernel cannot find the block device at all.
(259,7) the kernel can find /dev/nvme0n1p7 but not read what it finds there.

Other values point to other things.

Your up to date kernel .config would be good' and the output of

Code: Select all

ls -l /boot 
Regards,

NeddySeagoon

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

  • Quote

Post by pietinger » Mon Aug 29, 2022 11:59 am

Neddy,

in the picture of his screen I could see it was: "unknown-block(0,0)". Because his kernel config looks good I thought it must be a problem with command line parms ("nodmraid" I recommended only to be save). Maybe there is a problem with BIOS settings too. I am just waiting for his report.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Aug 29, 2022 12:47 pm

pietinger,

I would not rule out the kernel .config being correct but the kernel derived from that .config not being booted.
grub does not always make the newest kernel the default.

Missing the correct

Code: Select all

CONFIG_PINCTRL_
option, if its needed, means lots of things never power up.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

  • Quote

Post by Fitap » Mon Aug 29, 2022 1:09 pm

pietinger wrote:

Code: Select all

CONFIG_CMDLINE="root=/dev/nvme0n1p7 nodmraid"
Still with same issuse.
NeddySeagoon wrote:

Code: Select all

lspci -nnk
Hi Neddy,

Code: Select all

0000:00:00.0 Host bridge [0600]: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers [8086:9a26] (rev 05)
	Subsystem: Hewlett-Packard Company 11th Gen Core Processor Host Bridge/DRAM Registers [103c:88f9]
lspci: Unable to load libkmod resources: error -2
0000:00:01.0 PCI bridge [0604]: Intel Corporation 11th Gen Core Processor PCIe Controller #1 [8086:9a01] (rev 05)
	Subsystem: Hewlett-Packard Company 11th Gen Core Processor PCIe Controller [103c:88f9]
	Kernel driver in use: pcieport
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a68] (rev 01)
	DeviceName:  Onboard IGD
	Subsystem: Hewlett-Packard Company TigerLake-H GT1 [UHD Graphics] [103c:88f9]
	Kernel driver in use: i915
0000:00:08.0 System peripheral [0880]: Intel Corporation GNA Scoring Accelerator module [8086:9a11] (rev 05)
	Subsystem: Hewlett-Packard Company GNA Scoring Accelerator module [103c:88f9]
0000:00:0d.0 USB controller [0c03]: Intel Corporation Tiger Lake-H Thunderbolt 4 USB Controller [8086:9a17] (rev 05)
	Subsystem: Hewlett-Packard Company Tiger Lake-H Thunderbolt 4 USB Controller [103c:88f9]
	Kernel driver in use: xhci_hcd
0000:00:0e.0 RAID bus controller [0104]: Intel Corporation Volume Management Device NVMe RAID Controller [8086:9a0b]
	Subsystem: Intel Corporation Volume Management Device NVMe RAID Controller [8086:0000]
	Kernel driver in use: vmd
0000:00:14.0 USB controller [0c03]: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller [8086:43ed] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller [103c:88f9]
	Kernel driver in use: xhci_hcd
0000:00:14.2 RAM memory [0500]: Intel Corporation Tiger Lake-H Shared SRAM [8086:43ef] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H Shared SRAM [103c:88f9]
0000:00:14.3 Network controller [0280]: Intel Corporation Tiger Lake PCH CNVi WiFi [8086:43f0] (rev 11)
	DeviceName: Intel Wireless LAN + BT
	Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz [8086:0074]
	Kernel driver in use: iwlwifi
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Tiger Lake-H Serial IO I2C Controller #0 [8086:43e8] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H Serial IO I2C Controller [103c:88f9]
	Kernel driver in use: intel-lpss
0000:00:16.0 Communication controller [0780]: Intel Corporation Tiger Lake-H Management Engine Interface [8086:43e0] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H Management Engine Interface [103c:88f9]
	Kernel driver in use: mei_me
0000:00:1c.0 PCI bridge [0604]: Intel Corporation Tiger Lake-H PCI Express Root Port #5 [8086:43bc] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H PCI Express Root Port [103c:88f9]
	Kernel driver in use: pcieport
0000:00:1d.0 System peripheral [0880]: Intel Corporation Device [8086:09ab]
	Subsystem: Hewlett-Packard Company Device [103c:88f9]
0000:00:1d.7 PCI bridge [0604]: Intel Corporation Device [8086:43b7] (rev 11)
	Subsystem: Hewlett-Packard Company Device [103c:88f9]
	Kernel driver in use: pcieport
0000:00:1f.0 ISA bridge [0601]: Intel Corporation Tiger Lake-H LPC/eSPI Controller [8086:438b] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H LPC/eSPI Controller [103c:88f9]
0000:00:1f.3 Multimedia audio controller [0401]: Intel Corporation Tiger Lake-H HD Audio Controller [8086:43c8] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H HD Audio Controller [103c:88f9]
	Kernel driver in use: sof-audio-pci-intel-tgl
0000:00:1f.4 SMBus [0c05]: Intel Corporation Tiger Lake-H SMBus Controller [8086:43a3] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H SMBus Controller [103c:88f9]
	Kernel driver in use: i801_smbus
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger Lake-H SPI Controller [8086:43a4] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H SPI Controller [103c:88f9]
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] [10de:25a2] (rev a1)
	DeviceName: NVIDIA Graphics Device
	Subsystem: Hewlett-Packard Company GA107M [GeForce RTX 3050 Mobile] [103c:88f9]
	Kernel driver in use: nouveau
0000:01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:2291] (rev a1)
	Subsystem: Hewlett-Packard Company Device [103c:88f9]
	Kernel driver in use: snd_hda_intel
0000:02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 16)
	DeviceName: Realtek PCIe GBE Family Controller
	Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:88f9]
	Kernel driver in use: r8169
0000:03:00.0 SD Host controller [0805]: Genesys Logic, Inc GL9750 SD Host Controller [17a0:9750] (rev 01)
	DeviceName: Genesys Logic PCIE CardReader
	Subsystem: Hewlett-Packard Company GL9750 SD Host Controller [103c:88f9]
	Kernel driver in use: sdhci-pci
10000:e0:1d.0 PCI bridge [0604]: Intel Corporation Tiger Lake-H PCI Express Root Port #9 [8086:43b0] (rev 11)
	Subsystem: Hewlett-Packard Company Tiger Lake-H PCI Express Root Port [103c:88f9]
	Kernel driver in use: pcieport
10000:e1:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. Device [2646:500f] (rev 03)
	Subsystem: Kingston Technology Company, Inc. Device [2646:500f]
	Kernel driver in use: nvme
NeddySeagoon wrote:

Code: Select all

ls -l /boot 

Code: Select all

-rw-r--r-- 1 root root   145546 ago 28 22:40 config-5.15.59-gentoo
drwx------ 2 root root    12288 ago 28 20:59 lost+found
-rw-r--r-- 1 root root  5882257 ago 28 22:40 System.map-5.15.59-gentoo
-rw-r--r-- 1 root root 11553376 ago 28 22:40 vmlinuz-5.15.59-gentoo
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Aug 29, 2022 1:12 pm

NeddySeagoon wrote:[...] but the kernel derived from that .config not being booted.
Yes, this could be possible.
NeddySeagoon wrote:grub does not always make the newest kernel the default.
He is using a stub kernel and doing UEFI boot (=without grub).
NeddySeagoon wrote:Missing the correct

Code: Select all

CONFIG_PINCTRL_
option, if its needed, means lots of things never power up.
This is true for some devices (like touchpad connected via i2c - we all know ;-) ), but not for NVMe.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Aug 29, 2022 1:17 pm

Oh no ... I think I have found it. This must be also compiled in static and NOT as module:

Code: Select all

CONFIG_VMD=m
:oops:
Top
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

  • Quote

Post by Fitap » Mon Aug 29, 2022 2:04 pm

pietinger wrote:Oh no ... I think I have found it. This must be also compiled in static and NOT as module:

Code: Select all

CONFIG_VMD=m
:oops:
Yes !

Works with no other parameter in the kernel than the one required

Code: Select all

CONFIG_CMDLINE="root=/dev/nvme0n1p7 rootfstype=ext4"
Thanks guys.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Installing Gentoo”

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