From owner-freebsd-mobile Wed Nov 28 11:34:36 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from portege.clkao.org (134.c210-85-11.ethome.net.tw [210.85.11.134]) by hub.freebsd.org (Postfix) with ESMTP id EFB3837B405 for ; Wed, 28 Nov 2001 11:34:08 -0800 (PST) Received: (from clkao@localhost) by portege.clkao.org (8.11.6/8.11.5) id fASJXX111939; Thu, 29 Nov 2001 03:33:33 +0800 (CST) (envelope-from clkao) Date: Thu, 29 Nov 2001 03:33:33 +0800 From: Chia-liang Kao To: usb-bsd@eleetbsd.org, freebsd-mobile@FreeBSD.ORG, lennart@augustsson.net, ichiro@ichiro.org Subject: usb-serial driver Message-ID: <20011128193333.GA11463@clk.cirx.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" Content-Disposition: inline User-Agent: Mutt/1.3.23.2i Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --ADZbWkCsHQ7r3kzd Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=big5 Content-Disposition: inline Hi, I got a usb sync/charger cable for my Palm V. it's a Prolific 2303 rs232 bridge with a Sipex rs232 receiver. I'm trying to port the netbsd ucom/uplcom driver to freebsd, based on http://homepage2.nifty.com/tkuro/archive/uvisor.diff.gz the current work(tho nothing works, it only compiles :-/) is at http://www.clkao.org/tmp/uplcom.tar.gz I'm quite new to the usb world. attached is kernel dump traces I currently encountered. the panic happens when i cat /dev/ttyU0, and remove the palm from the sync cable (while usb is still connected). I also borrowed a visor platinum from my friend to test uvisor. unlike a message in bsd-usb archive, i got only one ucom attached instead of two, after pressing the sync button on the cradle. Cheers, CLK --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=big5 Content-Disposition: attachment; filename="kernel-trace.txt" Script started on Thu Nov 29 03:27:42 2001 portege# gdb -k /home/clkao/crash/kernel.1 /home/clkao/crash/vmcore.1 GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... IdlePTD 3186688 initial pcb at 27de40 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0xffffffff fault code = supervisor read, page not present instruction pointer = 0x8:0xffffffff stack pointer = 0x10:0xc025b974 frame pointer = 0x10:0xc025b994 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 = Idle interrupt mask = bio trap number = 12 panic: page fault syncing disks... Fatal trap 12: page fault while in kernel mode fault virtual address = 0x30 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01c4068 stack pointer = 0x10:0xc025b794 frame pointer = 0x10:0xc025b79c 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 = Idle interrupt mask = bio trap number = 12 panic: page fault Uptime: 1h24m39s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot <-- Rebooting... Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.4-STABLE #18: Wed Nov 28 04:28:47 CST 2001 root@:/usr/src/sys/compile/PORTEGE.stable Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (500.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 201195520 (196480K bytes) avail memory = 192774144 (188256K bytes) Preloaded elf kernel "kernel.debug" at 0xc02eb000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00f0190 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: (vendor=0x8086, dev=0x7195) at 0.1 irq 11 pci0: (vendor=0x0000, dev=0x0000) at 0.2 pci0: (vendor=0x11c1, dev=0x0441) at 2.0 irq 11 pci0: at 4.0 irq 11 chip1: at device 7.0 on pci0 atapci0: port 0xf870-0xf87f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 uhci0: port 0xf840-0xf85f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uplcom0: Prolific Technology Inc. PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 1.10/2.00, addr 2 ucom0 on uplcom0 chip2: at device 7.3 on pci0 pci0: (vendor=0x1179, dev=0x0d01) at 9.0 irq 11 pci0: (vendor=0x104c, dev=0x8019) at 15.0 irq 11 eisa0: on motherboard eisa0: unknown card @@@0000 (0x00000000) at slot 1 isa0: on motherboard orm0: