Re: Sony Clie PEG-TJ37 vs. FreeBSD CURRENT (long)

From: Brian Fundakowski Feldman <green_at_freebsd.org>
Date: Thu, 1 Jul 2004 13:25:32 -0400
On Thu, Jul 01, 2004 at 10:17:49AM -0700, Bruce A. Mah wrote:
> On Thu, 2004-07-01 at 09:45, Brian Fundakowski Feldman wrote:
> > On Thu, Jul 01, 2004 at 08:44:29AM -0700, Bruce A. Mah wrote:
> > > Hi--
> > > 
> > > Has anyone gotten a Sony Clie PEG-TJ37 (PalmOS 5.2.1-based PDA) to
> > > establish a PPP connection with a 5-CURRENT/i386 machine over USB?
> > > (If anyone has a TJ25 or TJ35, that's pretty close and I'd like to
> > > hear from you too.)
> > > 
> > > I've been trying for awhile now without much success.  I'm generally
> > > following the instructions from:
> > > 
> > > http://gja.space4me.com/things/Palm_TungstenC_Freebsd.html
> > > 
> > > I had to apply the following patches to allow the uvisor driver to
> > > recognize the TJ37's USB ID:
> > > [...]
> > 
> > Heya, Bruce; I happened to be screwing with the uvisor driver a lot
> > yesterday to try to get my phone working (which it still doesn't...
> > no real explanation why...).  Try also merging in these diffs; you
> > should at least be able to adjust the part where it's choosing which
> > "port" to attach to the ucom device so that it chooses whichever you
> > are supposed to be able to do PPP over (right now, it's at the
> > HotSync port, but it's also untested :)
> 
> Brian, you rock.  With your patches (applied verbatim):
> 
> tomcat:bmah% ifconfig tun0
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>         inet 10.1.1.1 --> 10.1.1.2 netmask 0xffffffff
>         Opened by PID 28304
> tomcat:bmah% ping 10.1.1.2
> PING 10.1.1.2 (10.1.1.2): 56 data bytes
> 64 bytes from 10.1.1.2: icmp_seq=0 ttl=255 time=7.724 ms
> 64 bytes from 10.1.1.2: icmp_seq=1 ttl=255 time=6.757 ms
> 64 bytes from 10.1.1.2: icmp_seq=2 ttl=255 time=6.553 ms
> 64 bytes from 10.1.1.2: icmp_seq=3 ttl=255 time=7.384 ms
> 
> (If I had needed to adjust the port for the ucom connection, that would
> have been in the block of code with "XXX Should attach a ucom for each
> connection", yes?)
> 
> Have to go off and do ${REALWORK} now...I'm looking forward to playing
> with this more tonight (might finally be able to HotSync all my data
> onto this new gadget).
> 
> Thanks!

Great, glad it works!  Yeah, that's the part where you'd potentially
want to attach them all; since you're the one with the hardware
in a position to really test it, I'd appreciate if you'd add the
appropriate USB_DEBUG printfs for the PALM4 (!VISOR) case to see what
ports are really available and hopefully get someone who really knows
the USB/device drivers to finish making multiple ucom attachment work.

I really wonder why in most cases we're diverging from NetBSD's USB drivers
at all such that most changes are a "porting" effort :-/

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green_at_FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\
Received on Thu Jul 01 2004 - 15:25:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:59 UTC