i386/70036: pcn device not recognizing device
anh at tiscali.dk
Thu Aug 5 08:00:45 PDT 2004
>Synopsis: pcn device not recognizing device
>Arrival-Date: Thu Aug 05 15:00:41 GMT 2004
>Originator: Nikolaj Hansen
$ uname -a
FreeBSD sauron.progressit.dk 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #4: Thu Jul 22 19:28:42 CEST 2004 root at sauron.progressit.dk:/usr/src/sys/i386/compile/MYKERNEL i386
I have an older version IBM NetFinity 5000 with an AMD Lance netcard. If i try to use the pcn device the kernel panics. Probably because it correctly recognizes the card but not the chipset?
The card runs fine with the older LNC device, but it would be nice to have the features in the new driver using the DMA 32 bit and such.
Here is the output from a pciconf scan:
lnc0 at pci0:9:0: class=0x020000 card=0x20001014 chip=0x20001022 rev=0x36 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Am79C970/1/2/3/5/6 PCnet LANCE PCI Ethernet Controller'
class = network
subclass = ethernet
console log panic:
pcn0: <AMD PCnet/PCI 10/100BaseTX> port 0x2040-0x205f mem 0xfebfdc00-0xfebfde1f
irq 11 at device 9.0 on pci0
pcn0: Eterhnet address: 00:06:29:39:61:39
miibus0: <MII bus> on pcn0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: OUI 0x080017, model 0x0001, rev.0
ifmedia_set: no match for 0x0/0xfffffff
I suppose not possible without the actual netcard version as mentioned above.
I think the HEX code for this card has to be added to the file /usr/src/sys/pci/if_pcnreg.h and the value from this to the switch command checking the NIC id in /usr/src/sys/pci/if_pcn.c
I will be happy to test a fix on my server. I work as a systems developer so I will be able to report any further bugs and/or edit the device driver code according to your guidance.
More information about the freebsd-i386