LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-08-2004, 10:19 PM   #1
justaguynsrq
Member
 
Registered: Mar 2003
Location: Sarasota, FL
Distribution: Ubuntu : Hoary
Posts: 90

Rep: Reputation: 15
Pre-Compile ?'s / Not the usual ............................


I have spent the better part of my day reading through the threads that relate to kernel upgrade/compiling, and for the most part, I believe I have learned alot. The old saying, "More I read, the more confused I get" does hold some weight. I don't consider myself a NOOB, not really!

To the meat of the matter:

Often after compiling, it seems people have problems with what modules have/haven't been compiled into the kernel. I have a problem following this logic. Does there exist a config file somewhere that indicates what modules have been compiled into the existing kernel? This would be invaluable when upgrading to a new kernel. Wouldn't it?

Does there exist a "checklist" of what info specifically will be required to have on hand for a re-compile. As far as I can see, you have to get "fully involved in the process", and then possibly be asked for critical system values ......................... only to get blown out of the water, by not having it. How many have had to learn the hardway of kernel compile by NOT KNOWING what you are being asked to do/ or provide? I have fstab, lilo, and my laptop ............ supporting continuous contact with these forums ...............................


On the brink of making the move ...........

TIA
 
Old 11-08-2004, 10:23 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
If you look in your linux source, you will find a '.config' file that has the kernel's configuration options listed.

You can copy this file into a new kernel's source and do a 'make oldconfig'. It will read in the existing '.config' file for the new kernel's options.
 
Old 11-08-2004, 10:34 PM   #3
justaguynsrq
Member
 
Registered: Mar 2003
Location: Sarasota, FL
Distribution: Ubuntu : Hoary
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks Matt, I will give it a try, didn't really see '.config' mentioned anywhere. I knew something like this had to exist, unless I ran into it, and it didn't "register"

Again, really appreciate it !
 
Old 11-08-2004, 10:37 PM   #4
justaguynsrq
Member
 
Registered: Mar 2003
Location: Sarasota, FL
Distribution: Ubuntu : Hoary
Posts: 90

Original Poster
Rep: Reputation: 15
Issue 'makeoldconfig' when exactly? In lieu of make config, in addition to make config? I think I plan on using xconfig, have heard good things about it, unless you have an opinion?
 
Old 11-08-2004, 10:40 PM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
cd /path/to/old/kernel/source
cp .config /path/to/new/kernel/source
cd /path/to/new/kernel/source

make oldconfig
make menuconfig
make bzImage && make modules && make modules_install

cp arch/i386/boot/bzImage /boot/bzImage-"kernel version"
cp System.map /boot/System.map-"kernel version"

pico /etc/lilo.conf

Add new listing for your new kernel (copy and paste existing listing, and change top line to point to your new kernel)

/sbin/lilo

reboot

EDIT: Off to bed, best of luck

Last edited by mdarby; 11-08-2004 at 10:42 PM.
 
  


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
wu-ftpd ... the usual problem j0ker Linux - Networking 4 10-21-2005 12:43 PM
Not your usual Widescreen problem Newbie1987 Linux - Newbie 2 01-27-2005 10:55 PM
mx700 (this is not the usual problem!!!) dave_blob Linux - Hardware 2 08-29-2004 12:20 AM
slower (then usual) dialup corbintechboy Fedora 0 07-25-2004 07:56 PM
Usual newbie needs help. Zander Slackware 17 10-06-2002 11:42 AM

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

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