LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 03-19-2007, 05:18 PM   #1
ericfx
Member
 
Registered: Jun 2004
Location: CA Foothills
Distribution: Slackware
Posts: 54

Rep: Reputation: 15
My kernel compile guide for Slackware 11


I wrote a how-to on how to compile the 2.6.18 kernel that is on the Slackware FTP.

It might be helpful too you, check it out.

http://www.h0nke.com/help-kernslack11.php
 
Old 03-19-2007, 10:25 PM   #2
Nem
Member
 
Registered: Mar 2007
Location: United States
Distribution: Slackware 11.0
Posts: 88

Rep: Reputation: 15
Hey thx!
I found it useful because I never
built my own kernel and when I will
want to, this will be a good guide!
 
Old 03-20-2007, 12:02 AM   #3
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
make -j3 bzImage
i think u dont need the two "make -j3 .." lines
make modules_install will do all the job.

what i usually do is untar the kernel to my home, so that i have full control, will use xconfig or gconfig, from my xwindow, too coool
 
Old 03-20-2007, 04:33 AM   #4
cowyn
Member
 
Registered: Oct 2006
Location: Beijing, China
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
not bad.
just said as rkrishna:
sudo make -j4
sudo make modules_install
and then cp ... to ...
that's it.to compile kernel 2.6 is diff from 2.4.
 
Old 03-20-2007, 08:46 AM   #5
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
PART FROM MY PAGE it is in a pretty bad condition now
Code:
$ make menuconfig 
$ make 
# cp System.map /boot/System.map-2.6.x.x ; ln -sf /boot/System.map-2.6.x.x /boot/System.map
# make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x.x
#lilo ------ edit lilo before this
#reboot ------to test the new kernel
 
Old 03-20-2007, 11:34 AM   #6
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Imo a bit simpler method is to just use 'make install' and don't waste time on copying files. This will copy the old vmlinuz to vmlinuz.old. And this way you don't even need to edit lilo.conf.
 
Old 03-22-2007, 05:06 PM   #7
ericfx
Member
 
Registered: Jun 2004
Location: CA Foothills
Distribution: Slackware
Posts: 54

Original Poster
Rep: Reputation: 15
My current web host sucks, so if my site is down, you can view the how-to on Open Addict:

http://www.openaddict.com/how_to_com...ware_11_0.html
 
Old 03-23-2007, 09:46 AM   #8
markomarko
Member
 
Registered: Nov 2006
Location: Belgrade, Serbia
Distribution: Slackware
Posts: 55

Rep: Reputation: 19
i have slack 10.2. with 2.4.31 kernel, if i compile and install latest kernel, does that means that i will have to reinstall some programs that i compiled and installed with ./configure;make;make install?

and, this is maybe offtopic, but i want to know what are pros and cons when we are talking about replacing kernel?

thanx!
 
Old 03-23-2007, 10:39 AM   #9
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware 13.1
Posts: 1,445

Rep: Reputation: 74
Most programs should still work, only some that for example build a kernel module (like fuse to get ntfs-3g driver working, proprietary video drivers or vmware) would require to build them again.

About pros and cons: You would have to read the kernel changelog or some reviews to see if you need it. If your system is like you like it and works without problems, IMHO you should not switch. Of couse if you intend to learn something just do it
 
Old 03-24-2007, 11:53 AM   #10
Drone4four
Member
 
Registered: Feb 2006
Distribution: LM12, Slackware
Posts: 179

Rep: Reputation: 30
Thanks h0nke for this extremely useful guide.
 
Old 04-01-2007, 01:34 PM   #11
cyb0rg777
Member
 
Registered: Dec 2004
Location: ~
Distribution: Debian
Posts: 143
Blog Entries: 8

Rep: Reputation: 15
I've been having trouble with the configuration.
If I copy my configuration from /boot to the /usr/scr/linux-<>/.config,
and then do a make,
it should produce exactly the same kernel,
right?

What if I upgrade my kernel and want the same config as the old kernel?
 
Old 04-01-2007, 02:18 PM   #12
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
Hi

When you compile your kernel you copy from /usr/src/linux to /boot
the following files
1)bzImage
2)System.map
3).config

the .config file contains all the choices that you have made during the make menuconfig time ( or xconfig etc)

what i usually do is to keep a copy of .config on my usb stick and whenever i want to compile my kernel after a fresh Slackware install,

to use the exact stored .config


hope i was helpful


props
 
Old 04-01-2007, 09:47 PM   #13
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Quote:
Originally Posted by pdw_hu
Imo a bit simpler method is to just use 'make install' and don't waste time on copying files. This will copy the old vmlinuz to vmlinuz.old. And this way you don't even need to edit lilo.conf.
but this could screw you if you do something dumb and evoke kernel panic...

not that i've ever done that myself

its nice to have my old images around in case I 'over-optimize' my current kernel.

especially when still learning its good to keep some old ones in lilo.conf
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel compile guide k3rnel Linux - Kernel 1 03-12-2007 02:11 PM
Help - Need guide on how to (re)compile kernel in 9.2 timko Suse/Novell 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration