From owner-freebsd-drivers@FreeBSD.ORG Sun Feb 22 08:27:12 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DB36106566B for ; Sun, 22 Feb 2009 08:27:12 +0000 (UTC) (envelope-from clamav@citromail.hu) Received: from server23.citromail.hu (server23.citromail.hu [91.83.45.23]) by mx1.freebsd.org (Postfix) with ESMTP id 4DE4B8FC13 for ; Sun, 22 Feb 2009 08:27:10 +0000 (UTC) (envelope-from clamav@citromail.hu) Received: (qmail 3901 invoked by uid 89); 22 Feb 2009 08:00:29 -0000 Message-ID: <20090222080029.3900.qmail@server23.citromail.hu> To: Received: from ktv-5B9060CD.pool.nagykanyar.hu [91.144.96.205] by with HTTP; Sun, 22 Feb 2009 09:00:29 +0100 From: "Tesch Zoltan" Date: Sun, 22 Feb 2009 09:00:29 +0100 Errors-To: X-Priority: 3 X-Mailer: VIPmail v.2.6 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Subject: debugging network device driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2009 08:27:12 -0000 Hi, I have just tried to port SiS190 Linux driver to FreebBSD. It seems to me that this driver looks like r8169 and for this reason my port is based on the "re" device driver of FreeBSD 6.4. I can load the module, attach to SiS190 device, miibus and phy but when I try to set up the interface with ifconfig (ifconfig sis0 up) the computer freezes. I have tried to print status information from my driver (using printf`s in the code) but the last record in the log is that miibus_readreg returned a good value, no other record is logged into the system log. My questions: Is there any way to switch to kernel debug mode in this situation to see what happened or is it possible to run the module under the supervision of kernel debugger running on the machine, because this laptop has no serial line or any other network interface. Thanks Zoltan