[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] visor edge/usb/freebsd 4.3-RC problems



Ilya wrote:
> 
> Hi. Ive been trying for 3 days now to get my visor edge to sync with coldsync through USB in FreeBSD 

<snip>

> i have also tried to use this in /etc/usbd.conf with no luck:
> #device "Handspring Visor"
> #device "Handspring Inc Handspring Visor"
>  #       devname "ugen0.2"
>  #       vendor 0x082d
>  #       product 0x0100
>  #       release 0x0100
>  #       attach "/usr/local/bin/coldsync -t usb -p /dev/ugen0 -m /usr/home/ilya/.palm/backup

As far as I know, "-m" is not a valid option for coldsync.  And if that
part of your /etc/usbd.conf looks just like you posted it, you need to
uncomment most of those lines (delete the "#" at the start of each
line).  
Or to simplify things, just replace the whole visor block in
/etc/usbd.conf with this:

##########################
## Handspring visor (PDA)
    device "Handspring Visor"
        devname "ugen0"
        vendor 0x082d           
        product 0x0100          
        release 0x0100
#daemon mode: 
#       attach "/usr/local/bin/coldsync -f /usr/home/ilya/.coldsyncrc -t
usb -svv -md ${DEVNAME}"

#restore mode:
#        attach "/usr/local/bin/coldsync -f /usr/home/ilya/.coldsyncrc
-t usb -svv -mr /path/to/restore/dir ${DEVNAME}"

#Initialize mode:
        attach "/usr/local/bin/coldsync -f /usr/home/ilya/.coldsyncrc -t
usb -svv -mI ${DEVNAME}"

#Backup mode:
#        attach "/usr/local/bin/coldsync -f /usr/home/ilya/.coldsyncrc
-t usb -svv -mb /path/to/your/backup/dir ${DEVNAME}"
############################


You didn't need to specify "/home/ilya/.palm/backup".   Coldsync knows
to read/write there once it knows the uid.  I specify "-f
/usr/home/ilya/.coldsyncrc" because that allows me to specify Username
and uid explicity in that file; otherwise, if usbd is running as root,
there's a chance for case of mistaken identity.  

Notice that the only uncommented "attach...." line above is the one with
the "-mI" switch (also check the man page; "-mI" is the first option
listed).  Next: kill usbd (if it's running already), then start usbd
again as "ilya", then do a HotSync for initialization--and make sure the
username on your visor isn't "Charlie Root" afterwards. ;) 

Your visor should have initialized by now; hit the "log" button on the
hotsync screen and you should be able to see your username and uid.  If
not, post your error messages.  You need a good initial synch before you
can do anything else. 

Next, re-edit /etc/usbd.conf.  All you need to do is comment out the
Initialize line and uncomment the daemon mode line.  kill usbd, then
restart it (again as "ilya").  The next time you sync, all of your
databases should be backed up to ~/.palm/backup automatically.

Andrew's right: it's ugly.

but hey, it does the job.

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.