Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot freezing at loading init ramdisk on new laptop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Spinmc
n00b
n00b


Joined: 06 Sep 2010
Posts: 40
Location: Edinburgh, (UK)

PostPosted: Fri Oct 18, 2024 12:25 pm    Post subject: Boot freezing at loading init ramdisk on new laptop Reply with quote

Hello all,

I've been using gentoo for more than 10 years on multiple laptops and never had something like this before! I bought a new laptop with Intel(R) Core(TM) Ultra 7 155H and integrated ARC Graphics, and Samsung 990 pro NVME drives. I wanted to install Gentoo in dual boot with win 11, so the first thing I did was to disable secure-boot (Ok I could also add a signature as per docs, but I couldn't be arsed at this stage!)


Trying to load a live iso of Gentoo (2024-10-06) failed getting stuck right after loading initial ramdisk, so I decided to download a ubuntu live iso and install from there. The ubuntu live booted up correctly and I proceeded to install gentoo as usual, but on rebooting I was having the same problem as the live disk. I looked up for the issue here and noticed the advice on simple framebuffer to be enabled so I did that. After many attempts, I tried to unmask the latest kernel, just in case the hardware was not supported by the current version? So I recompliled also with 6.11.3 with this config: https://pastebin.com/Sjt8tcTD but had the same problem again.

I also tried to use the -dist kernel but I had the same problem again.

Has this ever happened to anyone else?

Disk Setup:

/dev/nvme0n1 (full disk) Windows
/dev/nvme1n1p1 EFI partition for gentoo
/dev/nvme1n1p2 /boot partition for gentoo
/dev/nvme1n1p3 LUKS partition used as LVM PV once unlocked, which contains /dev/vg1/root /dev/vg1/var and /dev/vg1/home)

Kernel installed with installkernel with default configuration in /usr/lib/kernel/install.conf

Grub installed with these flags (output from eix)

Code:
     Installed versions:  2.12-r5(2/2.12-r5)^t(08:58:55 17/10/24)(device-mapper fonts mount nls sdl themes truetype -doc -efiemu -libzfs -secureboot -test -verify-sig GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32 -xen-pvh")


/etc/default/grub as below:
Code:
GRUB_DISTRIBUTOR="Gentoo"
GRUB_CMDLINE_LINUX="root_trim=yes rd.luks.allow-discards rd.luks.options=discard root_delay=3 crypt_root=UUID=f9ad740f-1e94-467c-af2f-537713bf9c78:lvm real_root=/dev/mapper/vg1-root rootfstype=ext4"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_GFXMODE=640x480
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_DISABLE_LINUX_PARTUUID=false
GRUB_DISABLE_OS_PROBER=false


dracut config as below:
Code:
install_items+=" /lib/firmware/i915/mtl_dmc.bin /lib/firmware/i915/mtl_guc_70.bin /lib/firmware/i915/mtl_huc_gsc.bin /lib/firmware/i915/mtl_gsc_1.bin "
hostonly="yes"
force_drivers+=" i915 drm_display_helper drm_ttm_helper xe nvme "
add_dracutmodules+=" crypt crypt-gpg dm lvm rootfs-block "
lvmconf="yes"



Again Kernel config as here: https://pastebin.com/Sjt8tcTD

emerge --info output

Code:

Portage 3.0.65 (python 3.12.6-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-13, glibc-2.39-r6, 6.11.0-8-generic x86_64)
=================================================================
System uname: Linux-6.11.0-8-generic-x86_64-Intel-R-_Core-TM-_Ultra_7_155H-with-glibc2.39
KiB Mem:    65254284 total,  54784716 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 16 Oct 2024 13:00:00 +0000
Head commit of repository gentoo: e081e082783227007577b3ba97867ed30ff69fd1
sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.6_p4::gentoo
dev-lang/rust-bin:         1.80.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          255.11::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=24576 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=24576 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=24576 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=24576 -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.mirror.garr.it/     http://mirror.bytemark.co.uk/gentoo/     https://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="C.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j21"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb uxa vaapi valgrind vdpau vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


What am I missing? Thanks in advance for your help!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4970
Location: Bavaria

PostPosted: Fri Oct 18, 2024 1:34 pm    Post subject: Reply with quote

Spinmc wrote:
What am I missing? Thanks in advance for your help!

I don't know if this missing option is the cause, but this module activates other modules and is therefore essential for any Intel machine.
Code:
# CONFIG_X86_INTEL_LPSS is not set

Without this, the option CONFIG_MFD_INTEL_LPSS_PCI=y would not help:

BTW: this should not be the reason for your problem, but it should be enabled also (i2c needs pinctrl):
# CONFIG_PINCTRL is not set

See also: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Platform_support

P.S.: Check also if these are the correct firmware binaries for your GPU:
Code:
CONFIG_EXTRA_FIRMWARE="i915/mtl_dmc.bin i915/mtl_guc_70.bin i915/mtl_huc_gsc.bin i915/mtl_gsc_1.bin"

(Here you miss also the microcode for the CPU)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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