Re: RFC: ugensa(4) driver ported from NetBSD
Hi, Sorry it took so long to test again. This version now works for me with the appropriate device IDs manually added. If you commit this driver to the tree (it would be great if it were) could you also add the Sierra Wireless 875 ? ugensa0: Sierra Wireless, Incorporated Mini Card, class 0/0, rev 1.10/0.01, addr 2 on uhub0 ugensa_attach: sc = 0xc236f780 ugensa0: unexpected endpoint # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x), AMD(0x), rev 1.00 port 1 addr 2: full speed, power 500 mA, config 1, Mini Card(0x6812), Sierra Wireless, Incorporated(0x1199), rev 0.01 port 2 powered port 3 powered port 4 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x), AMD(0x), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered ---Mike At 05:27 AM 1/4/2008, Mario Sergio Fujikawa Ferreira wrote: Hi, I fixed the permissions. You can grab the updated version now. Regards, Mario Sergio Fujikawa Ferreira wrote: Hi, There is an updated version of the driver available at http://people.FreeBSD.org/~lioux/ugensa.tar.gz Let me know how it goes. I enabled debug mode so there should be more information this time if something goes wrong. Regards, ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RFC: ugensa(4) driver ported from NetBSD
At 03:25 PM 1/10/2008, Mike Tancsa wrote: Hi, Sorry it took so long to test again. This version now works for me with the appropriate device IDs manually added. If you commit this driver to the tree (it would be great if it were) could you also add the Sierra Wireless 875 ? Actually, upon further testing, it doesnt quite work. Some of the characters are being dropped, so I cant fire up PPP. The script fails in random places unfortunately due to missed responses. ---Mike ugensa0: Sierra Wireless, Incorporated Mini Card, class 0/0, rev 1.10/0.01, addr 2 on uhub0 ugensa_attach: sc = 0xc236f780 ugensa0: unexpected endpoint # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x), AMD(0x), rev 1.00 port 1 addr 2: full speed, power 500 mA, config 1, Mini Card(0x6812), Sierra Wireless, Incorporated(0x1199), rev 0.01 port 2 powered port 3 powered port 4 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x), AMD(0x), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered ---Mike At 05:27 AM 1/4/2008, Mario Sergio Fujikawa Ferreira wrote: Hi, I fixed the permissions. You can grab the updated version now. Regards, Mario Sergio Fujikawa Ferreira wrote: Hi, There is an updated version of the driver available at http://people.FreeBSD.org/~lioux/ugensa.tar.gz Let me know how it goes. I enabled debug mode so there should be more information this time if something goes wrong. Regards, ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RFC: ugensa(4) driver ported from NetBSD
Hi, I fixed the permissions. You can grab the updated version now. Regards, Mario Sergio Fujikawa Ferreira wrote: Hi, There is an updated version of the driver available at http://people.FreeBSD.org/~lioux/ugensa.tar.gz Let me know how it goes. I enabled debug mode so there should be more information this time if something goes wrong. Regards, ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RFC: ugensa(4) driver ported from NetBSD
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 will give it a try! I have a few such devices that I have been using on FreeBSD with the driver at http://www.cs.cmu.edu/~dga/dot/fbsd_pc5220/ugencom.c It would be great if this could be part of the base of FreeBSD! ---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 [EMAIL PROTECTED] ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RFC: ugensa(4) driver ported from NetBSD
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(0x), AMD(0x), 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: Sierra Wireless, Incorporated Mini Card, class 0/0, rev 1.10/0.01, addr 2 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 0xf, 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 [EMAIL PROTECTED] ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RFC: ugensa(4) driver ported from NetBSD
At 11:11 AM 12/31/2007, Mike Tancsa wrote: 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 Some more details Fatal trap 12: page fault while in kernel mode fault virtual address = 0x4 fault code = supervisor read, page not present instruction pointer = 0x20:0xc04eb6d3 stack pointer = 0x28:0xcc5ae958 frame pointer = 0x28:0xcc5ae988 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 847 (cu) [thread pid 847 tid 100062 ] Stopped at usbd_open_pipe_ival+0x13: movl0x4(%eax),%eax db bt Tracing pid 847 tid 100062 td 0xc1dfc210 usbd_open_pipe_ival(c1d74390,,cc5ae9bc,c04de072,0,...) at usbd_open_pipe_ival+0x13 usbd_open_pipe(0,85,0,c1d74390,c1d7a800,...) at usbd_open_pipe+0x24 ucomopen(c1d7a800,c1d76400,0,c2346dd0,cc5ae9f4,...) at ucomopen+0xa2 ttyopen(c1d76400,7,2000,c1dfc210,0,...) at ttyopen+0x286 giant_open(c1d76400,7,2000,c1dfc210,cc5aea50,...) at giant_open+0x73 devfs_open(cc5aea8c,cc5aeb1c,c05ca5a7,c074dbe0,cc5aea8c,...) at devfs_open+0x21f VOP_OPEN_APV(c074dbe0,cc5aea8c,cc5aea84,c1dadaa0,c2346dd0,...) at VOP_OPEN_APV+0x42 vn_open_cred(cc5aeb80,cc5aec78,94c,c22ba800,c1e2a750,...) at vn_open_cred+0x487 vn_open(cc5aeb80,cc5aec78,94c,c1e2a750,c22ba800,...) at vn_open+0x33 kern_open(c1dfc210,bfbfed56,0,7,bfbfeb4c,...) at kern_open+0xc4 open(c1dfc210,cc5aecfc,c,16,cc5aed2c,...) at open+0x30 syscall(cc5aed38) at syscall+0x317 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (5, FreeBSD ELF32, open), eip = 0x28145f1b, esp = 0xbfbfeb3c, ebp = 0xbfbfeb88 --- ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]