View previous topic :: View next topic |
Author |
Message |
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Sat Oct 23, 2021 11:00 am Post subject: [SOLVED] can't boot gentoo |
|
|
It's not my first time installing gentoo, but this time I just can't get past the grub message "Loading Linux 5.14.13-gentoo ...", nothing after this message, just a black screen.
I guess there's something wrong with my kernel config, would someone please take a look?
Here's the output from "lspci -k": https://pastebin.com/raw/VczuzzuX
And here's my kernel config: https://pastebin.com/raw/Q74V7VPN
Last edited by smartding on Sat Nov 06, 2021 8:36 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Sat Oct 23, 2021 11:55 am Post subject: |
|
|
smartding,
Looki at your kernel we see.
Code: |
CONFIG_DRM=y
CONFIG_DRM_I915=y
# Frame buffer Devices
#
CONFIG_FB_CMDLINE=y
# CONFIG_FB is not set
# end of Frame buffer Devices
# CONFIG_PINCTRL is not set
# CONFIG_GPIOLIB is not set
|
In the framebuffer menu, which you have off, Choose VESA, EFI and Simple as built in.
VESA works on BIOS based systems, EFI on UEFI based systems and Simple takes over the framebuffer left by grub.
You shouldn't need them as CONFIG_DRM_I915 provides a framebuffer console too but they are harmless and will start before CONFIG_DRM_I915.
Consider it a useful diagnostic. They will work even if CONFIG_DRM_I915 does not.
You have a Tiger Lake chipset so CONFIG_PINCTRL_TIGERLAKE must be on. Its in the pinctrl menu, which you have off.
Lastly # CONFIG_X86_INTEL_LPSS is not set is probably wrong. Thats the driver for the LP part of your TigerLake-LP chipset.
You will need whatever provides the lpss_pci driver too. Maybe it's a part of CONFIG_X86_INTEL_LPSS, or hidden because CONFIG_X86_INTEL_LPSS is off.
Update your kernel and post back.
You only have USB3.x hardware so the USB2 and USB1 drivers are just bloat. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Sun Oct 24, 2021 6:13 am Post subject: |
|
|
@NeddySeagoon
Thank you for your reply.
It turned out I just need to enable EFI framebuffer. Although I'm using grub to load kernel, simple frame buffer doesn't seem necessary.
Two more questions regarding your answer:
1. What's pinctrl and gpio for? I googled it, seems to have something to do with embedded systems?
2. Do I need the USB2 and USB1 drivers if I attach an old USB 2 stick into a USB 3 port? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Sun Oct 24, 2021 11:04 am Post subject: |
|
|
smartding,
Your system can switch bits of itself not being used into low power modes.
With some Intel Systems on a Chip (SoC), some parts don't even power up without the matching pinctrl and gpio drivers.
Those things are the kernel drivers to do that power management.
If your system works without those options they are not strictly required but if you operate from a battery, it helps battery life.
USB development, from the very early days was a mess.
For USB1, there were two competing implementaions of the standard. UHCI (Intel and VIA) and OHCI, the rest of the world.
When USB2 come out, there was only one standard, EHCI but some vendors added USB1 support to their host chupsets via Transaction Translators.
This was a mess too. It meant that the USB2 bus ran at USB1 speeds whenever a USB1 device was active.
That could take a lot of time, running at 12MHz instead of 400MHz, that was not available to USB2 devices.
e.g. your USB1 keyboard, Webcam, whatever, would slow down your USB2 memory stick.
USB3 did it right. Support for USB1 and USB2 is required. There is only one standard, xHCI. Lets ignore USB-C just now.
USB3 connectors have 9 pins, not 4, so the USB1/2 wiring is on the original four pins. The other 5 pins carry the USB3 signals.
The xHCI driver takes care of the entire xHCI interface, USB1, USB2 and USB3, so UHCI, OHCI and EHCI are only required if you have real matching USB1 or USB2 chipsets. You don't.
USB-C is a different USB connector that can do other things too. If your system has a USB-C port, you should enable support in your kernel.
I didn't check your kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4147 Location: Bavaria
|
Posted: Sun Oct 24, 2021 11:20 am Post subject: |
|
|
NeddySeagoon wrote: | USB-C is a different USB connector that can do other things too. If your system has a USB-C port, you should enable support in your kernel. |
If you do this you should enable IOMMU also, because without IOMMU its a security risk (just read in WikiPedia the entry "thunderbolt").
Another distribution has this:
Quote: | CONFIG_FIREWIRE=n, CONFIG_THUNDERBOLT=n - FireWire and Thunderbolt can be abused for DMA attacks. |
from: https://www.whonix.org/wiki/Hardened-kernel |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Sun Oct 24, 2021 12:23 pm Post subject: |
|
|
pietinger,
Thank you for that link. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4147 Location: Bavaria
|
Posted: Sun Oct 24, 2021 10:50 pm Post subject: |
|
|
NeddySeagoon wrote: | Thank you for that link. |
NeddySeagoon, I have another one ... maybe you know it already ... maybe its not very interesting ... but for all other readers of this thread:
Linux Hardening Guide -> https://madaidans-insecurities.github.io/guides/linux-hardening.html
I love this article because of:
Quote: | 1. Choosing the right Linux distribution
[...]
The best distribution to use as a base for your hardened operating system would be Gentoo Linux as it allows you to configure your system exactly how you want it to be [...] |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|