LinuxQuestions.org
Visit Jeremy's Blog.
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 09-08-2005, 01:23 PM   #1
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Rep: Reputation: 30
Kernel compile tips needed


Thanks to this forum, I am starting to get the hang of compiling my kernel.
I'd like to continue to experiment and hopefully further optimize my system,
but want to do it in a way that doesn't cause me to "backslide"
I have the boot issues handled, in my case, the kernel is installed
on hda (slack is on hdb) and booted via redhat lilo.

My concern is with maintaining the current configuration. I find that "make mrproper"
wipes it out, so I've been using "make clean" to start with.
questions:
1)If I back up the "dot" files (.config, .depend, etc) from /usr/src/linux into another
directory and mistakenly run "make mrproper", then can I restore the previous
configuration by simply copying those preserved "dot files" back?
2)I should familiarize myself with whatever utilities are helpful in testing and
trouble-shooting. Any one got a list for me? (and I can do the RFM thing)
3)Are there ways to test the kernel without rebooting?
4)Any other hints, advice, pointer to docs etc?

Thanks again
Tim
 
Old 09-08-2005, 01:32 PM   #2
Randall Slack
Member
 
Registered: Feb 2005
Location: Rotterdam, The Netherlands
Distribution: Debian - Ubuntu
Posts: 219

Rep: Reputation: 30
for what its worth!

1) YES! (only the .config would be enough i think)

2) what i do is "make menuconfig" and use google next to it

3) Not that i know of, but error messages during compile could give you an indication

4) Visit LQ on a regular basis
 
Old 09-08-2005, 02:57 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
3)Are there ways to test the kernel without rebooting?
You might take a look at kexec. The 2.6.13 supports it AFAIK. Take a look at this HOWTO if you're interested.
 
Old 09-08-2005, 03:21 PM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

Quote:
4)Any other hints, advice, pointer to docs etc?
first, you have to perfectly know your hardware, utilities like lspci may be very helpfull. Don't hesitate to have a look at the "help" option if you don't know if you have to enable or not a feature in your kernel. Unfortunately some features don't have a documented "help" menu
There's also Documentation directory in kernel sources which can provide you helpfull info

Oliv'
 
Old 09-08-2005, 03:27 PM   #5
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
if you're able to access a x server like xorg, you can use "make gconfig" which shows a lot of documentation about modules
I think this is the best way to configure kernel(it uses GTK2 btw, so it should be installed)
 
Old 09-08-2005, 05:04 PM   #6
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Great Tips! gconfig is not available as a make target on my RH partition.
As soon as I have time to boot back into slack I will check it out.
I do have xorg there.....

And a feature like kexec could really advance the ability of smaller organizations to
do custom kernel building and testing.

Great thread!
tim
 
Old 09-08-2005, 05:30 PM   #7
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Thank you LQ

Well... I just felt like thanking to everyone at this gorgeous forum, so:

THANKS!!!

Thanks to LQ Slackware's Forum I was able (some weeks ago) to compile a proper 2.6.12.5 kernel for my hp pavilion zv5200 laptop (right now 2.6.13 is out there so I have something to keep me busy at home ). Without doing this, that marvelous piece of hardware would have been doomed to run WindowsXP (Home... eeeekk) because the default 2.4.29 kernel didn't fit correctly, now works like a charm

Greetings.
Peace.
 
  


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
Tips on compiling a kernel. dr_zayus69 Linux - General 4 06-01-2005 07:47 PM
what ports needed to compile kernel? joroxx *BSD 13 12-01-2004 08:58 PM
kernel compile tips wanted Nightfrost Linux - General 2 11-03-2004 06:34 AM
how much space needed to compile a kernel? e1000 Linux - General 1 12-22-2003 03:17 PM
Red Hat 7 Help/Tips needed plz LX_NewBie Linux - Newbie 4 02-08-2002 07:35 AM

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

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