From owner-freebsd-usb@FreeBSD.ORG Mon Dec 31 16:13:08 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBE9816A46B for ; Mon, 31 Dec 2007 16:13:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 95C9613C45D for ; Mon, 31 Dec 2007 16:13:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id lBVGD7LF079242; Mon, 31 Dec 2007 11:13:07 -0500 (EST) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id lBVGD7tG092983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Dec 2007 11:13:07 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <200712311613.lBVGD7tG092983@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 31 Dec 2007 11:11:13 -0500 To: Mario Sergio Fujikawa Ferreira , freebsd-usb@freebsd.org From: Mike Tancsa In-Reply-To: <4778E109.2060209@uol.com.br> References: <4778E109.2060209@uol.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: RFC: ugensa(4) driver ported from NetBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 16:13:09 -0000 At 07:31 AM 12/31/2007, Mario Sergio Fujikawa Ferreira wrote: >Hi, > > I wrote a simple port of the NetBSD ugensa(4) driver: USB generic > serial adapter > >http://www.daemon-systems.org/man/ugensa.4.html > > I would like for you to review the "ported" kernel module. The > file can be found at Hi, I added the defs for my Sierra 875, but the box panics up when I connect to the port # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), AMD(0x0000), rev 1.00 port 1 addr 2: full speed, power 500 mA, config 1, Mini Card(0x6812), Sierra Wireless, Incorporated(0x1199), rev 0.01 ugensa0: on uhub0 ugensa0: unexpected endpoint Fatal trap 12: page fault while in kernel mode fault virtual address = 0x4 fault code = supervisor read, page not present instruction pointer = 0x20:0xc04de493 stack pointer = 0x28:0xccea3974 frame pointer = 0x28:0xccea39a4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 990 (cu) trap number = 12 panic: page fault Uptime: 2m34s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort ---Mike >http://people.FreeBSD.org/~lioux/ugensa.tar.gz > > The files are as follow: > >- Modified kernel module for FreeBSD based on src/sys/dev/usb/uplcom.c >ugensa/ugensa.c >- Original NetBSD kernel module >ugensa/ugensa.c.orig >- Some header definitions while usbdevs is not updated >ugensa/ugensa.h > > Unfortunally, I haven't been able to test this module since it > means that I have to buy one of the supported devices. It is a > chicken-n-egg problem..... Nevertheless, I would like to know if I > made any obvious mistakes on the module porting. > > Regards, > >-- >Mario S F Ferreira - DF - Brazil - "I guess this is a signature." >feature, n: a documented bug | bug, n: an undocumented feature >_______________________________________________ >freebsd-usb@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"