so here we go. a small how to enable sound on the efika on Gentoo.
1. I'm using patched vanilla-sources (in contrast to efika-sources from the efika overlay):
Code:
$ echo sys-kernel/vanilla-sources
$ emerge vanilla-sources
now you should have 2.6.20.1 (as of today) in /usr/src/linux-2.6.20.1.
2. Grab the kernel patches from
here (thanks crux people ;-) ) and patch the kernel:
Code:
$ cd /usr/src/
$ tar xfvz /path/to/sven-efika+cruxppc-2007.01.25.tar.gz
$ cd linux-2.6.20.1
$ for i in `ls ../sven-efika+cruxppc/`; do patch -p1 -i ../sven-efika+cruxppc/$i; done
3. grab my config and make your changes to the kernel:
Code:
$ wget
http://dev.gentoo.org/~corsair/efika/ef ... g-2.6.20.1 -O .config
$ make oldconfig
$ make menuconfig <-- make your changes
4. compile the kernel
Code:
$ make
5. install the kernel
Code:
$ mount /boot <-- if you have a seperate /boot partition
$ cp arch/powerpc/boot/zImage.chrp /boot/kernel-2.6.20.1
$ make modules_install
6. reboot into your new kernel
Code:
$ reboot
Code:
ok boot hd:0,kernel-2.6.20.1
7. now you should have something like:
Code:
$ uname -r
2.6.20.1-efika
8. install alsa-utils
Code:
$ emerge alsa-utils
9. edit /etc/modules.d/alsa:
Quote:
# Alsa kernel modules' configuration file.
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `modules-update' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-mpc52xx-ac97 <--- this is the important line!
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1
10. update /etc/modules.conf and /etc/modprobe.conf:
Code:
$ modules-update
11. start alsasound and add it to the default runrevel:
Code:
# /etc/init.d/alsasound start
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Restoring Mixer Levels ... [ ok ]
# rc-update add alsasound default
* alsasound added to runlevel default
12. use alsasound to unmute your channels:
Code:
$ alsamixer
NOTE: if you want use the optical output then unmute
IEC958 and set
IEC958 Playback AC97-SPSA to
0.
I'm currently having much noise on the optical output and am trying to find a solution. A small note from you, if you have also noise would be helpful :-)
13. use your favorite app to play sound files. For example:
Code:
$ aplay /some/wav-file.wav
regards,
-corsair