Date: Thu, 29 Nov 2001 03:33:33 +0800 From: Chia-liang Kao <clkao@clkao.org> 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>
next in thread | raw e-mail | index | archive | help
--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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> 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: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pci0: <unknown card> (vendor=0x8086, dev=0x7195) at 0.1 irq 11 pci0: <unknown card> (vendor=0x0000, dev=0x0000) at 0.2 pci0: <unknown card> (vendor=0x11c1, dev=0x0441) at 2.0 irq 11 pci0: <S3 model 8c12 graphics accelerator> at 4.0 irq 11 chip1: <PCI to Other bridge (vendor=8086 device=7198)> at device 7.0 on pci0 atapci0: <Intel PIIX4 ATA33 controller> port 0xf870-0xf87f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 uhci0: <Intel 82443MX USB controller> port 0xf840-0xf85f irq 11 at device 7.2 on pci0 usb0: <Intel 82443MX USB controller> 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: <PCI to Other bridge (vendor=8086 device=719b)> at device 7.3 on pci0 pci0: <unknown card> (vendor=0x1179, dev=0x0d01) at 9.0 irq 11 pci0: <unknown card> (vendor=0x104c, dev=0x8019) at 15.0 irq 11 eisa0: <EISA bus> on motherboard eisa0: unknown card @@@0000 (0x00000000) at slot 1 isa0: <ISA bus> on motherboard orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xec000-0xeffff on isa0 fdc0: direction bit not set fdc0: cmd 3 failed at out byte 1 of 3 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A pcic0: <Intel i82365SL-A/B> at port 0x3e0 iomem 0xd0000 irq 10 on isa0 pcic0: management irq 10 pccard0: <PC Card bus (classic)> on pcic0 pccard1: <PC Card bus (classic)> on pcic0 IPFW: MOD_LOAD IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to deny, logging disabled ad0: 19077MB <TOSHIBA MK2016GAP> [38760/16/63] at ata0-master UDMA33 Mounting root from ufs:/dev/ad0s1a pccard: card inserted, slot 1 WARNING: / was not properly dismounted uplcom0: at uhub0 port 1 (addr 2) disconnected ucom0: detached uplcom0: detached uplcom0: Prolific Technology Inc. PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 1.10/2.00, addr 2 ucom0 on uplcom0 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:0xc025d374 frame pointer = 0x10:0xc025d394 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... 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 giving up on 1 buffers Uptime: 5m54s dumping to dev #ad/0x20001, offset 221440 dump ata0: resetting devices .. done 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 dumpsys () at ../../kern/kern_shutdown.c:473 473 if (dumping++) { (kgdb) bt #0 dumpsys () at ../../kern/kern_shutdown.c:473 #1 0xc013d390 in boot (howto=256) at ../../kern/kern_shutdown.c:313 #2 0xc013d770 in poweroff_wait (junk=0xc0256bac, howto=-1071290673) at ../../kern/kern_shutdown.c:581 #3 0xc021c5e7 in trap_fatal (frame=0xc025d334, eva=4294967295) at ../../i386/i386/trap.c:956 #4 0xc021c2a1 in trap_pfault (frame=0xc025d334, usermode=0, eva=4294967295) at ../../i386/i386/trap.c:849 #5 0xc021be77 in trap (frame={tf_fs = -1071775728, tf_es = -1059717104, tf_ds = -1064566768, tf_edi = -907817216, tf_esi = -1059706752, tf_ebp = -1071262828, tf_isp = -1071262880, tf_ebx = -1059184688, tf_edx = -895323096, tf_ecx = -1064484288, tf_eax = -1, tf_trapno = 12, tf_err = 0, tf_eip = -1, tf_cs = 8, tf_eflags = 66182, tf_esp = -1071733317, tf_ss = -1059706880}) at ../../i386/i386/trap.c:448 #6 0xffffffff in ?? () #7 0xc01eb36a in uplcom_intr (xfer=0xc0d62b00, priv=0xc0d60a40, status=USBD_NORMAL_COMPLETION) at ../../dev/usb/uplcom.c:726 #8 0xc01e6728 in usb_transfer_complete (xfer=0xc0d62b00) at ../../dev/usb/usbdi.c:839 #9 0xc01e319f in uhci_idone (ii=0xc08cf140) at ../../dev/usb/uhci.c:1159 #10 0xc01e3071 in uhci_check_intr (sc=0xc0d61000, ii=0xc08cf140) at ../../dev/usb/uhci.c:1053 #11 0xc01e2fd7 in uhci_intr (arg=0xc0d61000) at ../../dev/usb/uhci.c:990 (kgdb) up 7 #7 0xc01eb36a in uplcom_intr (xfer=0xc0d62b00, priv=0xc0d60a40, status=USBD_NORMAL_COMPLETION) at ../../dev/usb/uplcom.c:726 726 ucom_status_change((struct ucom_softc *) sc->sc_subdev); (kgdb) print sc $1 = (struct uplcom_softc *) 0x0 (kgdb) print priv $2 = 0xc0d60a40 (kgdb) down #6 0xffffffff in ?? () (kgdb) quit portege# exit exit Script done on Thu Nov 29 03:28:34 2001 --Kj7319i9nmIyA2yE-- --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8BTwLk1XldlEkA5YRAlGwAJ4sU7UwQyXjOycJM+pw6JSrtsrSIACdHEwk 3qkMDSuEcJ72cQ+K9zRsc8c= =aNou -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011128193333.GA11463>