View previous topic :: View next topic |
Author |
Message |
tackmancer n00b
Joined: 26 Mar 2022 Posts: 2
|
Posted: Sun Mar 27, 2022 12:38 am Post subject: [SOLVED] Stuck at loading linux |
|
|
Hi, this is my first gentoo installation.
my cursor is not blinking, and the boot gets stuck at loading linux
this is my lspsi output:https://bpa.st/N22Q
and this is my kernel config:https://dpaste.com/7M26X5CH6
i have been trying to get it to work, but to no avail
thanks in advance
Last edited by tackmancer on Sun Mar 27, 2022 11:16 pm; edited 1 time in total |
|
Back to top |
|
|
Ghett_Klapson n00b
Joined: 25 Oct 2021 Posts: 38
|
Posted: Sun Mar 27, 2022 9:43 am Post subject: |
|
|
I personally use "genkernel all" to get system up and running fast. It'll take a while with all settings enabled, however you can set it to save the config file as well as prompt with nconfig or menuconfig before compile for customization. It'll also make an initramfs for you which a lack of could be part of the problem.
Once you have a system up, then trial-error + search things and start disabling things that you know you don't need, such as Intel CPU settings on AMD hardware, GPU drivers you don't have hardware for, removing exotic modules, etc.
Check out these links if you haven't:
https://wiki.gentoo.org/wiki/Genkernel
https://wiki.gentoo.org/wiki/Kernel/Gentoo_Kernel_Configuration_Guide
https://wiki.gentoo.org/wiki/Kernel/Configuration
Good luck! |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4236 Location: Bavaria
|
Posted: Sun Mar 27, 2022 10:34 am Post subject: |
|
|
tackmancer,
Welcome to Gentoo Forums !
Try to enable these both:
Code: | # CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set |
(and let SIMPLE_FB enabled as it is)
and disable this:
Code: | CONFIG_FB_NVIDIA=y
CONFIG_FB_NVIDIA_BACKLIGHT=y |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Mar 27, 2022 10:50 am Post subject: |
|
|
tackmancer,
Welcome to Gentoo.
There are automated ways to build your kernel as well as a recently added binary kernel.
To possible to come back to building four own kernel later if you want to.
If you want to jump in at the deep end, we won't let you drown either. You may find PC Boot Process useful background reading.
is the last message from Grub before it starts your kernel.
Looking at your lspci you have a [AMD] Starship/Matisse chipset. I have one of those too.
Looking at your kernel
Code: | CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y | Good.
Code: | # CONFIG_BLK_DEV_NVME is not set | is needed for Code: | 01:00.0 Non-Volatile memory controller: Micron/Crucial Technology P2 NVMe PCIe SSD (rev 01) (prog-if 02 [NVM Express]) | as its the nvme driver.
That's not the immediate problem though, your console driver is missing too or you would see a kernel panic message.
You need a driver for
Code: | 06:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (rev a1) (prog-if 00 [VGA controller]) |
CONFIG_DRM_NOUVEAU=y will give you a framebuffer.
Code: | CONFIG_DRM_LEGACY=y
CONFIG_FB_NVIDIA=y | must both be off. The first is a security hazard. The second is for 20 year old nVidia cards. It also prevents proper operation of cards its not intended for.
Turn on Code: | # CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set | Those two, together with are the only safe Framebuffer options today.
I said above that CONFIG_DRM_NOUVEAU=y will give you a framebuffer. That's only half the story.
I'm fairly sure that your card needs firmware but with Code: | CONFIG_EXTRA_FIRMWARE="" | none is provided.
Code: | emerge liniux-firmware | to get the firmware and flip that option to <M> so that the driver can find its firmware when it starts.
Code: | CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PCI=y
CONFIG_R8169=y | Not for booting but you need those too.
That will be a start. You must use menuconfig to make the changes, not a text editor.
It has a search function - press / _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
tackmancer n00b
Joined: 26 Mar 2022 Posts: 2
|
Posted: Sun Mar 27, 2022 11:13 pm Post subject: |
|
|
NeddySeagoon wrote: | tackmancer,
Welcome to Gentoo.
There are automated ways to build your kernel as well as a recently added binary kernel.
To possible to come back to building four own kernel later if you want to.
If you want to jump in at the deep end, we won't let you drown either. You may find PC Boot Process useful background reading.
is the last message from Grub before it starts your kernel.
Looking at your lspci you have a [AMD] Starship/Matisse chipset. I have one of those too.
Looking at your kernel
Code: | CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y | Good.
Code: | # CONFIG_BLK_DEV_NVME is not set | is needed for Code: | 01:00.0 Non-Volatile memory controller: Micron/Crucial Technology P2 NVMe PCIe SSD (rev 01) (prog-if 02 [NVM Express]) | as its the nvme driver.
That's not the immediate problem though, your console driver is missing too or you would see a kernel panic message.
You need a driver for
Code: | 06:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (rev a1) (prog-if 00 [VGA controller]) |
CONFIG_DRM_NOUVEAU=y will give you a framebuffer.
Code: | CONFIG_DRM_LEGACY=y
CONFIG_FB_NVIDIA=y | must both be off. The first is a security hazard. The second is for 20 year old nVidia cards. It also prevents proper operation of cards its not intended for.
Turn on Code: | # CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set | Those two, together with are the only safe Framebuffer options today.
I said above that CONFIG_DRM_NOUVEAU=y will give you a framebuffer. That's only half the story.
I'm fairly sure that your card needs firmware but with Code: | CONFIG_EXTRA_FIRMWARE="" | none is provided.
Code: | emerge liniux-firmware | to get the firmware and flip that option to <M> so that the driver can find its firmware when it starts.
Code: | CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PCI=y
CONFIG_R8169=y | Not for booting but you need those too.
That will be a start. You must use menuconfig to make the changes, not a text editor.
It has a search function - press / |
this did the trick, thank you |
|
Back to top |
|
|
|