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

[coldsync-hackers] visor/USB & FreeBSD update



I got it working.

First a recap: this doesn't seem to work on a USB/FreeBSD-4.2 setup:

%/usr/local/bin/coldsync -t usb -p /dev/ugen0 -mb /home/username/backup_dir

...yet USB seems to be working fine on this system.  At the same time, dropping that command into usbd.conf like this:

	attach "/usr/local/bin/coldsync ...."
*does* work.  So it would seem that only usbd can use USB devices directly, and any program that wants to use a device must be called as an "attach" statement.  

I am *really* uncertain about that last statement.  Are there any USB/FreeBSD users out there who've had success at the command line?  If so, could you attach your usbd.conf? 

At any rate, it turns out that not being able to use coldsync at the command line might not be a problem. But first, I have to initialize the visor; here's the new handspring section of /etc/usbd.conf:

device "Handspring Visor"
        devname "ugen0"
        vendor 0x082d           
        product 0x0100          
        release 0x0100
        attach "/usr/local/bin/coldsync -mI -t usb -s ${DEVNAME}"

and here's my /usr/local/etc/palms:

# Hash in first column means comment
*Visor*|James Widman|1000|james|Visor|/home/james/.coldsyncrc

(as described at: http://www.thedotin.net/maillists/coldsync-hackers/msg00159.html   )
..and my currently-bare-bones .coldsyncrc:

listen usb {
        device: "/dev/ugen0";
}

pda "Kodama" {
    username: "James Widman";
    userid: 1000;
    default;
}

Having set all that up, I now "killall usbd" as root, then login as "james"....

%cd
[remove or rename ".palm" in your home directory if it exists]
%usbd
<hit the hotsync button, and the visor should load your username; it's now initialized>
%killall usbd
%su
#vi /etc/usbd.conf
[in the "attach" statement, change '-mI' to '-md', just as in Andrew's original usbd.conf example]
#exit
%usbd
[ optional --log out--  ;) ]
<hit the hotsync button again, and watch the magic unfold :) >
<leave usbd running, of course>

You can now do a complete sync; I just installed a freeware PalmOS program and I'm pretty happy about that :) 

So far, coldsync rocks!  I look forward to extending its use with conduits. 
Thanks Andrew!

...at this point, does it matter too much that we can't really use coldsync from the command line with USB/FreeBSD (this is assuming that I really can't and it's not just some config issue)?  If so I can still generate those error mesgs for you.

-- 
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.