Subject: Re: [i386 3.0]Kernel : 2 instances of the same driver?
To: Sylvain Briole <sbriole.mls@free.fr>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-help
Date: 01/25/2006 11:38:56
--xo44VMWPx7vlQ2+2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 25, 2006 at 10:23:48AM +0000, Sylvain Briole wrote:
> Hi all!
>=20
> I have a old Pentium1 computer with 2 network-cards (DEC EtherWorks 3, DE=
205) on
> ISA bus.
> I would like to use this computer as a gateway.
> I have a old Linux (2.4) distribution which is currently running on it, b=
ut I
> would like to upgrade and try NetBSD 3.0.
>=20
> The configuration on Linux :
>=20
> # insmod -o ewrk3a ewrk3 io=3D0x300 irq=3D5
> eth0: DE205-AB at 0x300, h/w address 08:00:2b:3e:21:09,
>       has a 2k RAM window at 0xd0000 and requires IRQ5
>=20
> # insmod -o ewrk3b ewrk3 io=3D0x340 irq=3D10
> eth1: DE205-AB at 0x340, h/w address 08:00:2b:92:ad:fb,
>       has a 2k RAM window at 0xd0800 and requires IRQ10
>=20
> The routing between the two networks (between eth0 and eth1) works perfec=
tly.
>=20
> I install NetBSD 3.0 : none of the cards is recognized.
> I decide to create a custom kernel from the GENERIC kernel.
> I make a copy of /usr/src/sys/arch/i386/conf/GENERIC.
>=20
> The cards are sharing the same lc driver :
>    lc0	at isa? port 0x320 iomem ? irq ?	# DEC EtherWORKS III (LEMAC)
> I try to comment this line and replace with
>    lc0	at isa? port 0x300 iomem ? irq 5	# DEC EtherWORKS III (LEMAC)
> I recompile and reboot : it works, only for the first card (what I expect=
ed).
> Then, I try the following :
>    lc0	at isa? port 0x300 iomem ? irq 5	# DEC EtherWORKS III (LEMAC)
>    lc1	at isa? port 0x340 iomem ? irq 10	# DEC EtherWORKS III (LEMAC)
> I recompile and reboot : it does not work: only the first card is recogni=
zed.
> Then, I try the following :
>    lc*	at isa? port ? iomem ? irq ?	# DEC EtherWORKS III (LEMAC)
> I recompile and reboot : it does not work: none of the cards is recognize=
d.
>=20
> What do I need to do in the configuration file in order to have the two c=
ards
> recognized from the kernel?
>=20
> I thank you in advance for your help,

Please post dmesg output in each case.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--xo44VMWPx7vlQ2+2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ9dVQNgoQloHrPnoAQLEOQf9EygsxYyRYVLDz2jrT+sYo3s+uCkjsZ/j
Hhclhx77j9mhPLlljYz2Hb5ZdOdmZVzaMkIojVVEQQ7TJwlXkoe52XF+Fvr2Qx6f
YbfOfq2bC168jfKL6N381SJIyFdyvG+LmxS5gTvo7w/r5edBiuLH54nuOlJBZTpq
W5wwln0ZBAJRtV23HB1X1tY+C9fzEtiSf84lTxCDZhfoqps776VL69/36WqkWTd8
ftq8I40tDoa6ASnuRc4/D4YQiLuAwVNmkbYEdZkP2U+sp9yqUlRpr6VXu684YTk3
6/aco/cXQaES7nBW/QgSnfQXC2CzOWxMNfuGrg32EXYY39JId6iNWQ==
=iPNf
-----END PGP SIGNATURE-----

--xo44VMWPx7vlQ2+2--