LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-01-2012, 09:09 PM   #1
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Rep: Reputation: 11
Upgrading a Custom Kernel


Hello,

I have compiled my own custom kernel (3.2.5 back when that was the new one) and it works great, I have my filesystem built-in to the kernel, required drivers, etcetera.

There are however a few questions I had regarding upgrading to a new (custom) kernel:

1. From these forums I've found that aaa_elflibs need to be upgraded and so I should remove or comment aaa_elflibs from /etc/slackpkg/blacklist, that is done. There are also the kernel-header, kernel-generic, kernel-generic-smp and a list of other kernel-whatevers in /etc/slackpkg/blacklist. Should those be upgraded as well (since -current is up to 3.2.7 now).

2. Does the kernel from kernel.org not come with those required kernel-header, kernel-other packages/files?

3. If I used "make oldconfig" after untarring the new kernel source and following the directions on Alien Bob's custom kernel page, will it use the old settings of my custom kernel?

3a. How exactly does "make oldconfig" work? Will holding down <Enter> just use the same settings (including drivers) that I had from my custom kernel (if the settings of the custom kernel apply to the new kernel)?
 
Old 03-02-2012, 05:01 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
1- You only need to do this when you upgrade your Slackware from one major version to other (Like from Slackware 13.1 to 13.37 or to -current).
2- No, you do not need to upgrade kernel-headers when you upgrade your custom kernel at all.
3- It should.
3a- it uses the .config file you copied before to create configuration. But check with make menuconfig before compiling.
 
Old 03-02-2012, 07:57 AM   #3
wargus
Member
 
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 98

Rep: Reputation: 23
If you have access to the /proc/config.gz (defined by a setting in the kernel config) you can simply enter the directory of your kernel source and

Code:
zcat /proc/config.gz > .config
you will have the config of your running system. I think this is default on Slackware. Then either

Code:
make oldconfig
it will ask about everything which is different from the version you are currently running. If you hold down Enter then, it will set everything new to the default. Or you run

Code:
make menuconfig
instead of make oldconfig, you'll see a (NEW) tag next to each new option. Make sure you find all of them in the menu, I am not sure how the behaviour is when compiling an option which is not set.

 
Old 03-02-2012, 09:37 AM   #4
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 74
1- As has been said, aaa-elflibs only get upgraded at major releases

2 - The kernel-* packages are repackaging the source as well as the kernel, that way people who didn't build their own can still build things that require the kernel headers and such. You don't need them if you're using a custom kernel (I've actually got them all blacklisted, myself)

3 - It should

4 - It reads the old config file you put in that directory, and presets all the options defined therein. Any new options introduced inbetween the two kernel versions, you are then prompted for. Holding down enter will give you the defaults for all the new options.
 
Old 03-02-2012, 02:08 PM   #5
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Thank you for taking the time to answer. All of you have answered questions 2 and 3(a) for me, but I'm still a bit confused on #1.

Suppose I am running Slackware-current, when do I need to upgrade aaa_elflibs and in order to do so, should I comment it (or remove the line that contains it) from /etc/slackpkg/blacklist?

If I was using Slackware-<stable>, would aaa_elflibs automatically be upgraded somewhere in the list of UPGRADE.txt's instructions, or would I need to upgrade that the same way as Slackware-current by removing it from /etc/slackpkg/blacklist?
 
Old 03-02-2012, 08:38 PM   #6
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Moment you need to upgrade aaa_elflibs is the moment change log says you to do so.

And UPGRADE.TXT does not uses slackpkg so it won't make a change. and Yes' aaa_elflibs gets upgraded some way in the UPGRADE.TXT.

In Slackware, UPGRADE.TXT is old way to do an upgrade. IT is still used by a lot of people and it is still a nice way to upgrade. Other way is to use slackpkg to do an upgrade. To upgrade your Slackware from one major version to other one using slackpkg, you need to remove aaa_elflibs from /etc/slackpkg/blacklist.
 
Old 03-02-2012, 11:06 PM   #7
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
I see, that answers my question. Thank you!
 
Old 03-03-2012, 06:20 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by ozanbaba View Post
In Slackware, UPGRADE.TXT is old way to do an upgrade. IT is still used by a lot of people and it is still a nice way to upgrade. Other way is to use slackpkg to do an upgrade. To upgrade your Slackware from one major version to other one using slackpkg, you need to remove aaa_elflibs from /etc/slackpkg/blacklist.

'slackpkg' is a great tool for automatically following updates in patches/ but I don't think I'd be comfortable letting it do a full stable->stable update. And I wouldn't label UPGRADE.TXT as "the old way" either. It's still an essential read come upgrade time.
 
  


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
Unable to build kernel RPM with 'custom name'. (need not kernel but kernel-something) RattleSn@ke Linux - Kernel 1 01-12-2011 06:30 PM
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 03:15 PM
Upgrade to etch without upgrading Custom built Xorg kushalkoolwal Debian 2 05-10-2007 12:16 PM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM

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

All times are GMT -5. The time now is 01:59 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