Updating kernel source with yum, How?

Rick Stevens rstevens at vitalstream.com
Tue Oct 12 17:01:58 UTC 2004


Graeme Nichols wrote:
> On Tue, 2004-10-12 at 02:56, Rick Stevens wrote:
> 
>>Graeme Nichols wrote:
>>
>>>On Sat, 2004-10-09 at 07:32, Rick Stevens wrote:
>>>
> 
> <snip>
> 
>>>Hello Rick, an update on my first reply to this post:
>>>
>>>The snd-intel8x0 is no longer listed in the output of lsmod. When I
>>>tried to modprobe soundcore it worked OK. when I tried to modprobe
>>>snd-intel8x0 I got the following:
>>>
>>>[root at barney mpu401]# modprobe soundcore
>>>[root at barney mpu401]# modprobe snd-intel8x0
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd.ko': No such file or
>>>directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/seq/snd-seq-device.ko': No
>>>such file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-rawmidi.ko': No such
>>>file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko': No such file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-page-alloc.ko': No such
>>>file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-timer.ko': No such file
>>>or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-pcm.ko': No such file or
>>>directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/pci/ac97/snd-ac97-codec.ko': No
>>>such file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd.ko': No such file or
>>>directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/seq/snd-seq-device.ko': No
>>>such file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-rawmidi.ko': No such
>>>file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko': No such file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-page-alloc.ko': No such
>>>file or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-timer.ko': No such file
>>>or directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/core/snd-pcm.ko': No such file or
>>>directory
>>>WARNING: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/pci/ac97/snd-ac97-codec.ko': No
>>>such file or directory
>>>FATAL: Could not open
>>>'/lib/modules/2.6.8-1.521/kernel/sound/pci/snd-intel8x0.ko': No such
>>>file or directory
>>>
>>>All the directories are there but none of the files/drivers.
>>
>>Holy shamoley!  That's really bad.
>>
>>
>>>Since I tried to 'make' the alsa-driver-1.0.3 tarball I seem to have
>>>cocked up a lot of things, including cron which is no longer working
>>>I've just discovered. 
>>
>>Man, that's weird.  A "make" shouldn't wipe out the currently installed
>>stuff unless you did a "make install" and the Makefile's dependencies
>>were screwed up.  If it wiped your stuff out with a "make install" and
>>the initial make was unsuccessful, then I'd shoot a strongly worded note
>>to the ALSA people telling them their Makefile is buggered.
>>
>>
>>>                       I have tried a few times to install the
>>>kernel-2.6.8-1.521.src.rpm using 'i' or 'U' but while it appears to
>>>install OK I cannot find it anywhere even though rpm -qi says it is
>>>installed.
>>>
>>>Does any of the above info help?
>>
>>As to the source, it should be in /usr/src/linux-kernelversion.  For
>>that version, /usr/src/linux-2.6.8-1.521.  A "yum -qil packagename"
>>should tell you what files were installed where.
> 
> 
> Rick, I did a rpm -qil kernel-2.6.8-1.521 and the following is a short
> section of the output:
> 
> /lib/modules/2.6.8-1.521/kernel/sound/pcmcia
> /lib/modules/2.6.8-1.521/kernel/sound/pcmcia/pdaudiocf
> /lib/modules/2.6.8-1.521/kernel/sound/pcmcia/pdaudiocf/snd-pdaudiocf.ko
> /lib/modules/2.6.8-1.521/kernel/sound/soundcore.ko
> /lib/modules/2.6.8-1.521/kernel/sound/synth
> /lib/modules/2.6.8-1.521/kernel/sound/synth/emux
> /lib/modules/2.6.8-1.521/kernel/sound/synth/emux/snd-emux-synth.ko
> /lib/modules/2.6.8-1.521/kernel/sound/synth/snd-util-mem.ko
> /lib/modules/2.6.8-1.521/kernel/sound/usb
> /lib/modules/2.6.8-1.521/kernel/sound/usb/snd-usb-audio.ko
> 
> As you can see the files didn't go into /usr/src/linux-2.6.8-1.521

Of course not.  "kernel-2.6.8-1.521" is the binary RPM.  You need to
"rpm -qil kernel-sourcecode-2.6.8-1.521" is the source RPM.
> 
> Now note the third last line above and the output of the following
> command:
> 
> [root at barney synth]# ls
> emux
> [root at barney synth]# ls
> /lib/modules/2.6.8-1.521/kernel/sound/synth/snd-util-mem.ko
> ls: /lib/modules/2.6.8-1.521/kernel/sound/synth/snd-util-mem.ko: No such
> file or directory
> [root at barney synth]# 
> 
> I cd to the synth directory, did an 'ls' to see if the snd-util-mem.ko
> file was there, and it wasn't. I then did an 'ls' on the whole path. It
> still wasn't there (not surprising). Looks like the kernel source
> package I downloaded is a dud with all the files missing, although the
> package was quite large;
> 
> -rw-------  1 graeme graeme 36139684 Oct  8 14:48
> kernel-2.6.8-1.521.src.rpm

That's the wrong RPM.  The "kernel-sourcecode" RPM is 46098530 bytes in
length.  Here's a URL to fetch the source:

http://mirrors.kernel.org/fedora/core/updates/2/i386/kernel-sourcecode-2.6.8-1.521.noarch.rpm

Download that to a scratch directory, then

	# cd /scratch/directory
	# rpm -ivh  kernel-sourcecode-2.6.8-1.521.noarch.rpm
	# cd /usr/src/linux-2.6.8-1.521

and away you go.

> I am going back to the previous kernel, 2.6.6, and try and get sound
> working again. I can load the drivers OK. See following:
> 
> [graeme at barney download]$ sudo /sbin/lsmod
> Module                  Size  Used by
> snd_mixer_oss          13824  1
> snd_intel8x0           26796  1
> snd_ac97_codec         54788  1 snd_intel8x0
> snd_pcm                69256  1 snd_intel8x0
> snd_timer              17284  1 snd_pcm
> snd_page_alloc          8072  2 snd_intel8x0,snd_pcm
> gameport                3328  1 snd_intel8x0
> snd_mpu401_uart         4864  1 snd_intel8x0
> snd_rawmidi            17444  1 snd_mpu401_uart
> snd_seq_device          6152  1 snd_rawmidi
> snd                    39396  8
> snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
> soundcore               6112  2 snd
> ipv6                  184672  10
> parport_pc             19392  1
> lp                      8236  0
> parport                29640  2 parport_pc,lp
> autofs4                12932  0
> sunrpc                109924  1
> prism54                44060  0
> ipt_REJECT              4736  1
> ipt_state               1536  2
> ip_conntrack           24968  1 ipt_state
> iptable_filter          2176  1
> ip_tables              13568  3 ipt_REJECT,ipt_state,iptable_filter
> via_rhine              15752  0
> mii                     3584  1 via_rhine
> microcode               4768  0
> joydev                  6976  0
> floppy                 47440  0
> sg                     27680  0
> sd_mod                 16384  0
> usb_storage            53576  0
> scsi_mod               91984  3 sg,sd_mod,usb_storage
> dm_mod                 32800  0
> ehci_hcd               22916  0
> uhci_hcd               24472  0
> button                  4632  0
> battery                 6924  0
> asus_acpi               8984  0
> ac                      3340  0
> ext3                  103656  2
> jbd                    40728  1 ext3
> 
> Any ideas?

You definitely have an issue with the 521 kernel.  I'd try a reinstall
of the binary RPM to restore the kernel environment to some semblance
of normalcy.  Boot your older kernel and see if you have the new
binary kernel RPM in /var/cache/yum/updates-released/packages.  If you
do:

	# cd /var/cache/yum/updates-released/packages
	# rpm -Uvh --force kernel-2.6.8-1.521.i686.rpm

While you're in that directory, see if you have the source RPM in there
(to see if yum fetched it).  Remember, the CORRECT name for the source
RPM is "kernel-sourcecode-2.6.8-1.521.noarch.rpm"
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-         It is better to have loved and lost.  Cheaper, too!        -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list