Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 20:40:05 +0100
From:      "Tesch Zoltan" <clamav@citromail.hu>
To:        <freebsd-drivers@freebsd.org>
Subject:   Re: debugging network device driver
Message-ID:  <20090223194005.12142.qmail@server23.citromail.hu>
In-Reply-To: <20090223005416.GC48134@michelle.cdnetworks.co.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Thanx a lot, I will try it

Zoltan

-- Eredeti =FCzenet --
Felad=F3: Pyun YongHyeon &lt;pyunyh@gmail.com&gt;
C=EDmzett: Tesch Zoltan &lt;clamav@citromail.hu&gt;
Elk=FCldve: 01:49
T=E9ma: Re: debugging network device driver

On Sun, Feb 22, 2009 at 09:00:29AM +0100, Tesch Zoltan wrote:

&gt; Hi,

&gt;=20

&gt; I have just tried to port SiS190 Linux driver to FreebBSD. It seems to

&gt; me that this driver looks like r8169 and for this reason my port is

&gt; based on the "re" device driver of FreeBSD 6.4.



Hmm, I have no idea why SiS190 is similar to RTL8169. Both

controllers have small set of registers though.



&gt; I can load the module, attach to SiS190 device, miibus and phy but whe=
n

&gt; I try to set up the interface with ifconfig (ifconfig sis0 up) the

&gt; computer freezes. I have tried to print status information from my

&gt; driver (using printf`s in the code) but the last record in the log is

&gt; that miibus_readreg returned a good value, no other record is logged

&gt; into the system log.

&gt;=20



It's hard to say what was wrong here. Datasheet is not available

to open source developers and the controller seem to have severe

alignment restrictions as well as lack of auto-padding.



&gt; My questions:

&gt; Is there any way to switch to kernel debug mode in this situation to s=
ee

&gt; what happened or is it possible to run  the module under the supervisi=
on

&gt; of kernel debugger running on the machine, because this laptop has no

&gt; serial line or any other network interface.

&gt;=20



ktr(4) is much better than printfs. Btw there was a post for

SiS190 driver so you can reference his work.

http://lists.freebsd.org/pipermail/freebsd-drivers/2008-April/000685.html



Having a wired/wireless USB network controller would make your

life easier.







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