Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 1997 13:38:24 +0200
From:      Stefan Esser <se@FreeBSD.ORG>
To:        "William D. Ward" <euswdwj@exu.ericsson.se>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Compaq XL 590-PCNet Problem? (jkh sent me)
Message-ID:  <19970926133824.46824@mi.uni-koeln.de>
In-Reply-To: <199709252232.RAA25926@b04h32.exu.ericsson.se>; from William D. Ward on Thu, Sep 25, 1997 at 05:32:21PM -0500
References:  <199709252232.RAA25926@b04h32.exu.ericsson.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 25, "William D. Ward" <euswdwj@exu.ericsson.se> wrote:
> Perhaps it was some sort of devine province that Jordan decided post the
> mini-FAQ (ref. Q-2) shortly after I sent this question to comp.unix.-
> freebsd.misc.  Or not.  It would depend on your faith maybe.
> 
> --
> 
> Hello,
> 
> This message was originally posted to the freebsd-questions mailing list
> 
> with minimal response.
> 
> I have about 40 of these machines and it would be good if I could
> do something useful with them for a change.
> 
> The FreeBSD installation boot floppy did not work for this system (this 
> is definitely not the norm) so I roled my own using methods I found in 
> the /usr/src/release directory.
> 
> Please help.
> 
> ---original message posted to freebsd-questions mailing list follows---
> 
> I'm having some difficulties getting the Ethernet interface to work on 
> a Compaq Deskpro XL 590.  Currently ifconfig on this machine results 
> in a syslog message reporting 'lnc0: Initialisation failed' (which 
> perhaps means that the initialization failed).  The FreeBSD 
> installation boot floppy did not work for this system so I roled my own 
> using methods I found in the /usr/src/release directory.  I have about 
> 40 of these machines and it would be good if I could do something 
> useful with them for a change.  Please help.
> 
> 
> I am using 2.2.2-RELEASE.  My procedure is as follows:
> 
> 1. boot from custom boot floppy that does not go into 
> /stand/sysinstall but instead starts /etc/rc script containing just 
> /stand/sh.  it also has ifconfig, mount, ping, route, and dmesg 
> (crunched dmesg isn't working thus no verbose boot info in this note.  
> i could use some help here too maybe.  separate issue).
> 
> 2. boot -c.  set port for lnc0 to 0x7000 and continue boot.  the
> hardware is probed.  i see the following:

Wrong! This was a workaround to get the ISA Lance probe/attach code
to find the PCI Ethernet chip, and is necessary in FreeBSD-2.1.x.

I added the code to attach PCI versions of the Lance late last year,
and you should no longer use that workaround because it will make the
attach fail!

>    a. pci0:0 is probed but no driver is assigned.  (bad sign or not?)

That's OK. It is part of the chip set, which has been configured by
the BIOS and will be used (of course :) but in no way reconfigured
later.

>    b. lnc1 shown to be detected even though there is only one 
>       interface.  this is immediately after pci0:0 is probed.  (hmmm)

Yes, and you should be using that as the network interface ...

>    c. lnc0 is shown to be detected later on when the rest of the
>       Ethernet
>       interfaces are looked for.

Well, and this is where it fails !!!

You have attached the same device twice, and two drivers compete for
it.

> 3. /stand/sh is invoked.  from command line issue:
> 
> # ifconfig lnc0 161.76.4.7
> 
> lnc0: Initialisation failed
>       ^       ^      ^
>   (note case and spelling.)

Please do NOT configure lnc0 to probe port 0x7000. Use lnc1 as the
name of the network interface.

ISA devices are probed after PCI, and the PCI attach could not know
whether or not the ISA attach might connect a real ISA Lance card as
lnc0.

I've prepared the PCI code to support "wired" devices, but since the
code for the other bus types has to cooperate, I did not enable that
feature, yet.

> Other points:
> 
> 1. another point that might be interesting (or not) is that ifconfig -a
> reports that there are two lnc interfaces (lnc0 and lnc1) yet there is 
> only one adapter.  configuring either interface yields the same result.

Yes. And that's what's confusing both driver instances :)

> 3. in looking through the mailing list archive it appears that this has
> been a problem in the past for some Compaq platforms.  in some cases 
> resolution may have been obtained by setting the port for lnc0 to 0x7000.  
> other cases appear to be unresolved faulting Compaq's PCI bus which may 
> not conform to accepted standards on some models.

This was indeed the solution for 2.1.x (FreeBSD-stable as of one year
ago).

I can't prevent old articles from the mail-archive stating a no longer
valid work-around :(

> 4. floppies/boot.flp does not work on this system.  it appears to hang
> when sysinstall would normally display its UI.  this is not a problem as 
> it is possible for me to load the machine manually once the network 
> interface is configured.  it is only a problem in getting verbose boot 
> messages as the fixit floppy which probably has a working dmesg is not 
> accessible.

Hmmm ? I don't understand what's wrong here. You should be able to
complete the boot procedure, if you don't reconfigure lnc0 ...

> ---original message ends---
> 
> Doug White (thanks, Doug) responded to my original post and pointed out
> that I did not mentioned that I tried booting without making changes to
> the port address.

Well, what *exactly* happens if you just boot with "-v" ?

Regards, STefan



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