Forum › Forums › New users › New Users and General Questions › problems upgrading to 5.10 kernel on antiX 19.5
- This topic has 11 replies, 6 voices, and was last updated Sep 9-5:28 pm by Brian Masinick.
-
AuthorPosts
-
September 8, 2022 at 5:12 pm #88327Member
blur13
Hi!
I’ve been running the 4.9 kernel on antiX 19.5 without any issues. Today I tried installing the 5.10 kernel to see if there would be any performance improvements. Got the following message during install:
Setting up linux-image-5.10.137-antix.1-amd64-smp (5.10.137-antix.1-amd64-smp-1) …
Warning: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
Error! Bad return status for module build on kernel: 5.10.137-antix.1-amd64-smp (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.61/build/make.log for more information.
Error! Bad return status for module build on kernel: 5.10.137-antix.1-amd64-smp (x86_64)
Consult /var/lib/dkms/nvidia-legacy-340xx/340.108/build/make.log for more information.When starting with the 5.10 kernel X fails to load and I’m stuck on tty1, issuing startx fails. Anyone got any clues?
the nvidia log file has over 3000 lines but near the top it has:
echo >&2 ” ERROR: Kernel configuration is invalid.”; \
echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \September 8, 2022 at 5:29 pm #88329Forum Admin
anticapitalista
::nvidia did not get configured correctly which is probably why booting the 5.10 kernel fails to get to X.
If I were you, I’d boot with the working 4.9 kernel and remove the 5.10Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 8, 2022 at 6:40 pm #88336MemberModdIt
::Hi blur13, trying to figure out what you did.
Was NVidia driver installed while running on the 4.9 kernel
If it is, to change the kernel the only way I have found which should work is
to purge NVidia then boot with the updated kernel and reinstall the
driver.The NVidia modules build for and are tailored to the running kernel at time of
driver install.What the logfile lines are telling you.
Kernel configuration is invalid
And to do things the NVidia way you should build a fitting kernel copying the
previous build config. Worth the pain, I doubt it.Unless you have specific issues with the 4.9 kernel please do take the
advice from anticapitalista.- This reply was modified 8 months ago by ModdIt.
- This reply was modified 8 months ago by ModdIt.
September 8, 2022 at 7:48 pm #88342Member
blur13
::Thanks guys!
Yes I had nvidia legacy 340 drivers installed. I figured that was probably the problem. I’ll stick with the 4.9 kernel.
September 8, 2022 at 9:50 pm #88347Moderator
Brian Masinick
::I did a bit of exploratory work on the antiX 5.10 kernel, because 5.10.137 WORKS on my Acer Aspire 5 Model A515-55, but NOT on my Dell Inspiron 5558 laptop, which until recently had worked with ANY antiX kernel!
So here’s what I tried on the Dell today in the 5.10 series:
1) linux-image-5.10.104-antix.1-amd64-smp — works on the Dell!
2) linux-image-5.10.137-antix.1-amd64-smp — does NOT work on the Dell; kernel dumps.
3) linux-image-5.10.137-antix.1-686-smp-pae — does NOT work on the Dell; kernel dumps.I’ve previously used the older 5.10.88 image and that works fine too, but that was not in today’s test.
I hope this might be useful for someone who wants to experiment with 5.10 kernels. There are also a number of other 5.10 kernels available, plus the Debian and Linux 5.10 kernels, if there’s an insistence on using them; my guess, based on my observations with my Acer (modern system) and my Dell (6-7 year old system) that it’s possible with different kernel configurations (some with a correct Nvidia configuration), that may be helpful.
--
Brian MasinickSeptember 8, 2022 at 10:07 pm #88351Moderator
Brian Masinick
::Doing some further research on previous problems that others have seen with the 5.10 kernel, it looks like the Debian kernels have had some defects of their own that affect SOME, but not all users. One user had success using 5.10 kernels from the Ubuntu kernels, which is PROOF that the appropriate kernel configuration for various different systems WILL work, so for those who are bent on getting a 5.10 kernel working, IF you have any aptitude, go to kernel.org and follow their instructions for building their kernels from source.
It takes a while, ESPECIALLY on old systems, but as long as you can follow instructions, which I’m pretty sure are provided there, it’s not as bad as you’d think.
PM me if you really need a kernel and I’ll build one for you if you provide your system specs.
--
Brian MasinickSeptember 8, 2022 at 10:34 pm #88352Moderator
Brian Masinick
::https://phoenixnap.com/kb/build-linux-kernel provides a general set of steps to build your own Linux kernel.
You DO visit https://www.kernel.org/ to obtain a kernel.
linux-5.10.142.tar.xz is available from there —> https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.142.tar.xzThere are seven main steps to the procedure; I think it’s well documented in the phoenixmap site.
Still, if anyone has problems and needs assistance, I’ve built kernels many times and it wouldn’t hurt to do it again.--
Brian MasinickSeptember 8, 2022 at 11:22 pm #88353Moderator
Brian Masinick
::I’m building the 5.10.142 Linux kernel now on my Dell Inspiron 5558 laptop. As I expected it is a lengthy process, timewise on older computer systems. The other issue is that you need plenty of space and you have to install several prerequisite packages.
That part is done and was was easy.
The Step 5 “Build the Kernel”
‘make’ – one easy command – has been executing for nearly an hour. I think it was 2 – 2 1/2 hours in this step the last time I either built a kernel or a Web browser.The next step, ‘sudo make install’ should be considerably faster.
- This reply was modified 8 months ago by Brian Masinick.
--
Brian MasinickSeptember 8, 2022 at 11:45 pm #88357Membercalciumsodium
::Hi @Brian,
The directions from the phoenixnap site seems very different than this site for making antiX kernels:https://tutorialforlinux.com/2021/04/19/step-by-step-build-kernel-antix-linux-guide/
Perhaps you can educate me.
1. Is this second link the method that is used to build the official antiX kernels?
2. Where does the linux headers come into play and how are they built?Thanks.
September 9, 2022 at 12:26 am #88364Moderator
Brian Masinick
::Yes. The second one takes advantage of the existing antiX infrastructure; the other approach generates a generic kernel,
--
Brian MasinickSeptember 9, 2022 at 3:38 pm #88413Memberolsztyn
::1) linux-image-5.10.104-antix.1-amd64-smp — works on the Dell!
2) linux-image-5.10.137-antix.1-amd64-smp — does NOT work on the Dell; kernel dumps.
3) linux-image-5.10.137-antix.1-686-smp-pae — does NOT work on the Dell; kernel dumps.Very interesting findings…
Along with findings of @blur13 and @mikey777 putting together it appears to me a sequence of buggy kernels of 5.10 series, not working on certain hardware.
– Since (if I remember from other posts) @mikey777 was able to make kernel 5.10.141 work on his machine, this would be interesting if this kernel works on your Dell machine, as 5.10.137 does not.
– As I understand from your testing 5.10.104 was the last one that worked on your Dell, however if I remember it did not work on @mikey777 machine. So it might be not solid either.
Based on your testing I will not upgrade to 5.10.137 even if it works on my laptops. Instead I will wait for at least 5.10.141, considering @mikey777 success…Live antiX Boot Options (Previously posted by Xecure):
https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_ParametersSeptember 9, 2022 at 5:28 pm #88423Moderator
Brian Masinick
::I think there may be multiple issues going on.
1) I have read one or two articles that claim that some Debian 5.10 kernels have unresolved defects for certain configurations. (One user found a Ubuntu 5.10 kernel that WORKS, interesting).
2) I have different systems that respond to 5.10 kernels differently. On my Acer, I realized it was because I was booting a 4.9 kernel that my WiFi wasn’t working; the antiX 5.10 kernels work fine, whereas my older Dell Inspiron laptop used to work great with any kernel; recently it has sometimes worked, sometimes not; I have to do more detective work to determine root cause.
--
Brian Masinick -
AuthorPosts
- You must be logged in to reply to this topic.