Can I use the Slackware -current kernel?

You have a problem with Salix? Post here and we'll do what we can to help.
reyoutiao
Posts: 20
Joined: 21. Mar 2012, 17:51

Can I use the Slackware -current kernel?

Post by reyoutiao »

Hello, I'm researching how to upgrade the kernel in Salix (for wireless support) and was wondering: can I use the kernel files from the Slackware -current ftp? Which files should I pull from the /source folder to use in Salix?
ftp://slackware.mirrors.tds.net/pub/sla ... /source/k/

I'm reading AlienBOB's kernel building wiki entry , but only about 60% makes sense to me right now. I'd be skipping a step or two in the "Downloading and configuring" section if I did this, right? Or is it not recommended I use this method?
http://alien.slackbook.org/dokuwiki/dok ... elbuilding
thom1
Posts: 28
Joined: 16. May 2011, 09:40

Re: Can I use the Slackware -current kernel?

Post by thom1 »

Hello,

If you want to upgrade the kernel, you can download de kernel-source package from slackware current with the good config file (config-generic or config-huge) and compile it.
If you want to use the built kernel from current, you have to upgrade all the building chain (glibc, kernel-header, gcc, coreutils…), I think compile the kernel yourself is easier.
Thomas Bourdon
reyoutiao
Posts: 20
Joined: 21. Mar 2012, 17:51

Re: Can I use the Slackware -current kernel?

Post by reyoutiao »

Okay, thanks. I'll give that a try right now.

Edit: How do I add the -current repository? I'm coming from the Fedora/*buntu land of GUIs.
Last edited by reyoutiao on 29. Mar 2012, 08:48, edited 1 time in total.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Can I use the Slackware -current kernel?

Post by mimosa »

I did this recently the other way (downloading from a Slackware mirror) and it was quite straightforward. However I didn't upgrade the "building chain" and would be interested to know what comes in the list after those dots! Actually I think I did upgrade glibc when I had trouble compiling something, and that was apparently enough to fix it. Presumably I can expect similar problems in the future :roll:
reyoutiao
Posts: 20
Joined: 21. Mar 2012, 17:51

Re: Can I use the Slackware -current kernel?

Post by reyoutiao »

I was tempted to wait until Slackware 1.4 came out, since currently both of my laptops have unsupported hardware, but I figured I'd just jump in and just do a kernel upgrade. The learning curve is pretty steep. Kind of like running into a wall! :D
thom1
Posts: 28
Joined: 16. May 2011, 09:40

Re: Can I use the Slackware -current kernel?

Post by thom1 »

mimosa wrote:However I didn't upgrade the "building chain" and would be interested to know what comes in the list after those dots!
I don't know exactly because I never do that. Maybe I forgot binutils and util-linux.
Thomas Bourdon
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Can I use the Slackware -current kernel?

Post by thenktor »

thom1 wrote:If you want to use the built kernel from current, you have to upgrade all the building chain (glibc, kernel-header, gcc, coreutils…)
You don't have to upgrade your toolchain.
Just list the kernel packages, that are currently installed on your 13.37 system: ls -l /var/log/packages/kernel-*
Get those packages from current and upgrade.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Can I use the Slackware -current kernel?

Post by Shador »

thenktor wrote:
thom1 wrote:If you want to use the built kernel from current, you have to upgrade all the building chain (glibc, kernel-header, gcc, coreutils…)
You don't have to upgrade your toolchain.
Just list the kernel packages, that are currently installed on your 13.37 system: ls -l /var/log/packages/kernel-*
Get those packages from current and upgrade.
The problem are third-party kernel modules. Upgrading just the kernel is enough, but as the gcc version changed with current, you won't anymore be able to build third-party modules for the kernel from current, as the kernel was built with 4.6. But your gcc is 4.5.

It's probably easier to build the current kernel yourself with gcc 4.5, i.e. a stock 13.37 toolchain. Unless you don't need 3rd-party modules. This is because upgrading a toolchain can have quite a huge impact compared to a kernel change.
Image
reyoutiao
Posts: 20
Joined: 21. Mar 2012, 17:51

Re: Can I use the Slackware -current kernel?

Post by reyoutiao »

I just ran ls -l /var/log/packages/kernel-* and got a pretty short list.

-rw-r--r-- 1 root root 6134 Mar 27 01:50 /var/log/packages/kernel-firmware-2.6.37.6-noarch-2
-rw-r--r-- 1 root root 21052 Mar 27 01:50 /var/log/packages/kernel-headers-2.6.37.6_smp-x86-2
-rw-r--r-- 1 root root 952 Mar 27 01:52 /var/log/packages/kernel-huge-2.6.37.6-i486-2
-rw-r--r-- 1 root root 187363 Mar 27 01:52 /var/log/packages/kernel-modules-2.6.37.6-i486-2
-rw-r--r-- 1 root root 2310368 Mar 29 16:55 /var/log/packages/kernel-source-2.6.37.6_smp-noarch-2
So this is all I need to upgrade (changing the kernel number?)?

This is a fresh install, so I don't think I'm using any third-party modules.

Also, does this correctly point to the Slackware -current repository: "http://slackware-current.net/index.php/"?
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Can I use the Slackware -current kernel?

Post by thenktor »

Shador wrote:The problem are third-party kernel modules. Upgrading just the kernel is enough, but as the gcc version changed with current, you won't anymore be able to build third-party modules for the kernel from current, as the kernel was built with 4.6. But your gcc is 4.5.
That's right, but everyone knows: third party modules are evil :twisted: :mrgreen: (I'm using them, too ;))
Shador wrote:It's probably easier to build the current kernel yourself with gcc 4.5, i.e. a stock 13.37 toolchain. Unless you don't need 3rd-party modules. This is because upgrading a toolchain can have quite a huge impact compared to a kernel change.
A toolchain only upgrade is insane, better upgrade everything to current then... and lose a lot of Salix packages that might not work in current.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Post Reply