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 From owner-freebsd-drivers@FreeBSD.ORG Mon Feb 23 01:20: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 A180210656C3 for ; Mon, 23 Feb 2009 01:20:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.186]) by mx1.freebsd.org (Postfix) with ESMTP id 38D5A8FC18 for ; Mon, 23 Feb 2009 01:20:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so1181273tib.3 for ; Sun, 22 Feb 2009 17:20:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=bXzwur+8pJM+7FJgXcr2e1L8UR9nvvNs9UkobtoSHgE=; b=nE+qd2NDx5qwR9zMb5sj1fVfZlwEsZE7swlrDZ+TB8aBOSjlS8N/RlKPR2nvphMcw6 tpP6tP0SzQgit/IGM7Yhb4tAW046TXwmX3gRVqVPxzyr43dX+0ttaYns9dlDqctIiSx3 OESlEb0he0ZuIKZ0noCmbLVLCykoLDVhnGXEY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=NNu4DKfSsozanfv3TCTFMvqNG3HrqgedqvcqyVJT4V/4AEEoUOEBPUuoAQN1XV3uH9 J1BG+2gH15meQJqg8yE0Q1jIPUnDWIDzsLNRfowTdkaU9+L++MymvMitrbem00wvnwpF 1KVimWSET2O1KGD1QIr2+eYt1u+Q0HM3If1nA= Received: by 10.110.73.19 with SMTP id v19mr4950506tia.40.1235350161630; Sun, 22 Feb 2009 16:49:21 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id j5sm8222044tid.1.2009.02.22.16.49.18 (version=SSLv3 cipher=RC4-MD5); Sun, 22 Feb 2009 16:49:20 -0800 (PST) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Mon, 23 Feb 2009 09:54:16 +0900 From: Pyun YongHyeon Date: Mon, 23 Feb 2009 09:54:16 +0900 To: Tesch Zoltan Message-ID: <20090223005416.GC48134@michelle.cdnetworks.co.kr> References: <20090222080029.3900.qmail@server23.citromail.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090222080029.3900.qmail@server23.citromail.hu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-drivers@freebsd.org Subject: Re: debugging network device driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 01:20:13 -0000 On Sun, Feb 22, 2009 at 09:00:29AM +0100, Tesch Zoltan wrote: > 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. Hmm, I have no idea why SiS190 is similar to RTL8169. Both controllers have small set of registers though. > 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. > 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. > 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. > 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. From owner-freebsd-drivers@FreeBSD.ORG Mon Feb 23 19:40:08 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 C995D1065689 for ; Mon, 23 Feb 2009 19:40:08 +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 1291B8FC08 for ; Mon, 23 Feb 2009 19:40:07 +0000 (UTC) (envelope-from clamav@citromail.hu) Received: (qmail 12143 invoked by uid 89); 23 Feb 2009 19:40:05 -0000 Message-ID: <20090223194005.12142.qmail@server23.citromail.hu> To: Received: from ktv-5B906329.pool.nagykanyar.hu [91.144.99.41] by with HTTP; Mon, 23 Feb 2009 20:40:05 +0100 From: "Tesch Zoltan" Date: Mon, 23 Feb 2009 20:40:05 +0100 Errors-To: X-Priority: 3 X-Mailer: VIPmail v.2.6 In-Reply-To: <20090223005416.GC48134@michelle.cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Subject: Re: 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: Mon, 23 Feb 2009 19:40:09 -0000 Hi, Thanx a lot, I will try it Zoltan -- Eredeti =FCzenet -- Felad=F3: Pyun YongHyeon <pyunyh@gmail.com> C=EDmzett: Tesch Zoltan <clamav@citromail.hu> Elk=FCldve: 01:49 T=E9ma: Re: debugging network device driver On Sun, Feb 22, 2009 at 09:00:29AM +0100, Tesch Zoltan wrote: > Hi, >=20 > 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. Hmm, I have no idea why SiS190 is similar to RTL8169. Both controllers have small set of registers though. > I can load the module, attach to SiS190 device, miibus and phy but whe= n > 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. >=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. > My questions: > Is there any way to switch to kernel debug mode in this situation to s= ee > what happened or is it possible to run the module under the supervisi= on > of kernel debugger running on the machine, because this laptop has no > serial line or any other network interface. >=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. From owner-freebsd-drivers@FreeBSD.ORG Wed Feb 25 14:26:59 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 C908A1065672 for ; Wed, 25 Feb 2009 14:26:59 +0000 (UTC) (envelope-from gkpect@gmail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id 52ACC8FC0C for ; Wed, 25 Feb 2009 14:26:58 +0000 (UTC) (envelope-from gkpect@gmail.com) Received: by bwz9 with SMTP id 9so26544bwz.19 for ; Wed, 25 Feb 2009 06:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=xa4mR2KjpbNsmquLmZkrjrBQzgE+iEdzejdk+qVuzf4=; b=q6VYTKwIEIquaDMGE7ah3jT2xzz09PQC/MjdM66mV6AleQ8OsrJzvZIT+q1lsxPNXm pWCRKtsgAP8ntrMeqnBSOnIFsamS+lht22vTSQOKwBgxFdtJX9OhQCv8+Ic1Z30Ot9cS mQVjeNXc5CmmvGV+QikOaF2A11+odu++bM/nk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hUPe54nj+wSMjErM7Uw3uXw3i2ELz2JbvO4tsd6SA/ZH0zbYsuQ7Tn7m8I/K2SXHlX MaSvi7k6nI4wXFyfXwqlCjdcp9/aVESrY/BWMlnEiwPnfSzxq1caq67Ns7NKNyBT3HvY q0b7neUDFTZyBSnjr1ieZr2fHeXmvvaXUdnnE= MIME-Version: 1.0 Received: by 10.223.110.144 with SMTP id n16mr959633fap.55.1235571284575; Wed, 25 Feb 2009 06:14:44 -0800 (PST) Date: Wed, 25 Feb 2009 16:14:44 +0200 Message-ID: <65aa157b0902250614g367f1440y6e11c9e84a702aaf@mail.gmail.com> From: Stanislav Bondarenko To: freebsd-drivers@freebsd.org X-Mailman-Approved-At: Wed, 25 Feb 2009 14:56:47 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Samsung SWC-U200 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: Wed, 25 Feb 2009 14:27:00 -0000 Hello, Is there any possibility to work with this modem in FreeBSD? From owner-freebsd-drivers@FreeBSD.ORG Thu Feb 26 12:03:37 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 E9C8A106582B for ; Thu, 26 Feb 2009 12:03:36 +0000 (UTC) (envelope-from gkpect@gmail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id 67A878FC26 for ; Thu, 26 Feb 2009 12:03:35 +0000 (UTC) (envelope-from gkpect@gmail.com) Received: by bwz9 with SMTP id 9so239576bwz.19 for ; Thu, 26 Feb 2009 04:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=zIMXWU2lAa794AVh3cKyldvnDdTQBaCcUv/ngptWBzE=; b=NgQ261yWum73FTNDO+jqmAfGP8NwHbwqEWiZHSK0+9M0+LYE7qX0QIXeDuUb8OLjl8 roW7yhH6sa6OOAeYK216Qv4kKswfOmRhO25NGTwcpUvKShBfvA0I2nHswgy2B0XSa9bZ kyIQh0rJq2uNfKlTWFKn0HPuJkPrIlqrvjQn0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=r29XyY3a11Y1qISw4Ta3qXYbJdqnDf8lbAiPTZGrZI2zJpI+X9YzvSNic1be+ZJyoN eIt9U3hgA+Em8H902RRVS5pq707K9IOszx5i8G8V4SdKQpx0O1dYnb21pwCsjt/l9AK8 BwxEkobVt9hQWDZkgcz9tGVv7b6TfFFbJIv58= MIME-Version: 1.0 Received: by 10.223.115.193 with SMTP id j1mr2011700faq.98.1235649814803; Thu, 26 Feb 2009 04:03:34 -0800 (PST) In-Reply-To: <65aa157b0902250614g367f1440y6e11c9e84a702aaf@mail.gmail.com> References: <65aa157b0902250614g367f1440y6e11c9e84a702aaf@mail.gmail.com> Date: Thu, 26 Feb 2009 14:03:34 +0200 Message-ID: <65aa157b0902260403i3d3c1ccbvf0e4a5bb3a982058@mail.gmail.com> From: Stanislav Bondarenko To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Samsung SWC-U200 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: Thu, 26 Feb 2009 12:03:57 -0000 This is WiMax modem. Some additional information can be found here: http://www.wimaxforum.org/productshowcase/samsungswcu200 Also I've found Russian project about driver for Linux. It contains information about protocol and requests used by modem. Unfortunately, I can't find the same project in English. http://code.google.com/p/madwimax/