LinuxQuestions.org
Review your favorite Linux distribution.
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 04-30-2007, 09:09 PM   #1
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Rep: Reputation: 15
Question about '.config' file for new kernel


I am using http://www.kroah.com/lkn/ as a guide to upgrade from kernel 2.4.33.3 to 2.6.20.7. Chapters 4 & 7 discuss making/configuring the .config file. I think I know what to do but I want to clarify the following:

1) Can I copy a .config file from version 2.4 to version 2.6?
2) If I do this and subsequently run "make menuconfig", will I see the settings of the 2.4 kernel as default-selected options?

In a nutshell, will having the old .config file in the new kernel directory make it easier to tweak the config file using the menu config tools, or do those wizards ignore the contents of the current .config file?
 
Old 04-30-2007, 10:15 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Just start with a new config. You can look off the only one, but the make system won't recognize it or interpret it properly.

Did you work really hard on the 2.4.x config or something ?
 
Old 04-30-2007, 10:20 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Why not just do it? Copy the thing over and run make menuconfig and see what you get. It's not like Linus himself is gonna come slap you for it.
 
Old 05-01-2007, 12:54 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You certainlay can just copy over your old config file. There are some options that won't show up correctly though as they are relocated or changed. In particulat you may find that you need to re-select the framebuffer options so you don't get a black screen your first time.
The best way to handle this may be to copy over the old file and then run 'make oldconfig' which will only ask you about the options which have changed or are new. Then run 'make menuconfig' and double check before compiling.
 
Old 05-01-2007, 01:20 AM   #5
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Quote:
run 'make oldconfig'
yes, and I'd add to be _especially_ careful about scsi/sata driver(s) that you might need. there were many options changed between 2.4-2.6 series kernels and if you don't fix them (make oldconfig does a good job, but for instance libata should be disabled, and proper drivers enabled..) you damned to kernel panic heellllll....

bwahahaha!!!!!!!

oh, sorry... did i type that out loud.
 
Old 05-01-2007, 03:26 AM   #6
sreyesp
LQ Newbie
 
Registered: Apr 2007
Posts: 14

Rep: Reputation: 0
You could also start with the kernels/huge26.s/config file from the Slackware-11.0 distribution, and modify it to suit your needs.
 
Old 05-01-2007, 07:12 AM   #7
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Did you work really hard on the 2.4.x config or something ?
No. I was under the assumption that when I initially installed SW there may have been some custom settings written to my current .config file. I was more concerned of getting to a setting in the new one that I was unfamiliar with and having a default option pre-selected for me that would work with my machine.

Last edited by overlook1977; 05-01-2007 at 07:14 AM.
 
Old 05-01-2007, 11:35 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Then you can copy in one of the Slackware 2.6.x configs and start with that if you want.
 
Old 05-01-2007, 12:16 PM   #9
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
but for instance libata should be disabled, and proper drivers enabled.
This has to be the strangest thing I've seen on LQ. Does slackware have a separate set of device driver writers who are replacing libata? If you disable libata, you will not have SATA access.
 
Old 05-01-2007, 12:21 PM   #10
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Quote:
This has to be the strangest thing I've seen on LQ. Does slackware have a separate set of device driver writers who are replacing libata?
no, im a dope.. its libata that replaced the old ide-ata support. sorry folks.

BLK_DEV_IDE_SATA <-old
ATA <- new

sorry all.
 
  


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
config file for kernel-2.6.16 ankscorek Linux - Kernel 3 07-27-2006 10:10 PM
Get the config file of 2.4.31 kernel Swift&Smart Slackware 1 03-13-2006 11:34 AM
.config file for 2.6 kernel sajjadc Linux - Distributions 8 10-14-2005 12:48 PM
Kernel question - .config file dtheorem Linux - Software 2 10-14-2003 04:10 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM

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

All times are GMT -5. The time now is 08:20 AM.

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