LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   So what are the steps to compile 2.6.0? (https://www.linuxquestions.org/questions/slackware-14/so-what-are-the-steps-to-compile-2-6-0-a-128524/)

CodeWarrior 12-23-2003 07:43 PM

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)?

Bruce Hill 12-23-2003 07:56 PM

http://www.linuxquestions.org/questi...hreadid=127095

Skyline 12-23-2003 09:03 PM

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 )

karthikrr 12-23-2003 10:02 PM

all u need is

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

edit lilo
/sbin/lilo

thats all......

kc00l 12-24-2003 05:39 AM

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.

karthikrr 12-24-2003 11:19 AM

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!!!

ts_sudarshan 12-24-2003 11:41 AM

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.

vinay_s_s 12-24-2003 11:54 AM

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!!!

[GOD]Anck 12-24-2003 01:19 PM

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?

DaOne 12-24-2003 01:24 PM

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.

DaOne 12-24-2003 01:25 PM

Forgot to mention...make install also...

renames /boot/vmlinuz to vmlinuz.old
renames /boot/System.map to System.old

tr4nce 12-24-2003 11:41 PM

make menuconfig
make && make install
make modules_install

copy your new kernel and then
/sbin/lilo

dfowensby 12-25-2003 12:00 AM

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.

DaOne 12-25-2003 09:29 AM

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.

dfowensby 12-25-2003 11:14 AM

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.


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