Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions Tips and Tutorials Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it
# 1  
Old 05-09-2007
Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it

Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it

Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it( almost same steps to upgrade to 2.6.11 and above ....note--> also check additional documentation)
#############################################################

1. First of all know what version ur kernel is

[root@Fed3 ~]# rpm -q kernel
kernel-2.6.9-1.667
Here the reply to rpm kernel query is kernel-2.6.9-1.667
So, google kernel-2.6.9-1.667.src.rpm and download it, as FC3 on installation doesnot have the /usr/src/linux-version source directory by default.

You can download FC3 your-kernel-ver-src.rpm from http://download.fedora.redhat.com/pu...dates/3/SRPMS/
Install kernel-.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)

2. Next issue the command
[root@Fed3 ~]#rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec

This will create /usr/src/redhat/BUILD/kernel-2.6.9/ directory with kernel source, which will have a file... kernel-2.6.9-i686.config, required if u want to atleast retain your existing kernel/device... configurations support in the new kernel(2.6.10-x.y)

3. Download the latest stable kernel source(herein 2.6.10 kernel), say linux-2.6.10.tar.bz2.
[root@Fed3 ~]#bzip2 -cd linux-2.6.10.tar.bz2 | tar xvf - -C /usr/src/

Here, /usr/src is the location where we want to put the new kernel source(u can opt alternate locations too)

[root@Fed3 ~]#cd /usr/src/linux-2.6.10/
[root@Fed3 ~]#make mrproper
[root@Fed3 ~]#uname -rm (to check if ur system architecture is i386 or i686...."did u see above the file named kernel-2.6.9-i686.config")

4. Copy kernel-2.6.9-i686.config to /usr/src/linux-2.6.10/.config
[root@Fed3 ~]#cp /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs/kernel-2.6.9-i686.conf
ig /usr/src/linux-2.6.10/.config
[root@Fed3 ~]#make oldconfig (to retain ur previous kernel configuration support), Huh....this take lotsa time.

5. [root@Fed3 ~]#make menuconfig (Add support to new devices,cbq or u32 support, etc, etc)

6. [root@Fed3 ~]#make all

7. [root@Fed3 ~]#make modules_install

8. [root@Fed3 ~]# make install

9. Edit grub.conf (/boot/grub/grub.conf)
[root@Fed3 ~]#vi /boot/grub/grub.conf
####### grub.conf after compilation################

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdc2
# initrd /initrd-version.img
#boot=/dev/hdc
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.10)
root (hd0,0)
kernel /vmlinuz-2.6.10 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.10.img
title Fedora Core (2.6.9-1.667)
root (hd0,0)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-1.667.img

In the above file...just change the default=1 value to default=0, so that your new,shiny kernel becomes the default boot kernel......Like this->

######### New grub.conf###############

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdc2
# initrd /initrd-version.img
#boot=/dev/hdc
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.10)
root (hd0,0)
kernel /vmlinuz-2.6.10 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.10.img
title Fedora Core (2.6.9-1.667)
root (hd0,0)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-1.667.img

10. Reboot your linux box .... It will ask you to choose which kernel to boot (default 5 secs time)...or maybe u can give a tab, after a few seconds of startup to open and choose the kernel boot menu.

Thats it..... Everybody should use the above steps at his own risk....although the author has successfully compiled and upgraded the 2.6 kernel with the above steps...he cannot guarantee successful implementation.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Missing Modules After Compiling Kernel

I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files: linux-headers-5.1.9_5.1.9-1_amd64.deb linux-image-5.1.9_5.1.9-1_amd64.deb linux-libc-dev_5.1.9-1_amd64.deb When I first booted into this... (4 Replies)
Discussion started by: Azrael
4 Replies

2. UNIX for Advanced & Expert Users

drbd module compiling error for Kernel

Hi I am trying to install drbd8 via apt-get on ubuntu10 sudo apt-get install drbd8-source password for vishals: Reading package lists... Done Building dependency tree Reading state information... Done drbd8-source is already the newest version. drbd8-source set to manually installed. 0... (0 Replies)
Discussion started by: vishal_vsh1
0 Replies

3. UNIX for Dummies Questions & Answers

Error while compiling the kernel 3.3.1.

Hi I m using redhat 6 with kernel release 2.6.32-71.el6.i686 I have downloaded latest kernel 3.3.1 from kernel.org . when i run make module_install i get below error. # make modules_install /usr/src/kernels/linux-3.3.1/scripts/depmod.sh: line 37: 11314 Killed ... (0 Replies)
Discussion started by: pinga123
0 Replies

4. Linux

kernel compiling

Hello, I have several questions to get awnsered about the newer linux kernels (2.6.25) and above. 1st question: Ive read that the newer kernels you can compile the marvell sd8686 driver from the source. can anyone confrim this? only binaries i see for that driver are for 2.6.24 and im already... (0 Replies)
Discussion started by: old noob
0 Replies

5. Linux

Automate compiling of linux kernel

Hi, I'm a newbie at kernel compilation. Currently trying to do a bash script to automate the compiling process of the linux kernel. I'm having some problems with automating the configuration. I know its possible to load an existing .config file in the make menuconfig screen prompt. But... (3 Replies)
Discussion started by: aloe_vera
3 Replies

6. UNIX for Dummies Questions & Answers

Compiling Kernel for an Embedded System

-----Edit----- My original post was long and confusing. To sum it up, I am wondering how to do the following Debian based commands on an RPM type system. dpkg -i XXX.deb update-initramfs -k xxx -c update-grub I hope someone can provide some insight. Thanks in advance! --------------... (0 Replies)
Discussion started by: b4sakenxx
0 Replies

7. Linux

Help Cross compiling a kernel for an HP Jornada 728

Hello, I just bought an old Jornada 728 and, as you may know, it comes with Windows CE 3.0. I do not use Windows, so i wanted to create my own linux system for the Jornada. I know there are projects like Jlime, Familiar Linux, 720 Degrees, etc. But i want something based on the distribution i... (1 Reply)
Discussion started by: semash!
1 Replies

8. UNIX for Dummies Questions & Answers

Compiling Mach 3.0 Kernel

Hi, I am very new to this. I would like to compile the Mach 3.0 kernel. Can someone explain, step-by-step, how to turn all the Mach 3.0 kernel code into a single binary file that will run directly on an x86 computer? Also, once (and if) I get it working, what software works on it? My goal is... (2 Replies)
Discussion started by: dublinus
2 Replies

9. Red Hat

Compiling 2.6 Kernel. :confused:

Dear Linux Masters, I need ur help in the following: 1. Compiling 2.6 kernel. 2. my Redhat system is 2.4 kernel how to add 2.6 kernel. 3. I need minimum feature in 2.6 ( most probably related to networking) Please let me know if any sites to download 2.6 kernel. Can u all please help me... (2 Replies)
Discussion started by: ashokmeti
2 Replies

10. UNIX for Advanced & Expert Users

problem when compiling and installing the kernel

hello; i'm trying to install a new kernel in fedora core 5 i'm using the following command: /usr/src/linux-2.6.15.1# make && make modules && make modules_install && make install but i always have the following error: ld: édition de lien finale en échec: Aucun espace disponible sur le périphérique ... (1 Reply)
Discussion started by: jalil smail
1 Replies
Login or Register to Ask a Question