-BEGIN PGP SIGNED MESSAGE-
On Mon, 18 Oct 1999, Marshal Wong wrote:
I'm using the latest potato right now. The ALSA source compiled fine.
I used make-kpkg to install the modules. But for some reason the
module won't start. Every time I run /etc/init.d/alsa start, I get
the following.
Starting sound driver: snd-card-interwave /etc/init.d/alsa: line 10: 7070
Segmentation fault /sbin/modprobe $line /dev/null 21
failed.
i can get this too, but only if ALSA's isapnp module is already loaded
when i do the modprobe. If i rmmod that isapnp module before
i /etc/init.d/alsa start, it all loads fine. Also, if i do the modprobe a
second time (after the segfault) it all works fine.
A patch is attached that'll remove the isapnp module on /etc/init.d/alsa
stop. As root, cd to /etc/init.d and cat patch | patch -p1.
To get this, I had to edit the file /etc/init.d/alsa to awk
/etc/modules.conf as opposed to conf.modules, since the new potato has
finally removed the old style conf.modules.
Yeah, i noticed that too. Looks like someone already filed the bug report
though.
- --
finger for PGP public key.
-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
iQCVAwUBOAvmdr7M/9WKZLW5AQG2jwQAhgaeYEe/guVEz96bZ/953r8r7z58HLDY
CVBWApt2rsSL68Vz5AQ3zzYZBqGExKre6D/qDAhicGk+uSlCFWDBY74vB9IdEAiP
ZP2WdWg7xnn10zSKxJ8mtLarmHFg/hLF4fmvlSQ/BziE5w3M6T9GQ/ezy0W8PWpq
0KEv0JUBdzE=
=7cem
-END PGP SIGNATURE-
diff -u old/alsa new/alsa
--- old/alsaMon Oct 18 22:24:10 1999
+++ new/alsaMon Oct 18 22:25:03 1999
@@ -37,8 +37,8 @@
#
# Note: configuration actually lives in /etc/modutils/alsa,
# however, since modprobe knows nothing about that, we use
- # /etc/conf.modules instead.
-awk '/^alias +snd-card-[0-9]/ {print $3}' /etc/conf.modules | \
+ # /etc/modules.conf instead.
+awk '/^alias +snd-card-[0-9]/ {print $3}' /etc/modules.conf | \
while read line; do
echo -n Starting sound driver: $line
if /sbin/modprobe $line /dev/null 21; then
@@ -64,6 +64,8 @@
/sbin/lsmod | grep -E ^snd | while read line; do \
/sbin/rmmod `echo $line | cut -d ' ' -f 1` /dev/null 21 || true; \
done
+ # Remove the isapnp module, if possible
+ /sbin/rmmod isapnp /dev/null 21 || true
# remove the 2.2 soundcore module (if possible)
/sbin/rmmod soundcore /dev/null 21 || true
}