Advertisement

FIXED! HelpRequest(FBSD): Modem works with no sound; Sound works with no modem; Argh!

Started by August 25, 2003 04:35 AM
10 comments, last by Feral 21 years, 2 months ago
Dag nabbit! I'm confused and stumped and I think the answer is dangling in front of me but I don't know enough! Ok, I am trying to get sound to work (SB Live Value), so I recompiled kernel with a custom GENERIC config only thing changed was added option pcm (or is it device pcm?) Sound seems to work peachy (just dsp devices but I think that is normal..) ... All was good then I tried to dial out... ppp now seems to hang the system. .. I've tracked this down to accessing modem (%ppp and then typing term results in hang. -- real bastage to debug) Modem is still on /dev/cuaa4; If I use generic kernel modem is fine and of course I have no sound. I want both dang it! So anyway if anyone has any ideas (I bet it's simple but I can't see it ; 1+1=3 that sort of thing ) Anyway I'd be most grateful for a pointer or three. Rest of this is just hopefully helpful debugging aids. dmesg is the same as generic (quoted in the code block below) except thees three lines which are not in generic; they go right above the '3COM PCI FaxModem' line. pcm0: port 0xe000-0xe01f irq 5 at device 10.0 on pci0 sio0: configured irq 5 not in bitmap of probed irqs 0 sio0: port may not be enabled A google result:
quote: ... The above message is only to help diagnose non-working interrupts. It is printed if interrupts are broken at probe time. Interrupts might be broken at probe time but work later.
I've also read things about disabling ports (parallel I think it was), enabling ports(regarding a laptop) and I'm all so very confused GENERIC dmesg:

Copyright (c) 1992-2003 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 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003
    root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0628000.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 902049896 Hz
CPU: AMD Athlon(tm) Processor (902.05-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xffffffffc0440000<RSVD,AMIE,DSP,3DNow!>
real memory  = 805240832 (767 MB)
avail memory = 775626752 (739 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
Using $PIR table, 8 entries at 0xc00fdd80
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA100 controller> port 0xd000-0xd00f 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: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> 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
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 9 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> 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
pci0: <bridge, PCI-unknown> at device 7.4 (no driver attached)
dc0: <ADMtek AN985 10/100BaseTX> port 0xdc00-0xdcff mem 0xe7000000-0xe70003ff irq 11 at device 9.0 on pci0
dc0: Ethernet address: 00:20:78:11:1d:0d
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <multimedia, audio> at device 10.0 (no driver attached)
pci0: <input device> at device 10.1 (no driver attached)
sio0: <3COM PCI FaxModem> port 0xe800-0xe807 irq 5 at device 12.0 on pci0
sio0: moving to sio4
sio4: type 16550A
orm0: <Option ROM> at iomem 0xc0000-0xcefff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
Timecounters tick every 10.000 msec
ad0: 29311MB <Maxtor 53073H4> [59554/16/63] at ata0-master UDMA100
ad1: 19541MB <Maxtor 32049H2> [39704/16/63] at ata0-slave UDMA100
acd0: DVD-ROM <LITEON DVD-ROM LTD163> at ata1-master PIO4
acd1: CD-RW <CREATIVE CD-RW RW8435E> at ata1-slave PIO4
Mounting root from ufs:/dev/ad1s2a
 
Hopefully I can think better later on. Much thanks to all, and even more to those that can provide a hint or three Feral... Zzzz p.s. at least recompiling the kernel isn't so bad [edited by - FeralofFireTop on August 26, 2003 1:47:23 AM]
Since your modem worked in your old kernel, try this...

Reboot with your old kernel, then kldload the module for the sound blaster instead of compiling pcm in.

To get your old kernel:

At the boot loader menu, press ''6'' to get to loader prompt. Press any key to stop the countdown, then type ''boot kernel.old''.

When that''s done, and your booted, type ''kldload snd_emu10k1''. If both the sound and modem work, then recompile your custom kernel without the pcm support, and change your /boot/loader.conf to load the snd_emu10k1 module.

It should be ''snd_emu10k1_load="YES"''.

You can reboot to make sure everything is loading happily.

Interim
Advertisement
That is interesting, the process you go through to get countdown boot load thing is different than I.. I get the boot loader, hit f5 (or f1 if I want windows) and I get the hit enter to boot right now else wait 10sec message thing. Well anyway...

I''ve compiled kernel multiple times so kernel.old was not GENERIC, however before I started I cped GENERIC to kernel.GENERIC ... I think that worked. Anyway I recompiled GENERIC and am running that currently.

An... uh, modem dials and it sounds like I connect but I can''t access web or anything... not sure waht is up with that, kind of sounds like I''ve a setting wrong somewhere.

Ooh no I bet I know what it is... I turened on ipfw, heh. *smackes self*

Uh anyway kldload resulted in lockup. (tried that with kernel.GENERIC and I got warning about newer linker than the emu module and kernel paniced (panic: don''t do that) heh I like that., anyway so I recompiled GENERIC and now I hang before kernel panic prints .. solid hang aperently.. cltr+alt+esc not even bring up to no debugger message.

Anyway kldload results in:
quote:
pcm0: <Creative EMU10K1> port 0xe00-0xe01f irq 5 at device 10.0 on pci0
pcm0:unable to map interupt
device_probe_and_attach: pcm0 attach returned 6
pcm0: <Creative EMU10K1> port 0xe00-0xe01f irq 5 at device 10.0 on pci0

system is hung at this point

So hum...
In windows land the sound card has the same IO range, but irq 11 (most things are on irq 11) AND of course the same location.

Still hummmm ing,
Feral
Heh posted as anon I see, silly me.

Anyway it was ipfw being diligent, just a bit too diligent, I''ll get that figured out later So one problem down back to the original

Your pretty lucky your modem works.. None of mine do (they are winmodems ).

Best of luck,

Brad
-brad
Yea I feel your pain. My last was a conextuct or something like that, nice enough modem in windows... Eventually fried and I got a hardware modem. Shame they are more expensive, heh.
Advertisement
Maybe try moving your card''s PCI slot physically if you can. Might resolve the irq conflict. You have more issues than I have ever seen =)

Int.
Do you think it is an irq conflict? I kind of was under the impression irqs could be shared now. (Win2k for example just loves to put practically everything on the system at irq 11). I guess the
quote: A gooooogly quote: http://lists.freebsd.org/pipermail/aic7xxx/1998-October/001867.html
PCI devices are specifically allowed to share IRQ''s, although until recently, few Linux device drivers could deal with that.

So uh, hum.


Hum. I guess I''ll try moving the card as a absolute last resort, or next time I open the case up which ever comes first .
Path of least resistance =).

They should share, but from the problems you''ve seen, you''ve probably found the one and only time they don''t.

The boot loader differences might be between 5.0 and 5.1. Never did fire up 5.0, just skipped it.

Int.
Heheh yup (on both accounts!)

I''m listing to the theme to archon as I type so I''m pretty sure I got it working ...

Turns out it *looks* like this system no like to share irqs in bsd land. ... No matter (NOW that I have swaped things around anyway!) I like proper seperate irqs anywawy... after swaping cards 3 or 4 times I hit on a combo that works. netcard on 11, sound on 5 and modem on 9 (I think). What a pain in the arse!

Phew least mouse wheel didn''t give me any trouble!

Thanks again as usuall Interim!

This topic is closed to new replies.

Advertisement