Re: make modules for soundcard.

John Lamb <[email protected]>
Newsgroups gmane.linux.suse.multimedia
Message-ID <[email protected]>
[email protected] wrote:
> I have a 7.3 installation, with a soundblaster live soundcard. It worked
> fine in KDE with the stock 2.4.10 kernel. I downloaded and installed the
> suse 2.4.16 kernel source rpm and updated to the 2.4.16 kernel, via make
> oldconfig, make dep, make bzImage, make modules, and make modules_install.
> When I boot to the new kernel my soundcard does not work. I can see that
> the directory for the soundcard modules is missing

This is from my changes.log for 7.3 with an SBLive...

Downloaded and installed kernel 2.4.16.SuSE-2 from mirror.ac.uk mirror
of SuSE. You can get it from ftp://ftp.suse.com under
people/mantel/next/linux-2.4.16.SuSE-2.tar.bz2
Saved it in directory and copied (actually linked) it to
/usr/src/linux-2.4.16.SuSE-2.tar.bz2
# cd /usr/src
# tar Ixvf linux-2.4.16.SuSE-2.tar.bz2   [creates new directory
/usr/src/linux-2.4.16.SuSE]
# rm linux    [removes old link]
# ln -s linux-2.4.16.SuSE-2 linux
# cd /usr/src/linux-2.4.16.SuSE
Now copy hidden file .config from original kernel directory
/usr/src/linux-2.4.10.SuSE to new directory /usr/src/linux-2.4.16.SuSE
and rename it to test-12.1.01 (no longer hidden ;-)). I think this is
essentially what cloneconfig does.
# make mrproper
# make xconfig [needs to be done with root access]
Load configurations from test-12.1.01.
Sound stuff looks like:
   y  Sound card support
   m  BT878 audio dma
   m  C-media PCI
   y  Enable legacy FM
   y  Enable legacy MPU-401
   y  Enable joystick
   y  Support CMI8738...
   n  Inverse S/PDIF in for CMI8738
   y  Enable S/PDIF loop for CMI8738
   m  Creative SBLive! (EMU10K1)
   y  Creative SBLive! MIDI
   Everything else   m for sound card and default y/n values for 
anything else.
   Probably could say no to everything else and save some compilation time.
Check, save and exit
# make dep
# make clean
# make bzImage   [takes a few minutes]
# make modules
# make modules_install   [won't overwrite anything]
copy bzImage from /usr/src/linux-2.4.16.SuSE/arch/i386/boot to /boot and
rename vmlinuz-2.4.16
copy System.map from /usr/src/linux-2.4.16.SuSE to /boot and rename
System.map-2.4.16-4GB
# mk_initrd -k "vmlinuz-2.4.16" -i "initrd-2.4.16" -s auto
edit /etc/lilo.conf and change kernel to 2.4.16 (doesn't remove old
kernel or modules)
# lilo -b /dev/fd0   [installs lilo on a floppy. If it doesn't work, I
still haven't lost anything]
reboot (from floppy)
This all worked without problems, except sound was lost (as expected).
As root...
# lilo   [This time installs on hard disk]
Acttually I used lilo -b /dev/hda because lilo doesn't work unless I use -b
# lilo
reboot and install alsa as follows...
downloaded alsa-driver-0.5.12a (needed for 2.4.14+ kernels) to
/usr/src/packages/SOURCES
# cd /usr/src/packages/SOURCES
# tar zxvf alsa-driver-0.5.12a.tar.gz
# cd alsa-driver-0.5.12a
and compiled...
# modprobe soundcore (probably not needed) [root]
# CFLAGS="-O2 -march=i686" ./configure  [Don't use the -march=i686 flag
if you have an Athlon!]
# make install [root]
# ./snddevices [root] (probably not needed)
All successful.

JDL

-- 

Non enim propter gloriam, diuicias aut honores pugnamus set propter
libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.


-- 
To unsubscribe send e-mail to [email protected]
For additional commands send e-mail to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.