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)? |
|
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 ) |
all u need is
make xconfig (use make mrproper before this, if reqd) make make modules_install edit lilo /sbin/lilo thats all...... |
Quote:
#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. |
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!!!
|
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.
|
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!!! |
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? |
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. |
Forgot to mention...make install also...
renames /boot/vmlinuz to vmlinuz.old renames /boot/System.map to System.old |
make menuconfig
make && make install make modules_install copy your new kernel and then /sbin/lilo |
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. |
Quote:
"copy your new kernel and then /sbin/lilo" that was already done. |
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. |