From owner-freebsd-questions Sun Sep 8 16:28: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F9FF37B400 for ; Sun, 8 Sep 2002 16:27:59 -0700 (PDT) Received: from hotmail.com (f145.sea2.hotmail.com [207.68.165.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11F3443E4A for ; Sun, 8 Sep 2002 16:27:59 -0700 (PDT) (envelope-from oliverdove99@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 8 Sep 2002 16:27:58 -0700 Received: from 62.252.64.5 by sea2fd.sea2.hotmail.msn.com with HTTP; Sun, 08 Sep 2002 23:27:58 GMT X-Originating-IP: [62.252.64.5] From: "Oliver Dove" To: freebsd-questions@freebsd.org Subject: Sound on sony vaio - Kernel fails to boot Date: Sun, 08 Sep 2002 23:27:58 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Sep 2002 23:27:58.0913 (UTC) FILETIME=[5E052310:01C2578F] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm having trouble adding sound support to my freebsd (4.5-release) kernel, my machine is a Sony Vaio PCG-FX602 laptop with a VIA (VT82C686) AC'97 sound card (which may be running over a pci to isa bus). After i compile support into the kernel and reboot the machine hangs while booting (after lpt0, Interrupt-driven port). I think this is because i haven't been able to include all the address information for the card, and there may be a conflict (although boot -c, visual, shows none). My origional line looked like: device pcm0 at isa? irq 9 I think that including the i/o resource addresses that windows gives me (running on another partition) may help (possibly using the iomem param). They are as follows: pci bus 0, device 7, function 5. I/O Range 1000-10FF I/O Range 1C54-1C57 I/O Range 1C50-1C53 IRQ 09 One REALLY strange thing about this was that the first time i re-compiled my kernel with my pcm0 device, it rebooted fine, i added the device nodes (snd0) and was able to play cd's, mp3's, etc. But the next time it was powered up and every recompile since from a kernel with device pcm0 it has failed to boot and i have had to reboot, unload, and boot kernel.GENERIC. It has no problem with recompiling and booting the generic kernel, or my custom kernel (GENERIC2, which removes scsi, raid, some nics and unused usb devices). I tried using an oss demo driver (http://www.opensound.com/) which worked, but has a time limit. Since sound support for my card has been part of FreeBSD since 4.1.1 (http://www.posi.net/freebsd/drivers/drivers-done.phtml) i don't much fancy paying for another driver. Prehaps there is another way to initiate the sound card after the machine has booted ? I would really appreciate _any_ help with this, i've been trying to fix it for a couple of months now without any luck. Thanks for taking the time to read this. Oliver. Final notes: uname -a, FreeBSD vaio 4.5-RELEASE FreeBSD 4.5-RELEASE #1: Sat Sep 7 21:43:53 BST 2002 root@vaio:/usr/src/sys/compile/GENERIC2 i386 dmesg (from healthy boot), Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-RELEASE #1: Sat Sep 7 21:43:53 BST 2002 root@vaio:/usr/src/sys/compile/GENERIC2 Timecounter "i8254" frequency 1193182 Hz CPU: mobile AMD Duron(tm) (1100.05-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff AMD Features=0xc0400000 real memory = 268435456 (262144K bytes) config> di sio1 No such device: sio1 Invalid command or syntax. Type `?' for help. config> di sn0 No such device: sn0 Invalid command or syntax. Type `?' for help. config> di lnc0 No such device: lnc0 Invalid command or syntax. Type `?' for help. config> di ie0 No such device: ie0 Invalid command or syntax. Type `?' for help. config> di fe0 No such device: fe0 Invalid command or syntax. Type `?' for help. config> di cs0 No such device: cs0 Invalid command or syntax. Type `?' for help. config> di bt0 No such device: bt0 Invalid command or syntax. Type `?' for help. config> di aic0 No such device: aic0 Invalid command or syntax. Type `?' for help. config> di aha0 No such device: aha0 Invalid command or syntax. Type `?' for help. config> di adv0 No such device: adv0 Invalid command or syntax. Type `?' for help. config> q avail memory = 257724416 (251684K bytes) Preloaded elf kernel "kernel" at 0xc0360000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc036009c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 6 entries at 0xc00fdf60 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 5 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1c40-0x1c4f at device 7.1 on pci0 atapci0: Correcting VIA config for southbridge data corruption bug ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x1c00-0x1c1f irq 9 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Logitech USB Mouse, rev 1.10/4.10, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: port 0x1c20-0x1c3f irq 9 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered isab1: at device 7.4 on pci0 chip1: port 0x1c50-0x1c53,0x1c54-0x1c57,0x1000-0x10ff irq 5 at device 7.5 on pci0 chip2: port 0x1400-0x14ff irq 5 at device 7.6 on pci0 pcic0: irq 9 at device 10.0 on pci0 pcic0: PCI Memory allocated: 0x44000000 pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard0: on pcic0 pcic1: irq 10 at device 10.1 on pci0 pcic1: PCI Memory allocated: 0x44001000 pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard1: on pcic1 pci0: (vendor=0x104c, dev=0x8020) at 14.0 irq 9 rl0: port 0x1800-0x18ff mem 0xe8004800-0xe80048ff irq 10 at device 16.0 on pci0 rl0: Ethernet address: 08:00:46:5a:e6:e4 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: