From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 06:35:25 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B62437B401 for ; Mon, 28 Apr 2003 06:35:25 -0700 (PDT) Received: from tentacle.sectorb.msk.ru (tentacle.s2s.msu.ru [193.232.119.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A56C43FDD for ; Mon, 28 Apr 2003 06:35:22 -0700 (PDT) (envelope-from epbox@yandex.ru) Received: from hq.sectorb.msk.ru (petaflop.lcm.msu.ru [193.232.113.220]) by tentacle.sectorb.msk.ru (Postfix) with ESMTP id D38076F02; Mon, 28 Apr 2003 17:35:20 +0400 (MSD) Received: from vlad.local (vlad.local [172.16.8.9]) by hq.sectorb.msk.ru (Postfix) with ESMTP id 5AC0C13268; Mon, 28 Apr 2003 17:35:20 +0400 (MSD) Content-Type: text/plain; charset="windows-1251" From: Vladik Kozin To: "Toomas Aas" Date: Mon, 28 Apr 2003 17:35:20 +0400 User-Agent: KMail/1.4.3 References: <200304281307.h3SD7Si17432@lv.raad.tartu.ee> In-Reply-To: <200304281307.h3SD7Si17432@lv.raad.tartu.ee> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304281735.20836.epbox@yandex.ru> cc: freebsd-questions@freebsd.org Subject: Re: PCMCIA ethernet NE2000 compatible card problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: epbox@yandex.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 13:35:25 -0000 On Monday 28 April 2003 17:07, Toomas Aas wrote: > Hello! > > > I'm facing the following problem with my ethernet pccard. I installed > > FBSD 4.8 on my ThinkPad 570 via ftp using the above mentioned etherne= t > > card (using ed(4) driver). No problems occured. So now I have a 4.8 b= ox > > installed. But after I reboot and started my new FBSD box the same > > ethernet device didn't > > > > seem to work anymore: > > >ed1: device timeout > > [snip] > > > But it worked fine while the installation process! I've no idea what > > could have happened. Maybe this is a sort of IRQ problem, but AFAIK t= he > > newly installed box should use the same kernel as've been used while > > istalling the system. I don't know where to look for IRQs bindings my > > FBSD box uses right now. Unfortunately, I forgot to install kernel sr= cs, > > so now I can't even recompile the kernel. > > > > Here is a more precise information: > > >dmesg > > > > config> en ed0 > > config> po ed0 0x280 > > config> ir ed0 10 > > config> iom ed0 0xd8000 > > config> f ed0 0 > > Notice that IRQ 10 and port 0x280 are used here. > > > ... > > pccard: card inserted, slot 0 > > pccard: card removed, slot 0 > > pccard: card inserted, slot 0 > > ed1: at port ........ irq 11 slot 0 on pccard0 > > Notice that IRQ 11 is used here (you blanked out the port). > > > ed1: device timeout > > ... > > ed1: device timeout > > > > I wonder what those commands in /boot/kernel.conf mean (config> strin= gs > > in dmesg)? > > This means that when you installed FreeBSD, you configured the network > interface to use IRQ 10 and port 0x280. Since the ftp-installation work= ed, > these values must be correct. > > Now that the system is installed, however, it is using ed1 (not ed0) as= the > network interface for whatever reason. I assume that there is no other > network card in your laptop which would be ed0. However, the kernel tri= es > to assign IRQ 11 to your NIC, which doesn't seem to be correct. > > I think that if you edit /boot/kernel.conf and replace ed0 with ed1 > you'll get your NIC working. Yes. The problem was in IRQs mismatch. I was so impatient, that I simply=20 reinstalled the hole system paying special attention to IRQs. Finaly I bo= und=20 IRQ5 to my pcmcia card. Unfortunately now I can't check out if replacing = ed0=20 with ed1 in /boot/kernel.conf would have done the thing. Anyway I have a=20 working FBSD box set up on my laptop and it works fine :)