LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-23-2003, 07:43 PM   #1
CodeWarrior
Member
 
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173

Rep: Reputation: 30
So what are the steps to compile 2.6.0?


Guys I am performing the following steps to compile the 2.6.0 kernel...

1.) make xconfig
2.) make bzImage
3.) make modules
4.) make modules_install
5.) updating lilo and running lilo

Are these the correct steps to compile the 2.6.0 kernel? The reason that I am asking this question is that I have read conflicting steps in other posts.
Are these the same steps needed for compiling any kernel(2.4, 2.6 etc)?
 
Old 12-23-2003, 07:56 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
http://www.linuxquestions.org/questi...hreadid=127095
 
Old 12-23-2003, 09:03 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Remember - no

make dep

needed in 2.6.

Dr Ozz's guide in Linux Genral is also worth checking out. ( no make dep though for 2.6 )
 
Old 12-23-2003, 10:02 PM   #4
karthikrr
Member
 
Registered: Nov 2003
Location: India
Distribution: Slackware 13.0 32-bit
Posts: 129

Rep: Reputation: 16
all u need is

make xconfig (use make mrproper before this, if reqd)
make
make modules_install

edit lilo
/sbin/lilo

thats all......
 
Old 12-24-2003, 05:39 AM   #5
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Quote:
Originally posted by karthikrr
all u need is

make xconfig (use make mrproper before this, if reqd)
make
make modules_install

edit lilo
/sbin/lilo

thats all......
Add a

#make install

If yoor /etc/lilo.conf and linux-2.6.0/Makefile are properly configured.

Or, after
#make modules_install
Do:
#cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.0
#cp System.map /boot/System.map-2.6.0
#cp .config /boot/config-2.6.0
#rm /boot/System.map
#rm /boot/config
#ln -s /boot/System.map-2.6.0 /boot/System.map
#ln -s /boot/config-2.6.0 /boot/config

Merry Xmas.
 
Old 12-24-2003, 11:19 AM   #6
karthikrr
Member
 
Registered: Nov 2003
Location: India
Distribution: Slackware 13.0 32-bit
Posts: 129

Rep: Reputation: 16
I still dont really know when ur sposed to do the system.map thing... I've never once done it, and everything works great for me... but a friend of mine HAS to do it, or usually ends up with kernel panics and weird problems!!!
 
Old 12-24-2003, 11:41 AM   #7
ts_sudarshan
LQ Newbie
 
Registered: Oct 2003
Location: Bangalore
Distribution: Arch, SUSE OSS
Posts: 23

Rep: Reputation: 15
CodeWarrior, the steps u mentioned are right... that's what i did and am running the kernel without any probs. to avoid major problems, import the config file from /boot/config file.(that is the default provided by the distro.) then, make changes to the config.. and follow the rest of the steps. copy the bzImage from the arch subdir, and also System.map to /boot. then edit lilo.conf and run lilo. now the new kernel should load properly. ATB.
 
Old 12-24-2003, 11:54 AM   #8
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
Also check for undefined symbols in modules ( ie depmod). Those might trouble u later if not now and for sound, u might want to manually load the modules.

2.6.0 is great. I just goes ZOOOOOM!!!
 
Old 12-24-2003, 01:19 PM   #9
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 33
I don't understand the benefit of doing:

#cp .config /boot/config-2.6.0
#rm /boot/config
#ln -s /boot/config-2.6.0 /boot/config

Why do you do this and does "make install" do it as well?
 
Old 12-24-2003, 01:24 PM   #10
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
make install does all of this AND runs /sbin/lilo. There are, however, a few changes that must be done first in order for make install to work.
** See Edit below for correction **

1) /usr/src/linux/Makefile must have line #450 uncommented.
2) If you plan to keep your existing kernel in case things go wrong (good idea), then you'll want to add the proper entries in /etc/lilo.conf.

That's it, and make install works every time. I don't see the point either, but some like to do things the "old school" way...nothing wrong with either.

EDIT: the .config in /boot is pointless unless you're copying it there for backup purposes. make install does NOT do anything with this. It is just a default config for whichever kernel you installed at installation. Anytime the config is changed, it resides in /usr/src/linux.

Last edited by DaOne; 12-24-2003 at 01:33 PM.
 
Old 12-24-2003, 01:25 PM   #11
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Forgot to mention...make install also...

renames /boot/vmlinuz to vmlinuz.old
renames /boot/System.map to System.old
 
Old 12-24-2003, 11:41 PM   #12
tr4nce
Member
 
Registered: Mar 2003
Location: Buenos Aires, Argentina
Distribution: Slackware-current
Posts: 75

Rep: Reputation: 15
make menuconfig
make && make install
make modules_install

copy your new kernel and then
/sbin/lilo
 
Old 12-25-2003, 12:00 AM   #13
dfowensby
Member
 
Registered: Dec 2003
Location: OceanView Virginia, gem of the Southern Shore
Distribution: Oz Unity Diamond IIB [x64 xfce]
Posts: 194
Blog Entries: 1

Rep: Reputation: 30
go to your source file (ie: /usr/src/linux-2.6.0)
do make mrproper
copy old defconfig from /linux-2.4.23/arch/i386/boot, go to ~/linux-2.6.0/arch/i386/boot, delete resident defconfig, paste in "old" defconfig. do:
make config
when the config prompt comes up, hold the Enter key down till your root prompt returns. do:
make && make bzImage && cp /usr/src/linux-2.6.0/arch/i386/boot/bzImage /boot/vmlinuz-2.6.0 && make modules && make modules_install && make install

write in your new linux boot entry in lilo.conf, do
lilo && reboot
enjoy
Luck -O.
 
Old 12-25-2003, 09:29 AM   #14
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by tr4nce
make menuconfig
make && make install
make modules_install

copy your new kernel and then
/sbin/lilo
When you ran make install,...

"copy your new kernel and then
/sbin/lilo"

that was already done.
 
Old 12-25-2003, 11:14 AM   #15
dfowensby
Member
 
Registered: Dec 2003
Location: OceanView Virginia, gem of the Southern Shore
Distribution: Oz Unity Diamond IIB [x64 xfce]
Posts: 194
Blog Entries: 1

Rep: Reputation: 30
only if you uncomment the makefile export line; ( in the event you're slammed with the SuSE style write-over of /boot/vmlinuz) you may want to keep your old vmlinuz, and boot back to that if you grenaded your new boot.. thus the cp ~/boot/bzImage. beentheredonethat--bad habits die hard.
--O.
 
  


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
re: steps for building pc ergo_sum Linux - Hardware 5 10-09-2005 02:51 PM
what are the steps for 2.6.8.1 mrlucio79 Red Hat 2 09-01-2004 08:46 AM
steps and procedures archangel Linux - General 1 08-07-2004 12:48 AM
Steps To Security MeMo Linux - Security 1 06-10-2004 03:53 AM
Samba-First steps alaios Linux - Networking 6 05-12-2003 04:16 PM


All times are GMT -5. The time now is 05:38 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 Google+: linuxquestions
Open Source Consulting | Domain Registration