Building drivers on EL4.0 - What happened to kernel-source?
Rick Stevens
rstevens at vitalstream.com
Fri May 27 21:17:36 UTC 2005
Waldher, Travis R wrote:
>
>>-----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.
Ta, DAH! Yup, so do I. Well, now you know the fine art of getting
2.6 kernel sources installed. I partially quote from the Fedora Core 3
release notes (which was also present in FC2 and since RHEL4 is based
on FC2, these also seem to apply to RHEL4):
"In order to eliminate the redundancy inherent in providing a separate
package for the kernel source code when that source code already exists
in the kernel's .src.rpm file, Fedora Core 3 no longer includes the
kernel-source package. Users that require access to the kernel sources
can find them in the kernel .src.rpm file."
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- "Microsoft is a cross between The Borg and the Ferengi. -
- Unfortunately they use Borg to do their marketing and Ferengi to -
- do their programming." -- Simon Slavin -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list