Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 1996 00:43:42 +0100
From:      Peter Mutsaers <plm@xs4all.nl>
To:        se@FreeBSD.ORG (Stefan Esser)
Cc:        freebsd-current@FreeBSD.ORG
Subject:   PCI NE2000 probe
Message-ID:  <199611292343.AAA00279@plm.xs4all.nl>
In-Reply-To: <Mutt.19961128211118.se@x14.mi.uni-koeln.de>
References:  <87682qpuff.fsf@plm.xs4all.nl> <Mutt.19961128211118.se@x14.mi.uni-koeln.de>

next in thread | previous in thread | raw e-mail | index | archive | help
>> On Thu, 28 Nov 1996 21:11:18 +0100, se@FreeBSD.ORG (Stefan Esser) said:

    SE> Please send me VERBOSE boot messages (at least the lines dealing
    SE> with the PCI bus and its devices ...)

    >> default it is not probed well (it does work in other OSses). Thus I
    >> rely on userconfig to get it to work. It doesn't work at the moment
    >> however. Should I try an older version of the kernel (which one) or
    >> will userconfig work again shortly?

    SE> Please do NOT configure it as an ISA device with the PCI assigned port
    SE> numbers under -current. This will give strange results, if the kernel
    SE> also sees it in the PCI probe (and it really should).

    SE> The PCI NE2000 should be assigned the name ed1, if your kernel config
    SE> file contains "ed0 at isa?". You need the ISA definition of ed0, or 
    SE> the PCI probe will not be included. (Is this documented ???) 

I did configure my kernel properly now.
Part of the verbose boot:

1042MB (2134305 512 byte sectors)
sd1(ncr0:6:0): with 3835 cyls, 4 heads, and an average 139 sectors/track
pci0:10:    vendor=0x1050, device=0x0940, class=network (ethernet) int a irq 11 
[no driver assigned]
        map(10): io(ff40)
pci0: uses 67109120 bytes of memory from f8000000 upto ffbdffff.
pci0: uses 272 bytes of I/O space from fc00 upto ffff.
Probing for devices on the ISA bus:

In pci/ed*.c (forgot the exact name) I saw that a match is done for
PCI NE2000 clones on some 'type' value to be 0x802910ec. (Vendor
10ec.). I changed this match to 0x09401050. Result: the card is
'recognized' as ed2 (ed0,1 were in the config file) but immediately I
get a crash :-(

The linux kernel does probe it, but only after a special patch to the
latest stable kernel. From dmesg on Linux:

ne.c: PCI BIOS reports Winbond NE2000-PCI at i/o 0xff40, irq 11.
ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0xff40: 00 40 95 00 57 83
eth0: NE2000 found at 0xff40, using IRQ 11.

The strange thing is that Winbond vendor is 0x10ad, and the device ID
is 0x0105 (instead of vendor 1050 and device 0940 as seen for pci0:10
on FreeBSD).

I hope someone can help me to get my NE2000 PCI clone to work under
FreeBSD.

Peter Mutsaers



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611292343.AAA00279>