[PlanetCCRMA] rebuilding alsa for edge kernel

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Sat Jul 23 15:35:04 2005


On Sat, 2005-07-23 at 11:36, Hector Centeno wrote:
> I just successfully rebuilt the alsa-driver and alsa-kernel for the 
> 2.6.10-2.1.ll.rhfc3.ccrma. I had to do it in order to include a patch 
> that allows me to use my USB keyboard (Miditech Midistuido-2). I 
> downloaded the alsa source rpm from the CCRMA repository and everything 
> worked fine (I uninstalled the default Kernel-module-alsa for installing 
> the new compiled alsa-kernel). Now I'm trying to do the same for the 
> last edge kernel (0.21) following the same procedure but is not working. 
> Even though I recompiled the alsa-kernel, at boot it complains about 
> unknown symbols. If I uninstall the rebuilt kernel 

You mean "kernel-module-alsa-...", right?

> and reinstall the 
> official one everything works fine. Is there a different procedure to 
> follow for building the alsa-kernel for the edge kernels? Do I need a 
> different alsa-driver.spec file?

No, the same one should work for both kernels. Are you booting into the
edge kernel when you rebuild the rpm? Otherwise you have to tell the
spec file which kernel you are building on:

# kernel version:           --define "kernel_version VERSION_TO_USE"

But if you are running the edge kernel the spec file should pick up the
right kernel version. Are you using the right target cpu? (either
"--target i686" or "--target i586", has to correspond to the
architecture of the kernel you have installed. 

-- Fernando