From owner-freebsd-multimedia Mon Jul 1 14:40:30 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5778D37B40F for ; Mon, 1 Jul 2002 14:40:18 -0700 (PDT) Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8303043E26 for ; Mon, 1 Jul 2002 14:40:17 -0700 (PDT) (envelope-from nospam@hiltonbsd.com) Received: from [209.224.36.108] (helo=daggar.sbgnet.net) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 17P8tx-0000jo-00; Mon, 01 Jul 2002 16:40:05 -0500 Date: Mon, 1 Jul 2002 16:42:07 -0500 From: Stephen Hilton To: freebsd-multimedia@freebsd.org Cc: Subject: Re: aureal kmod (1.3_4) crashes 4.6-stable Message-Id: <20020701164207.65590599.nospam@hiltonbsd.com> In-Reply-To: <69r8in8okt.fsf@mail.cs.uni-magdeburg.de> References: <69r8in8okt.fsf@mail.cs.uni-magdeburg.de> Organization: HiltonBSD.com X-Mailer: Sylpheed version 0.7.8 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 01 Jul 2002 17:17:38 +0200 Roland Jesse wrote: > Hi, > > I just updated from FreeBSD 4.5-stable (about a month or so old) to > 4.6-stable. All is fine, but sound not working any longer. > > Doing a simple "kldload /usr/local/lib/au88x0/snd_au8820.ko" (as I did > all the time until now) locks the machine up and it reboots. Nothing > is put into /var/log/messages. > > kldstats reports: > Id Refs Address Size Name > 1 4 0xc0100000 31dd3c kernel > 2 1 0xc1aec000 2000 blank_saver.ko > 3 1 0xc1aee000 15000 linux.ko > 5 1 0xc1b50000 14000 snd_pcm.ko > > Looks ok to me, snd_pcm.ko is there. What might I be missing here? > > Roland > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message > I have it working fine on my 4.6-STABLE system with a Vortex2 chip. No sound entries in my kernel config file. Aureal kmod is loaded by the shell script: cat /usr/local/etc/rc.d/aureal.sh -----------snip----------- #!/bin/sh #--------------------------------------------------------------------- # # I. Auto-detection of your Aureal Vortex sound card # # If for some reason this script fails to guess the type of your # Aureal card correctly, you can manually override it here. # Set this to 8810 (Vortex Advantage), 8820 (Vortex 1) or 8830 # (Vortex 2): # CARD=8830 # # II. VIA Apollo KX133 lock-up issue workaround # # If your AMD Athlon system is based on a VIA Apollo KX133 motherboard # chipset, your system will most certainly lock up shortly after # you start a playback. To work around this issue please uncomment # this line: # #VIAKX133FIX=yes #--------------------------------------------------------------------- PCICONF="/usr/sbin/pciconf" if [ -z "${CARD}" -a -x ${PCICONF} ]; then if [ "`${PCICONF} -l 2>&- | grep 0x000312eb`" ]; then CARD=8810 elif [ "`${PCICONF} -l 2>&- | grep 0x000112eb`" ]; then CARD=8820 elif [ "`${PCICONF} -l 2>&- | grep 0x000212eb`" ]; then CARD=8830 fi fi if [ -z "${CARD}" ]; then echo "Unable to determine your Aureal card type -" \ "override it manually in $0" >&2 exit 255 fi PREFIX=/usr/local LIBDIR=${PREFIX}/lib/au88x0 DRIVERFILE=snd_au${CARD}.ko case "$1" in start) if [ ! -f ${LIBDIR}/${DRIVERFILE} ]; then echo "" echo "${LIBDIR}/${DRIVERFILE} for ${CARD} not found!" echo "" exit 64 fi /sbin/kldload ${LIBDIR}/${DRIVERFILE} echo -n " aureal-kmod" # Increase PCI timeout for broken VIA Apollo KX133 chipsets # NOTE: This assumes your Aureal card is the pcm0 device if [ "$VIAKX133FIX" ]; then pcisel=`${PCICONF} -l 2>&- | grep ^pcm0 | awk -F: '{ gsub("^[^@]*@", ""); print $1":"$2":"$3 }'` if [ -z "$pcisel" ]; then echo " (WARNING: Soundcard PCI selector undetermined. Unable to install VIA KX133 workaround. Starting a playback will likely to lock-up your system!)" exit 64 fi oldvalue=`${PCICONF} -r -b $pcisel 0x40 2>&- | sed 's/ *$//'` echo -n " (with VIA KX133 workaround: ${pcisel},0x40: ${oldvalue} -> " ${PCICONF} -w -b $pcisel 0x40 0xff echo -n "`${PCICONF} -r -b $pcisel 0x40 2>&- | sed 's/ *$//'`)" fi ;; stop) /sbin/kldunload ${DRIVERFILE} echo -n " aureal-kmod" ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac -----------snip----------- I have used the card type override as the automagic chip detection did not work so well. "CARD=8830" And this is not a VIA Apollo KX133 based motherboard. Regards, Stephen Hilton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message