F5F Stay Refreshed Software Operating Systems Not reducing kernel version is causing issues.

Not reducing kernel version is causing issues.

Not reducing kernel version is causing issues.

Pages (2): 1 2 Next
Z
zezol12
Junior Member
11
11-27-2023, 07:25 AM
#1
I'm using Arch and need to reduce the kernel to 4.20 for testing. Initially, I asked pacman to handle it by giving the ALA URL, but after installation I encountered a mkinitcpio error saying no modules were found. I checked and confirmed there was no kernel directory, which was normal. When I tried booting the older kernel, the system froze. Disabling quiet mode and enabling debug logging (level 7) caused a panic and an error about mounting the root filesystem on an unknown block. Fixing the initramfs earlier resolved the issue. I also accidentally deleted my current initramfs backup, but restoring it fixed things. I attempted to install the kernel with linux-headers for version 4.20, but compilation failed due to missing Makefile and a missing package. I tried compiling from scratch but got an error about a missing directory. Now I'm unsure if I should compile my own modules or if the older kernel is still usable. Is it necessary to install a newer Arch release?
Z
zezol12
11-27-2023, 07:25 AM #1

I'm using Arch and need to reduce the kernel to 4.20 for testing. Initially, I asked pacman to handle it by giving the ALA URL, but after installation I encountered a mkinitcpio error saying no modules were found. I checked and confirmed there was no kernel directory, which was normal. When I tried booting the older kernel, the system froze. Disabling quiet mode and enabling debug logging (level 7) caused a panic and an error about mounting the root filesystem on an unknown block. Fixing the initramfs earlier resolved the issue. I also accidentally deleted my current initramfs backup, but restoring it fixed things. I attempted to install the kernel with linux-headers for version 4.20, but compilation failed due to missing Makefile and a missing package. I tried compiling from scratch but got an error about a missing directory. Now I'm unsure if I should compile my own modules or if the older kernel is still usable. Is it necessary to install a newer Arch release?

B
Batai22
Member
184
12-02-2023, 04:47 AM
#2
You're not sure about Arch or compiling kernels recently. Usually, updating the kernel means importing the new setup from your distro's source, but switching back to an older one is unlikely. If you really need the old version, you might install a compatible Arch release. I don't know what kind of experiment you're running that requires it.
B
Batai22
12-02-2023, 04:47 AM #2

You're not sure about Arch or compiling kernels recently. Usually, updating the kernel means importing the new setup from your distro's source, but switching back to an older one is unlikely. If you really need the old version, you might install a compatible Arch release. I don't know what kind of experiment you're running that requires it.

P
PapiMarc_
Member
144
12-02-2023, 10:46 AM
#3
I don't understand the need to recompile the Kernel when I already have the actual binary. I assume no modifications are required. I'm sure running an older kernel wouldn't work with modern Arch and its packages.
P
PapiMarc_
12-02-2023, 10:46 AM #3

I don't understand the need to recompile the Kernel when I already have the actual binary. I assume no modifications are required. I'm sure running an older kernel wouldn't work with modern Arch and its packages.

R
Reepety
Senior Member
374
12-02-2023, 04:24 PM
#4
Start with a live boot into an arch setup, chroot your machine, and then use pacman to reinstall the kernel and other components to get your system back on track. This approach is straightforward and often effective. For your specific problem, consider why you require such an outdated kernel—compiling your own might be more reliable. You can find guidance here: https://wiki.archlinux.org/title/Kernel/...ompilation
R
Reepety
12-02-2023, 04:24 PM #4

Start with a live boot into an arch setup, chroot your machine, and then use pacman to reinstall the kernel and other components to get your system back on track. This approach is straightforward and often effective. For your specific problem, consider why you require such an outdated kernel—compiling your own might be more reliable. You can find guidance here: https://wiki.archlinux.org/title/Kernel/...ompilation

T
Torch15
Member
65
12-04-2023, 12:37 AM
#5
To avoid building the entire kernel and modules manually, you probably need to install the corresponding module package.
T
Torch15
12-04-2023, 12:37 AM #5

To avoid building the entire kernel and modules manually, you probably need to install the corresponding module package.

C
210
12-04-2023, 04:06 AM
#6
I don’t know how to locate it. I assumed the linux-headers package was sufficient, but it isn’t working.
C
CreeperRocket1
12-04-2023, 04:06 AM #6

I don’t know how to locate it. I assumed the linux-headers package was sufficient, but it isn’t working.

E
EGXC_RUNNER
Member
213
12-04-2023, 08:59 AM
#7
I confirmed I resolved the issue before it caused another failure. I understand this. First, I've built a Linux Kernel multiple times and it seems the build process creates those modules automatically. However, in my view, there should be no need to compile the Kernel if the binaries already exist. I'm unsure where to obtain the modules either. Also, for my experimental work, I don't want to waste 3-4 hours stressing my laptop's processor unless I really need to test the older version.
E
EGXC_RUNNER
12-04-2023, 08:59 AM #7

I confirmed I resolved the issue before it caused another failure. I understand this. First, I've built a Linux Kernel multiple times and it seems the build process creates those modules automatically. However, in my view, there should be no need to compile the Kernel if the binaries already exist. I'm unsure where to obtain the modules either. Also, for my experimental work, I don't want to waste 3-4 hours stressing my laptop's processor unless I really need to test the older version.

L
Lherion
Member
182
12-04-2023, 09:40 AM
#8
You obtained the precompiled kernel from the same source. Modules should be present there. Downgrading only those components could cause additional issues.
L
Lherion
12-04-2023, 09:40 AM #8

You obtained the precompiled kernel from the same source. Modules should be present there. Downgrading only those components could cause additional issues.

H
HeroDietz
Member
63
12-07-2023, 01:49 AM
#9
They originate directly from the kernel repository, which is why you must compile them, as you're already familiar with this process.
H
HeroDietz
12-07-2023, 01:49 AM #9

They originate directly from the kernel repository, which is why you must compile them, as you're already familiar with this process.

X
XxKripxDeMoNxX
Senior Member
536
12-08-2023, 01:05 AM
#10
There was an issue during the package installation. The main problem stems from compatibility issues between current kernel APIs and older kernels. Filesystems may not support older versions, and the way the initial ramdisk is created has likely changed since the package included its own mkinitcpio settings. Newer kernels no longer recognize these defaults. This situation isn't ideal unless you're prepared to manually compile each version from the archive—typically around 200 packages are needed for a base installation.
X
XxKripxDeMoNxX
12-08-2023, 01:05 AM #10

There was an issue during the package installation. The main problem stems from compatibility issues between current kernel APIs and older kernels. Filesystems may not support older versions, and the way the initial ramdisk is created has likely changed since the package included its own mkinitcpio settings. Newer kernels no longer recognize these defaults. This situation isn't ideal unless you're prepared to manually compile each version from the archive—typically around 200 packages are needed for a base installation.

Pages (2): 1 2 Next