Results 1 to 1 of 1
-
15th Jun 2014, 01:43 PM #1
Compile 2.6.7, 2.6.8, 2.6.8.1, 2.6.9, 2.6.10, 2.6.11.6 Kernel w/module-init-tools
Compiling the kernel
Wanted to try out the 2.6 edition kernel? Never knew how to do it? Well heres how! Includes everything from compiling the kernel to configuring your bootloader.
Lets Begin!
Code:cd /usr/src wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2 tar xvfj linux-2.6.7.tar.bz2 cd linux-2.6.7 make clean && make mrproper make oldconfig ( or make menuconfig ) make bzImage make modules make modules_install
If you get alot of errors about .ko modules when you run make modules_install you need to update your modutils package with module-init-tools, see below.
Now to copy the files over for the kernel itself.
Code:cp .config /boot/config-2.6.7 cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.7 cp System.map /boot/System.map-2.6.7 mkinitrd /boot/initrd-2.6.7.img 2.6.7
/dev/mapper/control: open failed: No such file or directory
if you receive that error run the following commands:
Code:rm -rf /boot/initrd-2.6.7.img mkinitrd --omit-lvm-modules /boot/initrd-2.6.7.img 2.6.7
[Grub]
Your config will look something like this. Please note you need to follow the format for your current config.
Code:title Red Hat Linux (2.6.7) root (hd0,0) kernel /vmlinuz-2.6.7 ro root=LABEL=/ initrd /initrd-2.6.7.img
Now exit. Type "grub" at the bash prompt.
Code:savedefault --default=0 --once
[lilo]
Your config will look something like this. Please note you need to follow the format for your current config.
Code:image=/boot/vmlinuz-2.6.7 label=2.6.7 append="root=LABEL=/" read-only initrd=/boot/initrd-2.6.7.img
Code:/sbin/lilo -v -v /sbin/lilo -R 2.6.7
The above tells you how to enable failsafe in your kernels. SO that if the box panics the dc tech does not have to console in he just has to reboot the box.
How to install module-init-tools:
Code:cd /usr/src wget -c http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz tar -zxvf module-init-tools-3.0.tar.gz cd module-init-tools-3.0 ./configure --prefix="" make moveold make install ./generate-modprobe.conf /etc/modprobe.conf
Code:dd if=/dev/hda bs=512 count=1 2>&1 | grep GRUB dd if=/dev/hda bs=512 count=1 2>&1 | grep LILO
Code:root@linux [~]# dd if=/dev/hda bs=512 count=1 2>&1 | grep GRUB Binary file (standard input) matches root@linux [~]#
Areon Reviewed by Areon on . Compile 2.6.7, 2.6.8, 2.6.8.1, 2.6.9, 2.6.10, 2.6.11.6 Kernel w/module-init-tools Compiling the kernel Wanted to try out the 2.6 edition kernel? Never knew how to do it? Well heres how! Includes everything from compiling the kernel to configuring your bootloader. Lets Begin! cd /usr/src wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2 tar xvfj linux-2.6.7.tar.bz2 cd linux-2.6.7 make clean && make mrproper Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How do I compile Suhosin using VC6 (and php 5.2.14 source)?
By NewEraCracker in forum Technical Help Desk SupportReplies: 2Last Post: 21st Feb 2011, 11:47 PM -
compiling a program
By DigitalLover in forum Web Development AreaReplies: 5Last Post: 14th Nov 2010, 09:56 AM -
httpd (apache) compilation help
By somik in forum Server ManagementReplies: 5Last Post: 11th Sep 2010, 02:43 AM -
Compilation of datacenters worldwide
By NationWebHost in forum Webmaster ResourcesReplies: 43Last Post: 2nd Aug 2010, 02:27 PM -
Compiling gif2apng on debian
By SplitIce in forum Tutorials and GuidesReplies: 7Last Post: 29th Jan 2010, 12:37 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...