Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] gentoo-kernel-bin-6.1.60 panic on boot
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
guffegris
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2017
Posts: 132

PostPosted: Mon Dec 11, 2023 12:25 pm    Post subject: [solved] gentoo-kernel-bin-6.1.60 panic on boot Reply with quote

Hi,

I am running the precompiled kernel on my system, and it is working just fine with gentoo-kernel-bin-5.15.80, but when I try to upgrade to gentoo-kernel-bin-6.1.60 the kernel panics on boot.

copy-paste from the boot messages is not posible, but from a foto I took, I can tell that I get these error messages:

Code:
Run /init as init process
Failed to execute /init (error -2)
Run /sbin/init as init process
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.


I can't figure out why it can't find init - there is clearly an init in /sbin on my desk, but I expect that it isn't that init it needs; this early in the boot process I guess that it would need it in the ramdisk, which i expect will come with the package when I installed gentoo-kernel-bin-6.1.60

I my /boot I have these files:

Code:
-rwxr-xr-x 1 root root      512  2 nov  2022 boot.10301
-rwxr-xr-x 1 root root   235465 28 nov  2022 config-5.15.77-gentoo-dist
-rwxr-xr-x 1 root root   235465  9 dec  2022 config-5.15.80-gentoo-dist
-rwxr-xr-x 1 root root   249428 29 nov 14:22 config-6.1.60-gentoo-dist
drwxr-xr-x 3 root root      512  3 nov  2022 EFI
drwxr-xr-x 6 root root     1024 30 nov 14:27 grub
-rwxr-xr-x 1 root root 53422657 28 nov  2022 initramfs-5.15.77-gentoo-dist.img
-rwxr-xr-x 1 root root 53431990  9 dec  2022 initramfs-5.15.80-gentoo-dist.img
-rwxr-xr-x 1 root root 30277632 29 nov 14:22 initramfs-6.1.60-gentoo-dist.img
drwxr-xr-x 2 root root      512  1 nov  2022 lost+found
-rwxr-xr-x 1 root root    18944  2 nov  2022 map
-rwxr-xr-x 1 root root  5824496 28 nov  2022 System.map-5.15.77-gentoo-dist
-rwxr-xr-x 1 root root  5824682  9 dec  2022 System.map-5.15.80-gentoo-dist
-rwxr-xr-x 1 root root  6289838 29 nov 14:22 System.map-6.1.60-gentoo-dist
-rwxr-xr-x 1 root root 11065984 28 nov  2022 vmlinuz-5.15.77-gentoo-dist
-rwxr-xr-x 1 root root 11068800  9 dec  2022 vmlinuz-5.15.80-gentoo-dist
-rwxr-xr-x 1 root root 13041312 29 nov 14:22 vmlinuz-6.1.60-gentoo-dist

which looks fine to me.

my emerge --info looks like this:

Code:
# emerge --info
Portage 3.0.51 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-13, glibc-2.37-r7, 5.15.80-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.15.80-gentoo-dist-x86_64-AMD_Ryzen_9_5900HX_with_Radeon_Graphics-with-glibc2.37
KiB Mem:    15766564 total,  11128652 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Fri, 01 Dec 2023 12:30:01 +0000
Head commit of repository gentoo: a2936dd7b04870697902964973f4a9facc420c43
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::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-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -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 /etc/terminfo"
CXXFLAGS="-O2 -march=native -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="-O2 -march=native -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 multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="https://mirrors.dotsrc.org/gentoo/"
LANG="da_DK.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8"
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 alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds elogind encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm grub gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="radeon fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

#



I would apreciate if someone could give me a hint, I could imagine that I am just overlooking something relatively simple... ;-)

Thanks in advance.

[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by guffegris on Tue Dec 12, 2023 2:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Mon Dec 11, 2023 8:27 pm    Post subject: Reply with quote

Never dealt with initrams myself - the only thing that catches my eyes really is that the 6.1.60 initramfs is quite a bit smaller in size...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Mon Dec 11, 2023 8:34 pm    Post subject: Reply with quote

What is the intended purpose of this initramfs? How does the bootloader invoke both the good and bad kernels?
Back to top
View user's profile Send private message
guffegris
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2017
Posts: 132

PostPosted: Tue Dec 12, 2023 2:19 pm    Post subject: Reply with quote

freke wrote:
Never dealt with initrams myself - the only thing that catches my eyes really is that the 6.1.60 initramfs is quite a bit smaller in size...


Good point! - that was actually the hint I needed! :-) - it turned out that I didn't notized that I ran out of space when the ramdisk was build! - after a clean-up and a reemerge of the packet everything worked fine!

Thanks! :-)
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Tue Dec 12, 2023 8:47 pm    Post subject: Reply with quote

For a period, kernel-install didn't respect the exit code of plugins/hooks, which has now been fixed (bug 917567), so that might have been why as well.
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