View previous topic :: View next topic |
Author |
Message |
sl70 Guru
Joined: 18 Jun 2002 Posts: 449 Location: Saitama, JP
|
Posted: Mon Jan 24, 2022 4:19 am Post subject: [SOLVED] First-time EFI install gives black screen on boot |
|
|
Hi, I've been using Gentoo for nearly 20 years now. I've done many installs from scratch and never had any big problems.
I just put together a new computer with a Gigabyte P550i Aorus AX Pro motherboard and an AMD Ryzen 5600 G CPU. For the first time I'm not using the legacy BIOS; I decided to make it an adventure and use the EFI BIOS. (Still using OpenRC, though. Don't like systemd.) I went through the whole installation procedure with no problems, but when I boot into my new system I get a message saying
Loading Linux 5.15.16 (or somesuch) and then Loading initial ramdisk, then the screen goes completely black.
Here's what I've tried:
o Installed genkernel and made an initramfs (first time ever)
o enabled EFI framebuffer support in the kernel
o installed linux-firmware -- then amd_uc appeared in grub.cfg
o reinstalled grub using the right GRUB_PLATFORMS setting in make.conf
o installed openssh, set sshd to start automatically; ssh into computer with the black screen but it wouldn't accept my password, even though I had set it during install. But it seems the system boots up, sshd starts (it responds to my ssh with a password prompt), but won't let me in. What's up with that?
o lots of other stuff that I can't remember now
I'm at my wit's end. Never had such an intractable problem with no progress. Any help greatly appreciated.
Last edited by sl70 on Tue Jan 25, 2022 3:37 am; edited 1 time in total |
|
Back to top |
|
|
gxeyes n00b
Joined: 05 Nov 2020 Posts: 12
|
Posted: Mon Jan 24, 2022 8:46 am Post subject: |
|
|
Disabling KMS (pass nomodeset as boot option to the kernel you built) might help.
If this does not help, try booting the install liveCD's kernel. Since you probably used the install LiveCD or flash drive to perform the installation, that kernel should be able to boot, steps:
1. boot the install liveCD again
2. copy gentoo and gentoo.igz from the liveCD's /boot/ into the /boot/ partition or folder of your hard disk
3. reboot and ask bootloader to boot gentoo as the kernel, gentoo.igz as its initrd, keep the root option in order to use your / on the hard disk
If either of these boots up fine, you can continue to use it while figuring out needed config options for the newly built kernel.
Good luck! |
|
Back to top |
|
|
sl70 Guru
Joined: 18 Jun 2002 Posts: 449 Location: Saitama, JP
|
Posted: Mon Jan 24, 2022 10:25 am Post subject: |
|
|
@gxeyes: thanks, I'll try nomodeset. I remember I had to do this about 2 or so computers ago, but I don't remember the details -- just that it fixed my problem. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jan 24, 2022 1:51 pm Post subject: |
|
|
sl70,
Root login by password is disabled by default.
/etc/ssh/sshd_config: |
#LoginGraceTime 2m
#PermitRootLogin prohibit-password |
so ssh goes through the motions but will not yet you in as root.
Your console problem may be your framebuffer set up, or lack of it.
Please post and put your kernel .config onto a pastebin. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
sl70 Guru
Joined: 18 Jun 2002 Posts: 449 Location: Saitama, JP
|
Posted: Tue Jan 25, 2022 12:58 am Post subject: |
|
|
NeddySeagoon wrote: | sl70,
Root login by password is disabled by default.
/etc/ssh/sshd_config: |
#LoginGraceTime 2m
#PermitRootLogin prohibit-password |
so ssh goes through the motions but will not yet you in as root.
|
Ah, yes. That makes sense. Now I just have to figure out how to find and transfer my public key from my Chromebook
Code: | Your console problem may be your framebuffer set up, or lack of it.
|
I'm going to try as suggested by @gxeyes.
Quote: | Please post and put your kernel .config onto a pastebin.
|
Yes, once I figure out how to ssh into the computer.
Thanks, @NeddySeagoon. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1660
|
Posted: Tue Jan 25, 2022 1:10 am Post subject: |
|
|
Since you are coming from traditional BIOS, the most important thing to understand about UEFI is that there is no VGA support. Because of this some sort of framebuffer is required to display anything from the Linux kernel to a screen.
Checking the following kernel options can certainly help: Code: |
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_FB=y
CONFIG_SYSFB_SIMPLEFB=y
CONFIG_FRAMEBUFFER_CONSOLE=y |
|
|
Back to top |
|
|
sl70 Guru
Joined: 18 Jun 2002 Posts: 449 Location: Saitama, JP
|
Posted: Tue Jan 25, 2022 1:21 am Post subject: |
|
|
grknight wrote: | Since you are coming from traditional BIOS, the most important thing to understand about UEFI is that there is no VGA support. Because of this some sort of framebuffer is required to display anything from the Linux kernel to a screen.
Checking the following kernel options can certainly help: Code: |
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_FB=y
CONFIG_SYSFB_SIMPLEFB=y
CONFIG_FRAMEBUFFER_CONSOLE=y |
|
Excellent! Thanks, @grknight. |
|
Back to top |
|
|
sl70 Guru
Joined: 18 Jun 2002 Posts: 449 Location: Saitama, JP
|
Posted: Tue Jan 25, 2022 3:36 am Post subject: |
|
|
Solved it (with everyone's help) Thanks, all.
I tried all kinds of suggestions but the only thing that would do the trick was CONFIG_SYSFB_SIMPLEFB.
(And thanks to @NoddySeagoon (again) for helping me ssh to my machine using my regular user account) |
|
Back to top |
|
|
|