Date: Tue, 29 Nov 2005 11:20:04 -0500 From: "Peter D. Quilty" <pdquilty@adelphia.net> To: Paolo Pisati <p.pisati@oltrelinux.com> Cc: FreeBSD_Usb <freebsd-usb@freebsd.org> Subject: Re: [panic] FreeBSD 6.x, Palm PDA and ucom/uvisor Message-ID: <1133281205.1164.9.camel@pdq-laptop> In-Reply-To: <20051127164524.GA621@tin.it> References: <20051127164524.GA621@tin.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Paolo, I have a Tungsten C that I sync with Evolution on FreeBSD 6.0-RELEASE. You have to load ucom & uvisor first and then press the hotsync button. The Palm should show up as /dev/cuaU0. With the new tty driver in 6.x, you don't access /dev/ucom0 any longer, but instead use /dev/cuaU0. >From the 6.0 Release Notes: The generic tty(4) driver interface has been added and many device drivers including cx(4) ({tty,cua}x), cy(4) ({tty,cua}c), digi(4) ({tty,cua}D), rc(4) ({tty,cua}m), rp(4) ({tty,cua}R), sab(4) ({tty,cua}z), si(4) ({tty,cua}A), sio(4) ({tty,cua}d), sx ({tty,cua}G), uart(4) ({tty,cua}u), ubser(4) ({tty,cua}y), ucom(4) ({tty,cua}U), and ucycom(4) ({tty,cua}y) have been rewritten to use it. Note that /etc/remote and /etc/ttys have been updated as well. I hope this helps. --=20 Peter D. Quilty pdquilty@adelphia.net GnuPG Key: http://users.adelphia.net/~pdquilty/gpg-pubkey.asc GnuPG Key Fingerprint: A46A 0E56 D13E 5617 4696 2B04 0D0C E34D CB6D D107 On Sun, 2005-11-27 at 17:45 +0100, Paolo Pisati wrote: > Hi, >=20 > i'm an happy owner of a Palm PDA (Tapwave Zodiac/PalmOS 5.2) > and since yesterday i'm trying to sync it with my=20 > laptop running FreeBSD 6.x, but so far no luck. >=20 > First i googled around for some infos about the process of > hotsyncing palms in freebsd, but found only outdated docs/emails. > This looks the best one: >=20 > http://gja.space4me.com/things/Palm_TungstenC_FreeBSD.html >=20 >=20 > It says to load uvisor and ucom together, connect the pda via usb, > press the hotsync button and the pda should appear as ucom0. > First i patched usbdevs and uvisor.c to recognize my pda and=20 > recompiled everything just in case (see other email), then: >=20 > $ sudo kldload uvisor > [flag@longino ~] > $ kldstat=20 > Id Refs Address Size Name > 1 29 0xc0400000 353dd0 kernel > 2 1 0xc0754000 60c4 snd_ich.ko > 3 2 0xc075b000 205a8 sound.ko > 4 1 0xc077c000 9080 ng_ubt.ko > 5 2 0xc0786000 d568 netgraph.ko > 6 1 0xc0794000 aea0 if_iwi.ko > 7 2 0xc079f000 20cf0 wlan.ko > 8 1 0xc07c0000 66074 acpi.ko > 9 1 0xc36d8000 33000 nfsclient.ko > 10 2 0xc3742000 1a000 linux.ko > 11 1 0xc37a1000 2000 rtc.ko > 12 1 0xc3898000 7000 umass.ko > 13 1 0xc38b0000 4000 ums.ko > 14 1 0xc3a3b000 5000 ugen.ko > 15 1 0xc3cb1000 3000 uvisor.ko > 16 1 0xc3cf6000 3000 ucom.ko >=20 > (uvisor brings in ucom) >=20 > and when i press the hotsync button: >=20 > Nov 27 16:54:05 longino kernel: ucom0: Tapwave, Inc. Tapwave Handheld, re= v 1.10/1.00, addr 3 > Nov 27 16:54:15 longino kernel:=20 > Nov 27 16:54:15 longino kernel: ucom0: failed to set configuration, err= =3DTIMEOUT > Nov 27 16:54:15 longino kernel: device_attach: ucom0 attach returned 6 > Nov 27 16:54:20 longino kernel: uhub3: port 2, set config at addr 3 faile= d > Nov 27 16:54:20 longino kernel: uhub3: device problem (TIMEOUT), disablin= g port 2 >=20 > and no ucom appears in /dev. > And all the subsequents pression of hotsync button i get: >=20 > Nov 27 16:56:21 longino kernel: ucom1: Tapwave, Inc. Tapwave Handheld, re= v 1.10/1.00, addr 3 > Nov 27 16:56:31 longino kernel:=20 > Nov 27 16:56:31 longino kernel: ucom1: failed to set configuration, err= =3DTIMEOUT > Nov 27 16:56:31 longino kernel: device_attach: ucom1 attach returned 6 > Nov 27 16:56:36 longino kernel: uhub3: port 2, set config at addr 3 faile= d > Nov 27 16:56:36 longino kernel: uhub3: device problem (TIMEOUT), disablin= g port=20 >=20 > and so on. > I tried unloading stuff, detaching all the usb gears from my laptop > but no luck. > Another 'funny' side effect i found while playing with usb was: >=20 > 1) compile a kernel with minimal usb support: >=20 > # USB support > device uhci # UHCI PCI->USB interface > device ehci # EHCI PCI->USB interface (USB 2.0) > device usb # USB Bus (required) >=20 > 2) kldload ucom >=20 > 3) press the hotsync button [nothing happens] >=20 > 4) kldload uvisor >=20 > 5) kernel panic >=20 > $ sudo kgdb ./kernel.debug /var/crash/vmcore.0=20 > [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.s= o: Undefined symbol "ps_pglobal_lookup"] > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 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 conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "i386-marcel-freebsd". >=20 > Unread portion of the kernel message buffer: >=20 >=20 > Fatal trap 12: page fault while in kernel mode > fault virtual address =3D 0x0 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x20:0xc0490418 > stack pointer =3D 0x28:0xd66608a0 > frame pointer =3D 0x28:0xd66609c8 > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 545 (kldload) > trap number =3D 12 > panic: page fault > Uptime: 21s > Dumping 503 MB (2 chunks) > chunk 0: 1MB (159 pages) ... ok > chunk 1: 503MB (128723 pages) 487 471 455 439 423 407 391 375 359 343 3= 27 311 295 279 263 247 231 215 199 183 167 151 135 119 103 87 71 55 39 23 7 >=20 > #0 doadump () at pcpu.h:165 > 165 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); > (kgdb) bt full > No locals. > #1 0xc04edd50 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c= :399 > first_buf_printf =3D 1 > #2 0xc04ee099 in panic (fmt=3D0xc067ca1c "%s") > at /usr/src/sys/kern/kern_shutdown.c:555 > td =3D (struct thread *) 0xc3861180 > bootopt =3D 260 > newpanic =3D 0 > ap =3D 0xc3861180 "\030T\206@\206" > buf =3D "page fault", '\0' <repeats 245 times> > #3 0xc0659fec in trap_fatal (frame=3D0xd6660860, eva=3D0) > at /usr/src/sys/i386/i386/trap.c:831 > code =3D 40 > type =3D 12 > ss =3D 40 > esp =3D 0 > softseg =3D {ssd_base =3D 0, ssd_limit =3D 1048575, ssd_type =3D = 27,=20 > ssd_dpl =3D 0, ssd_p =3D 1, ssd_xx =3D 0, ssd_xx1 =3D 0, ssd_def32 =3D = 1, ssd_gran =3D 1} > #4 0xc0659cc2 in trap_pfault (frame=3D0xd6660860, usermode=3D0, eva=3D0) > at /usr/src/sys/i386/i386/trap.c:742 > va =3D 0 > vm =3D (struct vmspace *) 0x0 > map =3D 0x1 > rv =3D 1 > ftype =3D 1 '\001' > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > #5 0xc065987f in trap (frame=3D > {tf_fs =3D -1068105720, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D -697= 955700, tf_esi =3D 61, tf_ebp =3D -697955896, tf_isp =3D -697956212, tf_ebx= =3D -1019352192, tf_edx =3D -1019352136, tf_ecx =3D 0, tf_eax =3D 0, tf_tr= apno =3D 12, tf_err =3D 0, tf_eip =3D -1068956648, tf_cs =3D 32, tf_eflags = =3D 590470, tf_esp =3D -1014623872, tf_ss =3D -1014606824}) at /usr/src/sys= /i386/i386/trap.c:432 > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > sticks =3D 3597011082 > i =3D 0 > ucode =3D 0 > type =3D 12 > code =3D 0 > eva =3D 0 > #6 0xc06469aa in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > No locals. > #7 0xc0490418 in usbd_get_string (dev=3D0xc33deb80, si=3D61,=20 > buf=3D0xd6660a8c "H\004") at /usr/src/sys/dev/usb/usbdi.c:1195 >=20 > swap =3D 16843009 > us =3D {bLength =3D 1 '\001', bDescriptorType =3D 1 '\001', bStri= ng =3D { > "\001\001" <repeats 19 times>, "\001", "\001\001" <repeats 97 times>,= =20 > "c", "\037", "\001", "\000", "D\v", "f", "\t", "f", "\"", "Q"}} > s =3D 0xc33deb80 "map" > i =3D 61 > n =3D -697955700 > c =3D 0 > err =3D USBD_NORMAL_COMPLETION > size =3D 16843009 > #8 0xc048d56e in usbd_devinfo_vp (dev=3D0xc33deb80, v=3D0xd6660a8c "H\00= 4",=20 > p=3D0xd6660a0c "l\nf8\aJ\005", usedev=3D1) > at /usr/src/sys/dev/usb/usb_subr.c:230 > udd =3D (usb_device_descriptor_t *) 0xc33debb8 > vendor =3D 0x0 > product =3D 0x0 > #9 0xc048d6e2 in usbd_devinfo (dev=3D0xc33deb80, showclass=3D0,=20 > cp=3D0xc33ce000 "/usr/local/modules/rtc.ko") > at /usr/src/sys/dev/usb/usb_subr.c:293 > udd =3D (usb_device_descriptor_t *) 0xc33debb8 > iface =3D 0xa > vendor =3D "H\004\000\004\nf=D6=A4j``\004\000\000\000\000\020\000= \000\000\nfR\006N\nf\020\000\000\000\000\000\000\000p?H\004\000\004\nf=D6= =A4j`\nf\006\000\000\000\000\004\000\000\nfR\006NP:>\000\004\000\000\006\00= 0\000\000\000<\030\vfa\aN kj\000\004\000\000\006\000\000\000 \004" > product =3D "l\nf8\aJ\005\000\000\000\000\000\000\000\000@\000 ",= '\0' <repeats 28 times>, "\001", '\0' <repeats 23 times>, "H\004\000\004\2= 10\nf=D6=A4j`\205g\000\000\000\000\020\000\000\000\210\nfR\006N$\nf\020\000= \000\000\000\000\000\0000;>=C3=AC\nf" > bcdDevice =3D -697955828 > bcdUSB =3D -697955700 > id =3D (usb_interface_descriptor_t *) 0x0 > #10 0xc38a3bb0 in ?? () > No symbol table info available. > #11 0xc33deb80 in ?? () > No symbol table info available. > #12 0x00000000 in ?? () > No symbol table info available. > #13 0xc33ce000 in ?? () > No symbol table info available. > #14 0xc33deacc in ?? () > No symbol table info available. > #15 0xc33e3a50 in ?? () > No symbol table info available. > #16 0xd6660b4c in ?? () > No symbol table info available. > #17 0xc050cb7e in kobj_lookup_method_mi (cls=3D0xc33dea80, desc=3D0xc33ce= 000) > at /usr/src/sys/kern/subr_kobj.c:202 > ce =3D (kobj_method_t *) 0x0 > basep =3D (kobj_class_t *) 0xc33dea80 > #18 0xc0507c9a in device_attach (dev=3D0xc33dea80) at device_if.h:177 > error =3D 0 > #19 0xc0507c11 in device_probe_and_attach (dev=3D0xc33dea80) > at /usr/src/sys/kern/subr_bus.c:2336 > error =3D -1016358912 > #20 0xc0508ae4 in bus_generic_driver_added (dev=3D0xc332f080, driver=3D0x= c38a5380) > at /usr/src/sys/kern/subr_bus.c:3069 > child =3D 0xc33dea80 > #21 0xc0506570 in devclass_add_driver (dc=3D0xc327d240, driver=3D0xc38a53= 80) > at bus_if.h:183 > dl =3D 0xc332f080 > i =3D 3 > #22 0xc0509d85 in driver_module_handler (mod=3D0xc386a640, what=3D-101434= 4832,=20 > arg=3D0xc38a5398) at /usr/src/sys/kern/subr_bus.c:3697 > error =3D -1020800448 > dmd =3D (struct driver_module_data *) 0xc38a5398 > bus_devclass =3D 0xc327d240 > driver =3D 0xc38a5380 > #23 0xc04e2181 in module_register_init (arg=3D0xc38a53ac) > at /usr/src/sys/kern/kern_module.c:121 > data =3D (const moduledata_t *) 0xc38a53ac > error =3D -1016306816 > mod =3D 0xc386a640 > #24 0xc04db530 in linker_file_sysinit (lf=3D0x0) > at /usr/src/sys/kern/kern_linker.c:194 > start =3D (struct sysinit **) 0xc38a4338 > stop =3D (struct sysinit **) 0xc38a433c > sipp =3D (struct sysinit **) 0xc38a4338 > xipp =3D (struct sysinit **) 0x0 > save =3D (struct sysinit *) 0xc33debb8 > #25 0xc04db8c8 in linker_load_file ( > filename=3D0xc36c6380 "/boot/kernel/uvisor.ko", result=3D0xd6660c94) > at /usr/src/sys/kern/kern_linker.c:367 > lc =3D 0xc06b0860 > lf =3D 0xc3894100 > foundfile =3D 1 > error =3D 0 > #26 0xc04de4f9 in linker_load_module ( > kldname=3D0xc36c6380 "/boot/kernel/uvisor.ko", modname=3D0xc33cf400 "= uvisor",=20 > parent=3D0x0, verinfo=3D0x0, lfpp=3D0xd6660cc0) > at /usr/src/sys/kern/kern_linker.c:1712 > lfdep =3D 0xc104ed20 > filename =3D 0x0 > pathname =3D 0xc36c6380 "/boot/kernel/uvisor.ko" > error =3D 17 > #27 0xc04dc56a in kldload (td=3D0xc3861180, uap=3D0x0) > at /usr/src/sys/kern/kern_linker.c:785 > kldname =3D 0x0 > modname =3D 0xc33debb8 "\021" > pathname =3D 0xc33cf400 "uvisor" > lf =3D 0xd6660d38 > error =3D 0 > #28 0xc065a3e0 in syscall (frame=3D > {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 0, tf_esi =3D= -1077940908, tf_ebp =3D -1077940952, tf_isp =3D -697954972, tf_ebx =3D 0, = tf_edx =3D -1, tf_ecx =3D -1077940704, tf_eax =3D 304, tf_trapno =3D 12, tf= _err =3D 2, tf_eip =3D 671906511, tf_cs =3D 51, tf_eflags =3D 531, tf_esp = =3D -1077941012, tf_ss =3D 59}) > at /usr/src/sys/i386/i386/trap.c:976 > params =3D 0xbfbfecf0 <Address 0xbfbfecf0 out of bounds> > callp =3D (struct sysent *) 0xc06aaac0 > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > lf =3D 0xd6660d38 > error =3D 0 > #28 0xc065a3e0 in syscall (frame=3D > {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 0, tf_esi =3D= -1077940908, tf_ebp =3D -1077940952, tf_isp =3D -697954972, tf_ebx =3D 0, = tf_edx =3D -1, tf_ecx =3D -1077940704, tf_eax =3D 304, tf_trapno =3D 12, tf= _err =3D 2, tf_eip =3D 671906511, tf_cs =3D 51, tf_eflags =3D 531, tf_esp = =3D -1077941012, tf_ss =3D 59}) > at /usr/src/sys/i386/i386/trap.c:976 > params =3D 0xbfbfecf0 <Address 0xbfbfecf0 out of bounds> > callp =3D (struct sysent *) 0xc06aaac0 > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > orig_tf_eflags =3D 531 > sticks =3D 0 > error =3D 0 > narg =3D 1 > args =3D {-1077940704, 12, 0, 0, -1014606824, 0, 0, 0} > code =3D 304 > #29 0xc06469ff in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception= .s:200 > No locals. > #30 0x00000033 in ?? () > No symbol table info available. > (kgdb)=20 >=20 > Hope this helps... >=20 > bye
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1133281205.1164.9.camel>