[PlanetCCRMA] kernel source access

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Thu Dec 7 12:20:02 2006


On Thu, 2006-12-07 at 16:16 +0000, Rob Jackson wrote:
> blindman jones wrote:
> [snip]
> >> I need the kernel source for 2.6.16-1.2080.16.rdt.rhfc5.ccrma in order 
> >> to get a wireless network card working but am unable to find it 
> 
> > The src rpms are here...
> > 
> > http://ccrma.stanford.edu/planetccrma/mirror/all/linux/SRPMS/
> > 
> > You might not need to rebuild the whole kernel though, read this first
> > to be sure...
> > http://fedora.redhat.com/docs/release-notes/fc5/#id2983562
> > "Fedora Core does not include the kernel-source package provided by
> > older versions since only the kernel-devel package is required now to
> > build external modules."
> > 
> 
> OK, I've tried the kernel-devel package, and it seems that it probably 
> has the correct files; however,
> # yum install kernel-devel
> only installs the source for the 2.6.18-1 FC kernel, as supposed to the 
> 2.6.16-1 planetCCRMA kernel. As a result, I am unable to build with the 
> CCRMA kernel. How can I get the kernel-devel package for the CCRMA 
> 2.6.16-1.2080.rrt.rhfc5.ccrma kernel?

You have to explicitly tell yum to install that particular version
(kernel and kernel-devel packages can be installed multiple times and by
default yum will pick the "latest" versioned kernel or kernel-devel
package to install). 

So, it would be something like:
  yum install kernel-devel-2.6.16-1.2080.rrt.rhfc5.ccrma
or the rdt version. 

If yum still refuses (it sometimes does not want to install older
versions and there's no way around it - this will be fixed in fc6 by
naming the kernel packages differently), you can just download the
binary package and install it by hand. It is in the planetcore
repository:
http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetcore/5/i386/

(install with "rpm -ivh", _NOT_ "rpm -Uvh")

-- Fernando


> I've now switched to the rrt kernel, which appears to work fine in the 
> hope that installing the source rpm's would solve the problem, however,
> # rpm -i kernel-2.6.16-1.2080.16.rrt.src.rpm
> gives error: cannot create %sourcedir /usr/src/redhat/SOURCES
> 
> All help appreciated as to how I can get the headers/sources needed to 
> compile the wireless card driver.