You are not logged in.

#1 2021-02-21 01:13:17

mdsp
Member
Registered: 2020-12-19
Posts: 9

[SOLVED] Kernel panic but only for old kernels

So, I use for daily tasks, the lts kernel version. However these newer kernels (>=5.x) are having bugs with bluetooth, so I decided to downgrade to a old one.

I installed the linux and linux-headers packages and get from Arch rollback machine the version 4.20.8 for kernel and headers. I downgraded successfully, generated grub config again, but when I try to boot with this old kernel (also I tested older and newer ones) I receive this error:

[    0.243925] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.243949] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.5-1-ARCH #1
[    0.243987] Call Trace:
[    0.243998]  dump_stack+0x5c/0x85
[    0.244009]  panic_0xe4/0x252
[    0.244020]  mount_block_root+0x27f/0x2e0
[    0.244033]  ? set_debug_rodata+0x11/0x11
[    0.244044]  prepare_namespace+0x130/0x166
[    0.244056]  kernel_init_freable+0x1e6/0x1f3
[    0.244068]  ? reset_init+0xd0/0xd0
[    0.244078]  kernet_init+0xa/0x100
[    0.244088]  ret_from_fork+0x35/0x40
[    0.244113] Kernel Offset: 0xd000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.244139] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

The problem here is: when I try to boot with the latest linux kernel and headers, all works fine...

I tried to regenerate initramfs, wipe boot partition and reinstall grub and also tried to config grub manually with the "c" option on the bootloader screen...

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 223.6G  0 disk
├─sda1   8:1    0   512M  0 part /boot
├─sda2   8:2    0    40G  0 part /
└─sda3   8:3    0   128G  0 part /home

fstab, even though it "doesn't matter" on this part

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=792ee5d6-1c6d-40f5-b284-2a4b98686154	/         	ext4      	rw,relatime	0 1

# /dev/sda1
UUID=CF25-F9E4      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda3
UUID=96a3ab2f-9443-41ac-a4f3-6389c5e8f988	/home     	ext4      	rw,relatime	0 2

/swapfile	none	swap	default 0 0
# /dev/sda2
UUID=792ee5d6-1c6d-40f5-b284-2a4b98686154	/         	ext4      	rw,relatime	0 1

lshw

mdsp
    description: Notebook
    product: Aspire E5-573 (Aspire E5-573_098A_1_37)
    vendor: Acer
    version: V3.72
    serial: NXG5TAL0085418D08A9501
    width: 64 bits
    capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
    configuration: chassis=notebook family=BDW sku=Aspire E5-573_098A_1_37 uuid=610F7312-67AF-11E5-AD89-1C3947527EC7
  *-core
       description: Motherboard
       product: ZORO_BH
       vendor: Acer
       physical id: 0
       version: Type2 - A01 Board Version
       serial: NBVB011002542001689501
       slot: Type2 - Board Chassis Location
     *-firmware
          description: BIOS
          vendor: Insyde Corp.
          physical id: 0
          version: V1.37
          date: 02/16/2016
          size: 128KiB
          capacity: 4608KiB
          capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i3-5015U CPU @ 2.10GHz
          vendor: Intel Corp.
          physical id: 4
          bus info: cpu@0
          version: Intel(R) Core(TM) i3-5015U CPU @ 2.10GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 1400MHz
          capacity: 2100MHz
          width: 64 bits
          clock: 100MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm arat pln pts cpufreq
          configuration: cores=2 enabledcores=2 threads=4
        *-cache:0
             description: L1 cache
             physical id: 8
             slot: L1 Cache
             size: 32KiB
             capacity: 32KiB
             capabilities: synchronous internal write-back instruction
             configuration: level=1
        *-cache:1
             description: L2 cache
             physical id: 9
             slot: L2 Cache
             size: 256KiB
             capacity: 256KiB
             capabilities: synchronous internal write-back unified
             configuration: level=2
        *-cache:2
             description: L3 cache
             physical id: a
             slot: L3 Cache
             size: 3MiB
             capacity: 3MiB
             capabilities: synchronous internal write-back unified
             configuration: level=3
     *-cache
          description: L1 cache
          physical id: 7
          slot: L1 Cache
          size: 32KiB
          capacity: 32KiB
          capabilities: synchronous internal write-back data
          configuration: level=1
     *-memory
          description: System Memory
          physical id: 10
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
             product: TMT451S6BFR8A-PBHJ
             vendor: Hitachi
             physical id: 0
             serial: 00831618
             slot: ChannelA-DIMM0
             size: 4GiB
             width: 64 bits
             clock: 1600MHz (0.6ns)
        *-bank:1
             description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
             product: 99U5469-045.A00LF
             vendor: Kingston
             physical id: 1
             serial: 75134250
             slot: ChannelB-DIMM0
             size: 4GiB
             width: 64 bits
             clock: 1600MHz (0.6ns)
     *-pci
          description: Host bridge
          product: Broadwell-U Host Bridge -OPI
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 09
          width: 32 bits
          clock: 33MHz
          configuration: driver=bdw_uncore
          resources: irq:0
        *-display
             description: VGA compatible controller
             product: HD Graphics 5500
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:48 memory:c0000000-c0ffffff memory:b0000000-bfffffff ioport:4000(size=64) memory:c0000-dffff
        *-multimedia:0
             description: Audio device
             product: Broadwell-U Audio Controller
             vendor: Intel Corporation
             physical id: 3
             bus info: pci@0000:00:03.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:51 memory:c1210000-c1213fff
        *-usb:0
             description: USB controller
             product: Wildcat Point-LP USB xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 03
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:46 memory:c1200000-c120ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 5.10.17-1-lts xhci-hcd
                physical id: 0
                bus info: usb@2
                logical name: usb2
                version: 5.10
                capabilities: usb-2.00
                configuration: driver=hub slots=11 speed=480Mbit/s
              *-usb:0
                   description: Bluetooth wireless interface
                   product: Qualcomm Atheros Bluetooth
                   vendor: Lite-On Technology Corp.
                   physical id: 5
                   bus info: usb@2:5
                   version: 0.02
                   capabilities: bluetooth usb-1.10
                   configuration: driver=btusb maxpower=100mA speed=12Mbit/s
              *-usb:1
                   description: Video
                   product: HD WebCam
                   vendor: NC2141103M5191036ALM05
                   physical id: 7
                   bus info: usb@2:7
                   version: 0.05
                   capabilities: usb-2.00
                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
              *-usb:2
                   description: MMC Host
                   product: USB2.0-CRW
                   vendor: Generic
                   physical id: 8
                   bus info: usb@2:8
                   logical name: mmc0
                   version: 39.60
                   serial: 20100201396000000
                   capabilities: usb-2.00
                   configuration: driver=rtsx_usb maxpower=500mA speed=480Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 5.10.17-1-lts xhci-hcd
                physical id: 1
                bus info: usb@3
                logical name: usb3
                version: 5.10
                capabilities: usb-3.00
                configuration: driver=hub slots=4 speed=5000Mbit/s
        *-communication
             description: Communication controller
             product: Wildcat Point-LP MEI Controller #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 03
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:47 memory:c121b000-c121b01f
        *-multimedia:1
             description: Audio device
             product: Wildcat Point-LP High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 03
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=64
             resources: irq:50 memory:c1214000-c1217fff
        *-pci:0
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:42 ioport:2000(size=4096) memory:a0100000-a02fffff ioport:a0300000(size=2097152)
        *-pci:1
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci@0000:00:1c.2
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:43 ioport:3000(size=4096) memory:c1100000-c11fffff
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: enp2s0
                version: 15
                serial: 1c:39:47:52:7e:c7
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.10.17-1-lts firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII
                resources: irq:18 ioport:3000(size=256) memory:c1104000-c1104fff memory:c1100000-c1103fff
        *-pci:2
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #4
             vendor: Intel Corporation
             physical id: 1c.3
             bus info: pci@0000:00:1c.3
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:44 memory:c1000000-c10fffff
           *-network
                description: Wireless interface
                product: QCA9565 / AR9565 Wireless Network Adapter
                vendor: Qualcomm Atheros
                physical id: 0
                bus info: pci@0000:03:00.0
                logical name: wlp3s0
                version: 01
                serial: 5c:c9:d3:5c:9d:b1
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
                configuration: broadcast=yes driver=ath9k driverversion=5.10.17-1-lts firmware=N/A ip=192.168.0.106 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:19 memory:c1000000-c107ffff memory:c1080000-c108ffff
        *-usb:1
             description: USB controller
             product: Wildcat Point-LP USB EHCI Controller
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:23 memory:c1219000-c12193ff
           *-usbhost
                product: EHCI Host Controller
                vendor: Linux 5.10.17-1-lts ehci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 5.10
                capabilities: usb-2.00
                configuration: driver=hub slots=2 speed=480Mbit/s
              *-usb
                   description: USB hub
                   product: Integrated Hub
                   vendor: Intel Corp.
                   physical id: 1
                   bus info: usb@1:1
                   version: 0.03
                   capabilities: usb-2.00
                   configuration: driver=hub slots=8 speed=480Mbit/s
        *-isa
             description: ISA bridge
             product: Wildcat Point-LP LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
        *-sata
             description: SATA controller
             product: Wildcat Point-LP SATA Controller [AHCI Mode]
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 03
             width: 32 bits
             clock: 66MHz
             capabilities: sata msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:45 ioport:4088(size=8) ioport:4094(size=4) ioport:4080(size=8) ioport:4090(size=4) ioport:4060(size=32) memory:c1218000-c12187ff
        *-serial
             description: SMBus
             product: Wildcat Point-LP SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 03
             width: 64 bits
             clock: 33MHz
             configuration: driver=i801_smbus latency=0
             resources: irq:18 memory:c121a000-c121a0ff ioport:4040(size=32)
     *-pnp00:00
          product: Motherboard registers
          physical id: 1
          capabilities: pnp
          configuration: driver=system
     *-pnp00:01
          product: AT Real-Time Clock
          physical id: 2
          capabilities: pnp
          configuration: driver=rtc_cmos
     *-pnp00:02
          product: PnP device INT3f0d
          vendor: Interphase Corporation
          physical id: 3
          capabilities: pnp
          configuration: driver=system
     *-pnp00:03
          product: IBM Enhanced keyboard controller (101/2-key)
          physical id: 5
          capabilities: pnp
          configuration: driver=i8042 kbd
     *-pnp00:04
          product: Motherboard registers
          physical id: 6
          capabilities: pnp
          configuration: driver=system
     *-pnp00:05
          product: Motherboard registers
          physical id: 8
          capabilities: pnp
          configuration: driver=system

Last edited by mdsp (2021-02-21 07:16:54)

Offline

#2 2021-02-21 02:09:22

Oxyd
Member
From: Czech Republic
Registered: 2008-01-17
Posts: 165

Re: [SOLVED] Kernel panic but only for old kernels

mkinitcpio was recently changed to use zstd compression by default; the previous default was gzip. The old kernel probably can't read zstd-compressed initramfs, so try changing the compression method in /etc/mkinitcpio.conf to gzip and see if that helps.

Offline

#3 2021-02-21 07:15:37

mdsp
Member
Registered: 2020-12-19
Posts: 9

Re: [SOLVED] Kernel panic but only for old kernels

Oxyd wrote:

mkinitcpio was recently changed to use zstd compression by default; the previous default was gzip. The old kernel probably can't read zstd-compressed initramfs, so try changing the compression method in /etc/mkinitcpio.conf to gzip and see if that helps.

Wow, I dind't know that! Thank you so much, you saved my bluetooth hahahah!

Offline

Board footer

Powered by FluxBB