Bug 14123

Summary: lnc driver is not working
Product: Base System Reporter: boxiao63 <boxiao63>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description boxiao63 1999-10-04 19:20:00 UTC
(soryy I press the submit button too fast last time while looking 
up my card model). 

3.2 and 3.3 claimed AMD fastether chips(79C974) were supported but 
it never worked (for me). Does anyone have it running?

GENERIC does NOT see lnc0. I built my own kernel. It found the card
as lnc1 but failed at port mapping. 

I went in the code pci/if_lnc_p.c and found it failed because 
pci_porten(pcicfgregs *cfg) returned 0 in pci_map_port(). cmdreg
was all 0. I tried to enable the port like many other drivers,
then re-read the cmdreg. It passed this point. So there is an 
order problem.

Then the kernel complains int 255 was too high although I config
it as 0x0a. intline was 0xff. I forced it to 0x0a. 

Now pci_wiredunit(cfg, dvp->pd_name) in pci_drvattach() gives a
huge negitive number. And my unit number is set to 1 after all.

Boots up fine. Finds the device and I can config the card.
But it is getting timeouts all the time and keeps resetting.
Never works. 

So after spending a day on this, it seems a better option
is to get another card. 

But I thought it was worth to report what I saw so some one 
else may get it fixed. 

Thanks.

Bo

How-To-Repeat: boot up the kernel.
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2001-07-21 02:59:14 UTC
State Changed
From-To: open->closed


From looking at the PR is appears the originator misconfigured 
his kernel.
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-07-26 00:11:55 UTC
On Wed, Jul 25, 2001 at 10:27:50PM +0000, Bo Xiao wrote:
> Hi Mike,
> 
> Although I no longer use this nic, I am really
> curious as to how I should configure my kernel
> to have it work.
> 
> Thanks.
> Bo Xiao

If you can't find the answer to your question by searching the
-questions mailing list archive, send a message there with the
details of your kernel configuration, how your hardware is
configured, and any other information that might be of relevance.

BTW, I just had a quick look at NOTES on a -CURRENT system and it
appears the pcn driver supports that ethernet card, not lnc.
This may be different than the drivers that came with 3.3-RELEASE.

Best regards,
Mike Barcroft