- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Upgrading RHAS 2.1 Kernel
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 04:55 PM
12-22-2003 04:55 PM
After installing the rpm, there seems to be a lot of files in /usr/src/redhat/SOURCES like .patch and .diff files. How do I proceed from there ? There's a file called linux-2.4.9.tar.bz2, is it the e.24 source code ?
Please help... Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 06:55 PM
12-22-2003 06:55 PM
Re: Upgrading RHAS 2.1 Kernel
first uncompress and untar it to /usr/src/ directory
then cd to linux-2.4.9 directory
and start the regular procedure (i. e.
1. edit the Makefile to change the EXTRAVERSION
2.make mrproper
3.make xconfig
4.make dep
5. make bzImage
6. make modules
7. make modules_install
then cop the bzImage file to boot directory and edit the boot manager apropriately.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 06:56 PM
12-22-2003 06:56 PM
Re: Upgrading RHAS 2.1 Kernel
Its a lot easier using the Red Hat Update utility to handle the upgrade. It does all the files, changes the grub.conf, everything.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 07:08 PM
12-22-2003 07:08 PM
SolutionBut if you anyway want to install kernel from the source:
rpm -ihv kernel-x.y.z.src.rpm
cd to /usr/src/redhat/SPECS
Type: rpm -bb kernel-x.y.z.spec
But again - I don't sure if you'll receive the same binary kernel as RH provides.
BTW, there are few projects which are trying to build binary RHEL from RH sources:
- http://whiteboxlinux.org/howto.html
- http://caosity.org/
-http://www2.uibk.ac.at/zid/software/unix/linux/
Rgds,
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2003 08:11 PM
12-25-2003 08:11 PM
Re: Upgrading RHAS 2.1 Kernel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 10:10 PM
12-29-2003 10:10 PM
Re: Upgrading RHAS 2.1 Kernel
install the package
kernel-source-xxx.rpm
this will install the kernel tree source under /usr/src/linux-2.4 on which official
rh kernel is based
PS: the kernel is GPL, so RH MUST provide EXACT source tree under which their production kernels run! if different, notify to linux kernel mailing list maintainers!
then
- cd /usr/src/linux-2.4
- edit Makefile and at the beginning you
will find a line like
EXTRAVERSION = -custom
change it to what you want, something like
EXTRAVERSION = -test
This determines the name of the modules' directory under /lib/modules, so the extraversion is useful for having multiple
modules directories. Keep in mind, otherwise you are going to risk to overwrite default modules directory created by installation process and not be able to boot
BTW if you want to replicate an official RH kernel, for example i686-smp one you have to cut off the "-custom" and leave only "EXTRAVERSION =" at this line
You can also replicate the installation kernel, using the kernel config flagged
kernel-xxx.BOOT.config
- make mrproper
- cp configs/kernel-2.4.xxx.config .config
for example if you want to customize your kernel starting from the i686-smp rh kernel
copy the kernel-2.4.xxx-i686-smp.config
file renaming it .config
- make menuconfig
and change eventually the parameters you like
or leave unchanged if you want to replicate
official RH kernel.
PS: the make menuconfig step IS necessary
even if you plan to do nothing. It has to do some steps: in this last case it is faster
to simply run "make oldconfig" that parses
your .config file and makes the necessary config steps
- make dep
- make bzImage
- make modules
- make modules_install
- cp arch/i386/boot/bzImage /boot/my_kernel
- cp System.map /boot/System.map.my_kernel
- eventually run mkinitrd
mkinitrd /boot/initrd_my_kernel.img 2.4.xxxx
(the name of your modules dir under /lib/modules created by make modules_install command)
- edit accordingly lilo.conf and run lilo or edit grub.conf to have your settings saved
HIH,
Gianluca
PS: sorry for the pedantic answer...