Re: after kernel re-compile tons of sound errors
On Saturday 31 December 2005 06:18, Craig Hagerman wrote: Hi, I did %make clean make bzImage make modules make modules_install Don't forget to also delete /lib/modules/2.6.14/... before make modules_install Otherwise you might be mixing incompatible modules (unlikely). But why use not use the latest kernel 2.6.14.5 ? I'm sure it's more stable than plain 2.6.14 Ernest. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
after kernel re-compile tons of sound errors
Hi, I have spent the past day or so compiling and re-compiling a kernel to try to get everything working right. My original reason was to be able to activate dma. Fortunately DMA now works correctly. Now I have a new problem - sound doesn't work. I am sure that I have the correct choices selected for sound within make menuconfig. I have tried compiling the sound as a module and as a built in, and in neither case does it work. dmsg spits out a strange bunch of errors about sound. I checked in /var/log/syslog and the file is ENORMOUS - there are tons of sound errors. I will post a small sample below (it really does go on, and on, and on...) I don't understand what has gone wrong. I did %make clean make bzImage make modules make modules_install and other built-ins or modules seem to have been installed properly. Any ideas what is going on with my sound? Craig - dmsg AND /var/log/syslog sample: Dec 31 14:32:09 gatito modprobe: FATAL: Error inserting snd_pcm (/lib/modules/2.6.14/updates/alsa/acore/snd-pcm.ko): Invalid module format Dec 31 14:32:09 gatito modprobe: WARNING: Error running install command for snd_pcm Dec 31 14:32:09 gatito modprobe: WARNING: Error inserting snd_ac97_bus (/lib/modules/2.6.14/updates/alsa/pci/ac97/snd-ac97-bus.ko): Invalid module format Dec 31 14:32:09 gatito modprobe: WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.14/updates/alsa/pci/ac97/snd- ac97-codec.ko): Invalid module format Dec 31 14:32:09 gatito kernel: snd_ac97_bus: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito kernel: snd_ac97_codec: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito kernel: snd: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito modprobe: FATAL: Error inserting snd (/lib/modules/2.6.14/updates/alsa/acore/snd.ko): Invalid module format Dec 31 14:32:09 gatito modprobe: WARNING: Error running install command for snd Dec 31 14:32:09 gatito kernel: snd_seq_device: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito modprobe: WARNING: Error inserting snd_seq_device (/lib/modules/2.6.14/updates/alsa/acore/seq/snd- seq-device.ko): Invalid module format Dec 31 14:32:09 gatito kernel: snd_rawmidi: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito modprobe: WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.14/updates/alsa/acore/snd- rawmidi.ko): Invalid module format Dec 31 14:32:09 gatito kernel: snd_mpu401_uart: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito modprobe: WARNING: Error inserting snd_mpu401_uart (/lib/modules/2.6.14/updates/alsa/drivers/mpu401/snd- mpu401-uart.ko): Invalid module format Dec 31 14:32:09 gatito kernel: snd_page_alloc: version magic '2.6.14 SMP gcc-4.0' should be '2.6.14 gcc-4.0' Dec 31 14:32:09 gatito modprobe: WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.14/updates/alsa/acore/snd- page-alloc.ko): Invalid module format
Re: after kernel re-compile tons of sound errors
Hi again, I was not able to figure out all of the sound errors, but I have fixed everything. I think that (maybe) the problem had to do with compiling and installing a kernel manually vs. the debian way. I have been wrestling with a new kernel compile all last night and this morning and tried to do this with dpkg a couple times. I think maybe there was some kind of conflict between that and my later manual compile and install. I got around the problem by downloading the lastest stable kernel (2.6.14.5) and doing a manual compile and install. This meant that the /lib/modules/2.6.14.5 directory was brand new (since I think the problem was in the old /lib/modules/2.6.14 directory) I also discovered that you have to recompile and reinstall the nvidia module after installing a new kernel. Here is how I installed the 2.6 kernel and nVidia module: -- Kernel -- download lastest stable kernel from www.kernel.org (linux-2.6.14.5.tar.bz2) into /usr/src extract % tar xvfj linux-2.6.14.5.tar.bz2 link linux-2.6.14.5 to linux: % ln -s linux-2.6.14.5 linux move to that directory % cd linux I already spent a lot of time selecting options for the kernel so I simply copied the .config file from the previous kernel % cp ../linux-2.6.14/.config ./ check the kernel config and alter as needed: % make menuconfig Make new kernel image % make clean % make bzImage Make install new modules: % make modules % make modules_install Copy kernel image to /boot % cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/ -- Lilo -- update lilo, add information about new image, run /sbin/lilo % vi /etc/lilo.conf image=/boot/bzImage root=/dev/hda6 label=Linux-2.6.14-5 read-only % lilo -- nVidia Modules -- Download and install nVidia module source, which creates a source tarball in /usr/src % apt-get install nvidia-kernel-source nvidia-kernel-common extract tarball % tar -xfvz nvidia-kernel-source.tar.gz Build the kernel module and nvidia module the 'debian way' (even though I won't use the kernel_image) % make-kpkg clean % make-kpkg kernel_image modules_image This creates a kernel-image.deb and nvidia-kernel.deb in /usr/src. The debian way is to then use dpkg -i to install both. Instead I installed only the nvidia module % dpkg -i nvidia-kernel-2.6.14.5_1.0.8178-1+2.6.14.5-10.00.Custom_amd64.deb Make sure that nvidia-glx is installed % apt-get install nvidia-glx -- xorg.conf -- Edit /etc/X11/xorg.conf Make sure that the Module section contains: Loadglx And comment out: # Loaddri # LoadGLCore To enable TV out edit the xorg.conf Device section something like this: Section Device Identifier Generic Video Card Driver nvidia Option TwinView Option TwinViewOrientation Clone Option SecondMonitorHorizSync30-50 Option SecondMonitorVertRefresh 60 Option MetaModes 1024x768, 1024x768; 800x600, 800x600; 640x480, 640x480; Option TVStandardNTSC-J Option TVOutFormat SVIDEO EndSection