Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New install hangs at "...." [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 778

PostPosted: Mon May 20, 2024 1:13 pm    Post subject: New install hangs at "...." [SOLVED] Reply with quote

Following the handbook, I've installed a
Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz

Profile:
default/linux/amd64/23.0/desktop/plasma/systemd (stable)

/etc/portage/make.conf
COMMON_FLAGS="-march=haswell -mabm -maes -mrtm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
ACCEPT_LICENSE="*"
LC_MESSAGES=C.utf8
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
VIDEO_CARDS="nouveau"
USE="grub"

Contents of /etc/fstab

/dev/sda1 /efi vfat defaults 0 2
/dev/sda3 / ext4 defaults,noatime 0 1
/dev/sda2 none swap sw 0 0


sys-kernel/gentoo-sources-6.6.30:6.6.30::gentoo

Kernel .config
https://pastebin.com/fiQaVdyd

Both grub and installkernel are installed:

sys-boot/grub-2.12-r4:2/2.12-r4::gentoo USE="fonts nls sdl themes truetype" GRUB_PLATFORMS="efi-64 pc"
sys-kernel/installkernel-28::gentoo USE="grub systemd"

I installed grub with the following command:
grub-install --efi-directory=/efi
grub-mkconfig -o /boot/grub/grub.cfg

ls -la /boot/
-rw-r--r-- 1 root root 77312 May 19 18:23 amd-uc.img
drwxr-xr-x 6 root root 4096 May 20 03:09 grub
-rw-r--r-- 1 root root 12366848 May 20 03:05 kernel-6.6.30-gentoo


ls -la /boot/grub/
total 52
drwxr-xr-x 2 root root 4096 May 19 19:55 fonts
-rw------- 1 root root 5396 May 20 03:09 grub.cfg
-rw-r--r-- 1 root root 1024 May 19 19:55 grubenv
drwxr-xr-x 2 root root 4096 May 19 19:55 locale
drwxr-xr-x 3 root root 4096 May 19 19:55 themes
drwxr-xr-x 2 root root 12288 May 19 19:55 x86_64-efi


ls -la /efi/
drwxr-xr-x 3 root root 4096 May 19 19:55 EFI

(chroot) livecd /usr/src/linux # ls -la /efi/EFI/
drwxr-xr-x 2 root root 4096 May 19 19:55 gentoo

(chroot) livecd /usr/src/linux # ls -la /efi/EFI/gentoo/
-rwxr-xr-x 1 root root 143360 May 19 19:55 grubx64.efi


Here's the output produced when I build the kernel:


Code:
make && make modules_install && make install

Quote:

CALL scripts/checksyscalls.sh
DESCEND objtool
make[4]: 'install_headers' is up to date.
Kernel: arch/x86/boot/bzImage is ready (#4)
SYMLINK /lib/modules/6.6.30-gentoo/build
INSTALL /lib/modules/6.6.30-gentoo/modules.order
INSTALL /lib/modules/6.6.30-gentoo/modules.builtin
INSTALL /lib/modules/6.6.30-gentoo/modules.builtin.modinfo
INSTALL /lib/modules/6.6.30-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/netfilter/nf_log_syslog.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/netfilter/xt_mark.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/netfilter/xt_nat.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/netfilter/xt_LOG.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/netfilter/xt_addrtype.ko
INSTALL /lib/modules/6.6.30-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko
DEPMOD /lib/modules/6.6.30-gentoo
INSTALL /boot
Loading /usr/lib/kernel/install.conf…
layout=grub set via /usr/lib/kernel/install.conf
INITRD_GENERATOR (none) set via /usr/lib/kernel/install.conf.
UKI_GENERATOR (none) set via /usr/lib/kernel/install.conf.
Loaded /usr/lib/kernel/install.conf.
MACHINE_ID=c81e1caa3a2e403da92215454b575e5c set via /etc/machine-id.
No filesystem is currently mounted on /sys/fs/cgroup.
Failed to detect cgroup namespace: No medium found
Found container virtualization none.
Directory "/boot" is not the root of the file system.
Couldn't find an XBOOTLDR partition.
Using EFI System Partition at /efi as $BOOT_ROOT.
Using entry token: c81e1caa3a2e403da92215454b575e5c
kernel version (6.6.30-gentoo) set via command line.
kernel image file (/usr/src/linux/arch/x86/boot/bzImage) set via command line.
Using ENTRY_DIR=/efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo
Using plugins:
/usr/lib/kernel/install.d/00-00machineid-directory.install
/usr/lib/kernel/install.d/10-copy-prebuilt.install
/usr/lib/kernel/install.d/50-depmod.install
/usr/lib/kernel/install.d/90-compat.install
/usr/lib/kernel/install.d/90-loaderentry.install
/usr/lib/kernel/install.d/90-uki-copy.install
/usr/lib/kernel/install.d/91-grub-mkconfig.install
Plugin environment:
LC_COLLATE=C.UTF-8
KERNEL_INSTALL_VERBOSE=1
KERNEL_INSTALL_IMAGE_TYPE=pe
KERNEL_INSTALL_MACHINE_ID=c81e1caa3a2e403da92215454b575e5c
KERNEL_INSTALL_ENTRY_TOKEN=c81e1caa3a2e403da92215454b575e5c
KERNEL_INSTALL_BOOT_ROOT=/efi
KERNEL_INSTALL_LAYOUT=grub
KERNEL_INSTALL_INITRD_GENERATOR=none
KERNEL_INSTALL_UKI_GENERATOR=none
KERNEL_INSTALL_STAGING_AREA=/tmp/kernel-install.staging.x0c7rX
Plugin arguments: add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(sd-exec-strv)' as PID 2644.
About to execute /usr/lib/kernel/install.d/00-00machineid-directory.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2645.
/usr/lib/kernel/install.d/00-00machineid-directory.install succeeded.
About to execute /usr/lib/kernel/install.d/10-copy-prebuilt.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2646.
/usr/lib/kernel/install.d/10-copy-prebuilt.install succeeded.
About to execute /usr/lib/kernel/install.d/50-depmod.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2648.
+depmod -a 6.6.30-gentoo
/usr/lib/kernel/install.d/50-depmod.install succeeded.
About to execute /usr/lib/kernel/install.d/90-compat.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2649.
/usr/lib/kernel/install.d/90-compat.install succeeded.
About to execute /usr/lib/kernel/install.d/90-loaderentry.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2651.
/usr/lib/kernel/install.d/90-loaderentry.install succeeded.
About to execute /usr/lib/kernel/install.d/90-uki-copy.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2652.
/usr/lib/kernel/install.d/90-uki-copy.install succeeded.
About to execute /usr/lib/kernel/install.d/91-grub-mkconfig.install add 6.6.30-gentoo /efi/c81e1caa3a2e403da92215454b575e5c/6.6.30-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 2653.
Backing up existing grub config as /boot/grub/grub.cfg~
Generating new GRUB config as /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-6.6.30-gentoo
Found initrd image: /boot/amd-uc.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
/usr/lib/kernel/install.d/91-grub-mkconfig.install succeeded.
(sd-exec-strv) succeeded.



The UEFI BIOS seems to be able to find the bootloader:

When the system boots, it displays
Quote:

Booting a command list

Loading Linux 6.6.30-gentoo ...
Loading initial ramdisk ...
....


But then it seems to hang

Any insight will be appreciated! Thank you


Last edited by Progman3K on Mon May 20, 2024 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
keen4e
n00b
n00b


Joined: 20 Nov 2021
Posts: 21

PostPosted: Mon May 20, 2024 1:28 pm    Post subject: Reply with quote

It seems that you have the variable KERNEL_INSTALL_INITRD_GENERATOR=none
Yet grub-mkconfig found an image /boot/amd-uc.img

Where did this image come from? Is it even related to your installation?
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 778

PostPosted: Mon May 20, 2024 1:32 pm    Post subject: Reply with quote

I think the first iterations of booting with the livecd and chrooting, making a kernel, etc, I had that variable turned on, but I eventually turned it off.

I'm used to configuring kernels so anything necessary for booting is built-in, and anything that could be needed later is built as a module.

So that's probably where it comes from.

I tried intercepting the boot, editing the grub command, and deleting the line after the kernel directive, the line that appears to direct the boot to load the the initrd file.

But that doesn't seem to change anything
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4394
Location: Bavaria

PostPosted: Mon May 20, 2024 4:17 pm    Post subject: Reply with quote

I can see you have configured your kernel yourself ... and you miss this option: # CONFIG_DRM_FBDEV_EMULATION is not set

Without this your kernel starts invisible (so you would be able to login blindly) and you have no output on console ... we had many problems like this :lol:

See also here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 778

PostPosted: Mon May 20, 2024 5:14 pm    Post subject: Reply with quote

Thank you very kindly, pietinger!

You are correct, I had omitted the option you noted, and consequently I did not realize that the system was indeed booting, but I could not see any output!

Now, I can continue fixing other problems!

Thank you again, pietinger, and thank you to keen4e, also.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4394
Location: Bavaria

PostPosted: Mon May 20, 2024 11:02 pm    Post subject: Reply with quote

Progman3K wrote:
Thank you very kindly, pietinger!

You are very Welcome, Progman3K ! :D

Progman3K wrote:
[...] and thank you to keen4e, also.

I am sorry, I am not a native englisch speaker and dont understand this. :(
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 778

PostPosted: Mon May 20, 2024 11:12 pm    Post subject: Reply with quote

Progman3K wrote:
[...] and thank you to keen4e, also.

I am sorry, I am not a native englisch speaker and dont understand this. :([/quote]

I was thanking keen4e, a different user who also posted in this thread and gave some insight.

Thank you both, again
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4394
Location: Bavaria

PostPosted: Mon May 20, 2024 11:18 pm    Post subject: Reply with quote

Progman3K wrote:
I was thanking keen4e, a different user who also posted in this thread and gave some insight.

Yes, I am old and blind. :x Thank you for the explanation. :oops:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 778

PostPosted: Mon May 20, 2024 11:23 pm    Post subject: Reply with quote

pietinger wrote:
Progman3K wrote:
I was thanking keen4e, a different user who also posted in this thread and gave some insight.

Yes, I am old and blind. :x Thank you for the explanation. :oops:

You may be old, but you are gold
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 301
Location: Nijmegen

PostPosted: Tue May 21, 2024 6:33 pm    Post subject: Reply with quote

Quote:
Where did this image come from? Is it even related to your installation?


From sys-kernel/linux-firmware[-dist-kernel,initramfs]
_________________
OS: Gentoo 6.8.10-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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