LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-25-2011, 09:55 PM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Rep: Reputation: 20
Question How to modify kernel config?


Dear all,

I'm running Slackware64 13.1 and I's like to make some changes in my kernel (2.6.33.4) configuration. Specially I'd like to :
  • Change MTRR setting from "continuous" to "discrete"
  • disable nVidia Framebuffer Support
  • disable nVidia Riva support

So, I'm juts wondering to do that keeping the original configuration.
I mean with two kernel version it's alright.
Also, I wish to know how to proceed. Do I have to go through all the building kernel processing?
  1. make mrproper
  2. make xconfig
  3. make prepare
  4. make
  5. make modules_install

And then, what about boot directory and Lilo?
I mean, it's same kernel version ....
And I want to make sure that I keepp the original config intact so that I can boot on it any time ...

Thank you,

Éric.
 
Old 11-25-2011, 11:15 PM   #2
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
I've just found that one can edit the file Makefile and change the line "EXTRAVERSION =" to create a unique suffix at the end of the default name of the kernel.

Well, is it really what people do when they build a new kernel version?

Now lets suppose EXTRAVERSION is set to -new, I guess my new kernel will have the name bzImage-2.6.33.4-new.
So, will I get a new directory /usr/modules/2.6.33.4-new in addition to /usr/modules/2.6.33.4?
 
Old 11-26-2011, 12:03 AM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Quote:
Originally Posted by aihaike View Post
I've just found that one can edit the file Makefile and change the line "EXTRAVERSION =" to create a unique suffix at the end of the default name of the kernel.

Well, is it really what people do when they build a new kernel version?

Now lets suppose EXTRAVERSION is set to -new, I guess my new kernel will have the name bzImage-2.6.33.4-new.
So, will I get a new directory /usr/modules/2.6.33.4-new in addition to /usr/modules/2.6.33.4?
You should try it, and find out for yourself. That's the best way to learn. It sounds like you are on the right track so far.
 
Old 11-26-2011, 12:12 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You don't edit the Makefile - except in unusual circumstances.
Nor do you directly edit the config file, but yes adding the EXTRAVERSION will do what you hope. Show us a link to your reference - Alien Bob (IIRC) had a good one for Slack.
 
Old 11-26-2011, 06:02 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Rather than using EXTRAVERSION, set the LOCALVERSION string within the config file via its entry in xconfg/menuconfig. That's what I (and I think most others) do.
I believe EXTRAVERSION is intended to reflect differences in the source tree where as LOCALVERSION is there to reflect differences in the config. (but I could be wrong)

Alien bob's "Building a Linux Kernel from source" wiki page is a good starting point. I second syg00's suggestion.
 
Old 11-26-2011, 09:12 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
btw you can add kernel boot options to change mtrr setting and disable framebuffer without recompile the kernel

in lilo.conf
append="vga=normal enable_mtrr_cleanup"
 
Old 11-26-2011, 03:33 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sorry, sloppiness on my part - Gazl is correct, LOCALVERSION is what you want.
 
Old 11-27-2011, 09:47 PM   #8
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
Thumbs up

Hey guys,

Thank you so much for your replies.
GazL, LOCALVERSION was what I was looking for.
Best,

Éric.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
which config files to modify?? linuxnewbie82 Fedora 3 07-13-2006 04:04 PM
Modify CONFIG_PCI_MSI and CONFIG_4KSTACKS in kernal config? hallamigo Linux - Software 4 12-14-2005 07:25 AM
I want change mail header info, which config file i should modify? exper Linux - Software 2 12-05-2003 06:46 AM
locating linux config files and how to modify a bash kernel maelstrombob Linux - Newbie 1 11-18-2003 09:56 PM
GRUB. Which config file do I modify? correro Linux - General 14 03-18-2003 10:11 AM

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

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