[PlanetCCRMA] Kernels and more kernels...

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Oct 7 10:28:01 2003


> Thanks nando. 2.4.22-6.ll kernel seems to behave very nicely.
> 
> The polled Rx mode for e1000 NIC has resolved issues with NFS root
> machines locking up under certain heavy traffic conditions.
> 
> Currently I am copying the kernel source from /usr/src/redhat/BUILD/ and
> creating a new .config and compiling in /usr/src/linux.
> 
> Worked fine until I realised that having compiled alsa to suit from
> .src.rpm that apt and synaptic now saw alsa-kernel-2.4.22-6.ll.NFS as
> having broken dependencies to a kernel-2.4.22-6.ll.NFS package that, of
> course, doesn't exist.

The easiest workaround, well, ahem, "cheat" (related to my post
yesterday on how to cheat the system to believe alsa is installed from
rpms when it is not) would be to edit the alsa-driver spec file and
comment out the "Requires:" tags that require the proper kernel rpm to
be installed. Rebuild from that spec file and you should have a binary
package that does not need the kernel rpm package to be there. Of course
this is just "cheating" and you have to know what you are doing.... :-)

> I think I read somewhere on CCRMA that I can copy the .config back to
> the rpmbuild tree and have my custom config applied to the .rpm
> build...Yes?

Yes, it is possible. Is this just a configuration change? Or are you
adding a patch? I will try to write instructions on the web site on how
to do that. For a configuration change basically look at the config
files in /usr/src/redhat/SOURCES/*2.4.22*.config, the ones pertaining to
the ix86 platform are the ones I mantain (except, I think BOOT and uml).
Those are the configuration files used for the rpm build. 

> Is changing the version ( as one would in the kernel makefile )
> something that is easily done to the .src.rpm tree? Do I just edit a
> makefile somewhere?

You have to install the kernel source rpm (the .src.rpm, not the
kernel-source i386.rpm, which I believe you already did) and edit the
spec file you will find in /usr/src/redhat/SPECS. Near the top there is
a %define that defines the version and release the kernel rpm will have.

> Some other feedback....I went to try the 2.4.20-1.caps on local server,
> and it failed on devfs just like every other RH9 kernel I've tried.

To be expected, it is just a redhat kernel. 

> :-(...I need devfs, so I'm trying the 2.4.22-6.ll kernel sans some of
> the latency stuff. :-) Oh yes, that then failed on I2C...via mainboard
> interface, I think. I had most of the other I2C options off, so I just
> turned it all off and all is now fine. Is the mainboard sensors and some
> of the I2C stuff new to this CCRMA kernel?

IC2 could be different from previous kernels in the sense that the
kernel version is newer. The sensors stuff I added because somebody on
the list requested it (and to better match the RedHat kernel), it is
just the kernel modules from lm_sensors 2.6.5 (I think that is the right
version, I'm not really sure). 

-- Fernando