Building drivers on EL4.0 - What happened to kernel-source?
Waldher, Travis R
Travis.R.Waldher at boeing.com
Fri May 27 18:50:55 UTC 2005
> -----Original Message-----
> From: Rick Stevens [mailto:rstevens at vitalstream.com]
>
> As I noted in my previous post, 2.6 kernels are a bit different (not a
> lot, but some). I've not seen RHEL4 up close (well, I've seen
CentOS4)
> and they adhere to the FC2 and FC3 way of doing things. That means
that
> there is no kernel-source-whatever.rpm. You have to download and
> install the kernel source RPM (called "kernel-version.src.rpm"). Once
> you've installe that, then you have to do this:
>
> cd /usr/src/redhat/SPECS
> rpmbuild -bp --target=i386 kernel-2.6
>
> Once that's done, there is a full kernel source tree in
> /usr/src/redhat/BUILD/kernel-2.6. What I usually do to make it look
> more familiar is to:
>
> cd /usr/src/redhat/BUILD/kernel-2.6
> mv linux-shortversion /usr/src/linux-longversion
>
> "shortversion" is usually something like "2.6.11" (the major release
> number). "longversion" would include the patch level ("2.6.11-1.27").
> From that you can do the normal 2.6 kernel build by:
>
> cd /usr/src/linux-longversion
> (edit makefile and correct the "EXTRAVERSION" bit)
> cp /boot/config-longverion .config
> make oldconfig --OR-- make [x|menu]config
> make modules --OR-- make bzImage --OR-- make install
Thank you, that's what I needed to get on with life. Lol
I also added the old link of linux-2.6 to the long version name so it
looks more like it always used to be.
More information about the Redhat-install-list
mailing list