LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-08-2022, 03:47 PM   #1
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
compile and install kernel


I want to revert to kernel 5.4.197 due to support for iwlwifi,iwlmvm and firmware are broke in newer kernels support for intel ax200.

I have 2 systems with intel ax200 installed
desktop built into motherboard with amd cpu installed.
for whatever reason it works in kernels newer than 5.4.x
both debian bullseye 11.3 with non free firmware 5.10.x-x kernel and
slackware 15 kernel work with it.

my laptop has a m.2 key E slot for wireless adapter. I put a fenvi intel ax200 card in it. works in windows 10 64bit,debian 11.3 non free with kernel 5.4.x but not with newer kernels than 5.4.x.
both are 0x2723, 0x0084 chip and hardware with chip rev 1a.

the code from kernel 5.4.x is different than other stable branches.
5.10.x-x,5.15.x,5.18.x. is all different and my laptop hates it.

so want to test kernels and try adding some code and recompiling stuff.

getting error booting kernel I made. tried using these instructions
https://edersoncorbari.github.io/tut...-build-kernel/

I have uefi enabled but secure boot is off. /boot dir is a bit of a mess but can tell whats what. slackware is using elilo though I have grub2 installed for debian. need to redo my uefi boot devices.

anyone know instructions for compiling kernel. kernels I am compiling are not booting.

getting like 3-4,000 modules from .config. wasnt there like a smart config for kerenls 20 years ago? editing .config is nightmare so many things.

gist of error. sorry not much.

get couldnt start session couldnt connect to tty
error mounting /dev/sda6 /mnt

Last edited by mrapathy; 06-09-2022 at 09:58 AM.
 
Old 06-08-2022, 10:52 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Is the AX200 substantially different from the AX201 in a manner not covered in https://ark.intel.com/content/www/us...=189347,130293 ?

I'm using a custom built 5.16.12 kernel on an Asus Maximus Hero XII which has the AX201 an it works perfectly in Current and 15.0. I have much older versions of Slackware installed on this, my Main PC, and it didn't work until I upgraded Firmware at the very least and in most cases, the kernel version. For example, until recently I had a 14.2 Multilib install running a 5.2.10 kernel which would not load wlan. Initially an upgrade to a 5.4.x kernel solved that but now it uses the 5.16.12 just fine, or rather did for several months, until a week ago I upgraded it to 15.0.

A helpful kernel building link https://blog.paranoidpenguin.net/201...ackware-linux/
 
1 members found this post helpful.
Old 06-08-2022, 10:58 PM   #3
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by mrapathy View Post
...
anyone know instructions for compiling kernel. kernels I am compiling are not booting.

getting like 3-4,000 modules from .config. wasnt there like a smart config for kerenls 20 years ago? editing .config is nightmare so many things.
...

'make menuconfig' from the root of the source archive should give you an ncurses utility and some info about each option/module.

You can also import an existing config from the distribution kernel and work from that as a starting point. It can be tedius if the difference between the 2 kernels is large but not difficult.
 
Old 06-08-2022, 11:40 PM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
This is still a valid starting point :
https://docs.slackware.com/howtos:sl...kernelbuilding
 
Old 06-09-2022, 12:59 AM   #5
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 459

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by Pithium View Post
You can also import an existing config from the distribution kernel and work from that as a starting point. It can be tedius if the difference between the 2 kernels is large but not difficult.
This is the quickest way to get something that's basically guaranteed to work, even if it might take a little longer to compile.

When I needed a 5.10 kernel for my laptop, I downloaded the most recent 5.10 kernel-generic from AlienBob's cumulative mirror, extracted the config file and ran "make oldconfig". The whole process took maybe ten minutes and the results were perfect.
 
Old 06-09-2022, 02:21 AM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by mrapathy View Post
getting error booting kernel I made. tried using these instructions
Well, that doesn't say much. The Kernel could be working perfectly fine, the trouble could be the bootloader, or the opposite, or both. So what kind of error do you actually get?

Anyways, the easiest/safest way to do it, is to just copy the config of the generic kernel that you currently run from /boot into the where you extracted the Kernel source linux-x.y.z/.config.

And then run make menuconfig from there and add only what you need.
Then build Kernel and modules and initrd.
Then fix the bootloader.
 
Old 06-09-2022, 02:56 AM   #7
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 594

Rep: Reputation: Disabled
You could start with the Slackware kernel configuration for the last 5.4 kernel that was present in -current: version 5.4.84.
Here is where you can find the configs for that release: https://git.slackware.nl/current/com...7e6fa5739c32be
 
1 members found this post helpful.
Old 06-09-2022, 09:50 AM   #8
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
Thanks All. Sorry I didnt reply sooner and more specific. while working in my /boot directory as root I accidently deleted /boot/efi/. So I had to fix that mess.

ax201 is intel cpu specific hardware cause it depends on intel virtual something another. ax211 is intel cpu only too.ax200 works on amd hardware.

also ax200,ax201 and ax211 use all different firmware from intel.

thanks for giving me location for a 5.4.x. .config file. using config file from newer kernel cannot be good.

Is the website I listed for kernel compilation good? been making kernels for 20 years for latest and greatest hardware. more things change more they stay the same. I primarily use debian but want slackware cause its usually simple maybe bit messy but slackbuilds is changing that.

my desktop ax200 has no problem with kernels seemingly only tried debian and slackware defaults 5.10.x-x and 5.15.x. laptop is different story doesnt like the code change from kernels 5.4.x to newer code base in newer kernels. ax200 firmware broke for newer kernels and driver can crash. saw bug report in linux-firmware mailing list and some post in linux-wireless mailing list. reported my problem with laptops ax200 ie only works with 5.4.x. kernels and doesnt like default kernel for debian 11.3 and slackware 15.

played with drivers looked a little at code messed with firmware.

slackware same old good reliable I love mumimo support is in kde network manager.

Last edited by mrapathy; 06-09-2022 at 09:55 AM.
 
Old 06-10-2022, 11:53 AM   #9
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
Got kernel 5.4.197 installed. Weird how problems just go away and just work.

Sorry I wasnt able to reproduce the errors. Yipee.

Thanks for the help everyone.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic after make install of fresh kernel compile glennmcc Slackware 9 09-15-2021 11:51 PM
LXer: Linux Kernel Utilities (LKU) – A Set Of Shell Scripts To Compile, Install & Update Latest Kernel In Ubuntu/LinuxMint LXer Syndicated Linux News 0 06-02-2017 12:42 PM
Am I obliged to compile the kernel to compile a module? abd_bela Linux - Kernel 1 08-20-2011 12:17 PM
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
Trying to patch kernel + compile, compile is looping. kripz Linux - Kernel 1 06-16-2009 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration