Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 1999 14:01:18 +0200 (CEST)
From:      Blaz Zupan <blaz@gold.amis.net>
To:        freebsd-current@freebsd.org
Subject:   ed driver problem
Message-ID:  <Pine.BSF.4.10.9909041347290.332-100000@gold.amis.net>

next in thread | raw e-mail | index | archive | help
I'm trying to configure my new Compex NE2000 PCI card under 4.0-current.
Just before the latest PnP changes, the card was just recognized like
this:

ed0: <NE2000 PCI Ethernet (Compex)> irq 10 at device 13.0 on pci0

It did not display the MAC, and "ifconfig -a" did not show ed0/ed1 as
configured. I even tried booting a generic 2.2.1 and 3.2 kernel, with the
same symptoms. After the PnP changes, I get this:

ed0: <NE2000 PCI Ethernet (Compex)> irq 10 at device 13.0 on pci0
device_probe_and_attach: ed0 attach returned 2

I sprinkeled a couple of printf's through if_ed.c and found out, that
bus_alloc_resource() fails in ed_alloc_port() in if_ed.c, thus
ed_alloc_port() returns ENOENT (== 2). Why could allocating an I/O port
address fail?

Ok, so I have somehow misconfigured my BIOS settings, I thought. Booting
Windows 98 (eeek!), my card is recognized and works perfectly.

I'm looking at what I could have done wrong in the BIOS, but there is
nothing I can find (there are actually no settings concerning PCI
devices). The motherboard is an AN430TX from Intel and the machine is
pretty crowded with cards (Teles S0/16.3 ISDN card, Courier internal
modem, Adaptec 2940 and the network card, onboard audio).

Here is the dmesg output:

Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Sat Sep  4 11:28:56 CEST 1999
    root@gold.amis.net:/home/blaz/FreeBSD/src/sys/compile/GOLD
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P55C (232.88-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping = 3
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 62140416 (60684K bytes)
Preloaded elf kernel "kernel" at 0xc02d8000.
Intel Pentium detected, installing workaround for F00F bug
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> at device 7.1 on pci0
chip1: <UHCI USB controller> irq 9 at device 7.2 on pci0
chip2: <Intel 82371AB Power management controller> at device 7.3 on pci0
ed0: <NE2000 PCI Ethernet (Compex)> irq 10 at device 13.0 on pci0
device_probe_and_attach: ed0 attach returned 2
ahc0: <Adaptec 2940 Ultra SCSI adapter> irq 12 at device 14.0 on pci0
ahc0: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
vga-pci0: <S3 Trio graphics accelerator> irq 11 at device 15.0 on pci0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa0
wdc0: unit 0 (wd0): <IBM-DTTA-371440>, DMA, 32-bit, multi-block-16
wd0: 13783MB (28229040 sectors), 28005 cyls, 16 heads, 63 S/T, 512 B/S
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio2 at port 0x3e8-0x3ef irq 5 on isa0
sio2: type 16550A
isic0 at port 0xd80 irq 15 flags 0x3 on isa0
isic0: Teles S0/16.3
isic0: ISAC 2085 Version A1/A2 or 2086/2186 Version 1.1 (IOM-2) (Addr=0x960)
isic0: HSCX 82525 or 21525 Version 2.1 (AddrA=0x160, AddrB=0x560)
ppc0 at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
pcm1: <Yamaha SA3> at port 0x240-0x24f,0xe80-0xe87,0x388-0x38f,0x300-0x301,0x100-0x101 irq 9 drq 0,1 on isa0
unknown0: <OPL3-SA3 Snd System> at port 0x201 on isa0
i4b: ISDN call control device attached
i4bisppp: 4 ISDN SyncPPP device(s) attached
i4bctl: ISDN system control port attached
i4bipr: 4 IP over raw HDLC ISDN device(s) attached
i4btel: 2 ISDN telephony interface device(s) attached
i4brbch: 4 raw B channel access device(s) attached
i4btrc: 4 ISDN trace device(s) attached
changing root device to da0s1a
da1 at ahc0 bus 0 target 1 lun 0
da1: <NEC D3847 0307> Fixed Direct Access SCSI-2 device 
da1: 10.000MB/s transfers (10.000MHz, offset 15)
da1: 1547MB (3170160 512 byte sectors: 255H 63S/T 197C)
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <TEAC CD-ROM CD-532S 3.0A> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DORS-32160 WA6A> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da0: 2063MB (4226725 512 byte sectors: 255H 63S/T 263C)

My kernel config file contains this:

device ed0

Any idea what could be wrong here? This card works under FreeBSD 3.2 on
another machine just fine, and is detected like this:

ed1: <NE2000 PCI Ethernet (Compex)> rev 0x0a int a irq 11 on pci0.11.0
ed1: address 00:80:48:ca:b8:40, type NE2000 (16 bit) 

So I guess there is something wrong with my machine, but what? I mean, PCI
cards really don't have any settings and the only thing I can do in the
BIOS is reserve IRQ's for ISA legacy devices, which I have done (I have
reserverd IRQ 5 for the Courier).

Any help will be appreciated.

Blaz Zupan, blaz@amis.net, http://www.herbie.amis.net
Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909041347290.332-100000>