Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst]kernel panic nach Umstieg auf gentoo-sources 5.10.27
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3483
Location: Berlin

PostPosted: Sat Apr 03, 2021 5:41 am    Post subject: [gelöst]kernel panic nach Umstieg auf gentoo-sources 5.10.27 Reply with quote

Hallo, ich habe make oldconfig genutzt, von gentoo-sources 5.10.10 auf gentoo-sources 5.10.27. Einzige Änderung:
Code:
Processor family > 1. AMD Opteron/Athlon64/Hammer/K8 (MK8)
auf
Code:
 > 12. AMD Zen 2 (MZEN2) (NEW)
. In grub.cfg den Abschnitt 5.10.10 kopiert und in 5.10.27 geändert.
Code:
kernel Panic .... mount: mounting /dev/sda1 on /mnt/root failed: Invalid Argument
grubcfg
Code:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a9096302-8544-4f99-a3e3-3fef8af22aa3' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root a9096302-8544-4f99-a3e3-3fef8af22aa3
        echo    'Loading Linux 5.10.27-gentoo ...'
        linux   /boot/vmlinuz-5.10.27-gentoo root=/dev/nvme0n1p7 ro init=/usr/lib/systemd/systemd
}
Code:
cat /etc/fstab | grep a9096302-8544-4f99-a3e3-3fef8af22aa3
UUID=a9096302-8544-4f99-a3e3-3fef8af22aa3  /  ext4  noatime 0 1
Code:
blkid | grep a9096302-8544-4f99-a3e3-3fef8af22aa3
/dev/nvme0n1p7: LABEL="Gentoo" UUID="a9096302-8544-4f99-a3e3-3fef8af22aa3" BLOCK_SIZE="2048" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="bdfddb20-6cc5-01d6-90e9-9cdc6236eb00"
Code:
blkid | grep sda1
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="c2f21f97-b615-4288-88d7-231016eaf263"
Diesen Kernel kann ich booten
Code:
menuentry 'Gentoo GNU/Linux 5.10.10 /dev/nvme0n1p7' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a9096302-8544-4f99-a3e3-3fef8af22aa3' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  a9096302-8544-4f99-a3e3-3fef8af22aa3
        else
          search --no-floppy --fs-uuid --set=root a9096302-8544-4f99-a3e3-3fef8af22aa3
        fi
        echo    'Loading Linux 5.10.10-gentoo ...'
        linux   /boot/vmlinuz-5.10.10-gentoo root=/dev/nvme0n1p7 ro init=/usr/lib/systemd/systemd
}


Last edited by flammenflitzer on Fri Apr 09, 2021 5:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3483
Location: Berlin

PostPosted: Mon Apr 05, 2021 3:27 pm    Post subject: Reply with quote

Das gleiche bei 5.11.11-gentoo. Ich habe mal beide .config verglichen.
Code:
diff Config-5.10.10-gentoo.txt Config-5.11.11-gentoo.txt
1c1
< CONFIG_CC_VERSION_TEXT="gcc (Gentoo 9.3.0-r2 p4) 9.3.0"
---
> CONFIG_CC_VERSION_TEXT="gcc (Gentoo 10.2.0-r5 p6) 10.2.0"
3c3
< CONFIG_GCC_VERSION=90300
---
> CONFIG_GCC_VERSION=100200
114a115,116
> CONFIG_INITRAMFS_ROOT_UID=0
> CONFIG_INITRAMFS_ROOT_GID=0
121a124
> CONFIG_INITRAMFS_COMPRESSION_GZIP=y
158a162
> CONFIG_KCMP=y
199d202
< CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
215c218
< CONFIG_MK8=y
---
> CONFIG_MZEN2=y
218d220
< CONFIG_X86_INTEL_USERCOPY=y
457a460
> CONFIG_HAVE_CONTEXT_TRACKING_OFFSTACK=y
459a463
> CONFIG_HAVE_MOVE_PUD=y
490a495
> CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
972a978
> CONFIG_MTD_NAND_CORE=m
975c981,982
< CONFIG_MTD_NAND_ECC_SW_HAMMING=m
---
> CONFIG_MTD_NAND_ECC=y
> CONFIG_MTD_NAND_ECC_SW_HAMMING=y
1136d1142
< CONFIG_INPUT_POLLDEV=m
1208,1209d1213
< CONFIG_SYNCLINK=m
< CONFIG_SYNCLINKMP=m
1610a1615
> CONFIG_SURFACE_PLATFORMS=y
1744a1750
> CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
2012a2019
> CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y
2030a2038
> CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y

Ich habe versucht ein Bild hochzuladen. :? https://ibb.co/t47SGpW Der Fehler scheint bei INITRAMFS zu liegen... 8O
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Mon Apr 05, 2021 4:20 pm    Post subject: Reply with quote

der erste Fehler ist von mount. wie erstellst du deine initramdisk?

Evtl. fehlt auch einfach nur der fs treiber?
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3483
Location: Berlin

PostPosted: Wed Apr 07, 2021 1:00 pm    Post subject: Reply with quote

Ich nutze keine initramdisk. Ich hatte die mal genutzt, aber das ist lange her. Alle benötigten Treiber sollten im Kernel enthalten sein, da ich oldconfig bemüht habe und
Code:
diff Config-5.10.10-gentoo.txt Config-5.11.11-gentoo.txt
keine Auffälligkeiten aufweist. Vielleicht liegt der Fehler hier:
Code:
cat /usr/src/initramfs/init
#!/bin/busybox sh

# Mount the /proc and /sys filesystems.
mount -t proc none /proc
mount -t sysfs none /sys

# Do your stuff here.
echo "This script just mounts and boots the rootfs, nothing else!"

# Mount the root filesystem.
mount -o ro /dev/sda1 /mnt/root

# Clean up.
umount /proc
umount /sys

# Boot the real thing.
exec switch_root /mnt/root /sbin/init
Allerdings stört das meinen aktuellen 5.10.10-gentoo kernel auch nicht.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5187

PostPosted: Wed Apr 07, 2021 1:18 pm    Post subject: Reply with quote

flammenflitzer wrote:
Ich nutze keine initramdisk.

Öhm doch, auch wenn es eine initramfs ist ;).
Wenn die initramfs eh nichts macht als das rootfs zu mouten (via /dev/sdX) dann kannst du diese auch weg lassen.
Dann kannst du direkt root=/dev/sda1 im bootloader angeben
Verwendest du GPT oder MSDOS (Oder auch oft als MBR bezeichnet) als Partitionsschema?
Falls es GPT ist dann kannst du das rootfs device auch als PARTUUID angeben (Die UUID der GPT Partition)
z.b.

Quote:
root=PARTUUID="c26295d1-cd37-4bd4-bcc7-c8ccab8f5e82"


Die PARTUUID kannst du mit
Code:
blkid /dev/sda1
herausfinden
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3483
Location: Berlin

PostPosted: Wed Apr 07, 2021 5:45 pm    Post subject: Reply with quote

Ich habe
Code:
root=/dev/nvme0n1p7
Code:
linux   /boot/vmlinuz-5.10.27-gentoo root=/dev/nvme0n1p7 ro init=/usr/lib/systemd/systemd
(s.oben). Funktioniert auch, mit Kernelversionen bis 5.10.10. Ich verwende GPT. Und wie gesagt :D kernel 5.10.10 bootet. Das Problem habe ich mit kernel 5.10.27 und 5.11.11 :(
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5187

PostPosted: Wed Apr 07, 2021 9:07 pm    Post subject: Reply with quote

öhm wie den nu?
in der von dir geposteten initramfs "init"-script wird /dev/sda1 als device für das rootfs angegeben.
Aber nun redest du von /dev/nvmeXXX.
Entweder du verwendest keine initramfs oder das was du gepostet hast stimmt nicht.

Ansonsten mach deine Änderung in "Processor family" rückgängig um auszuschließen, dass das Problem dadurch entstanden ist.
Und wie gesagt, da du GPT verwendest, nimm lieber root=PARTUUID dadurch ist der name des devices selbst scheiß egal da die PARTUUID eindeutig ist.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4555
Location: Germany

PostPosted: Wed Apr 07, 2021 10:34 pm    Post subject: Reply with quote

Mit folgenden Eintrag kann GRUB root=PARTUUID= auch selbst mit grub-mkconfig passend in die grub.cfg schreiben:
/etc/default/grub:
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
GRUB_DISABLE_LINUX_UUID=true
GRUB_DISABLE_LINUX_PARTUUID=false
(wenn ich mich recht erinnere wird das ab >=grub-2.04 unterstützt)

Und, init=/usr/lib/systemd/systemd
brauchst normal auch nicht mehr mit angeben. Per default wird /sbin/init genutzt, und das sollte passend vorhanden sein:
Beispielausgabe:
file /sbin/init
/sbin/init: symbolic link to ../lib/systemd/systemd
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3483
Location: Berlin

PostPosted: Fri Apr 09, 2021 5:45 pm    Post subject: Reply with quote

Ich habe den Eintrag aus der kernel .config
Code:
CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs"
gelöscht. Der war schon lange in der .config, hatte ich mal benutzt. Warum es jetzt erst zu dem Fehler kam... Danke. Schönes WE.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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