This page describes installation of SynCE on FreeBSD

Prerequisites

attachment:usb2pc.png

Please note, that not all devices supporting rndis follow the same naming. E.g. for Asus P535 you need to select "normal mode" in the USB Setting dialogue. Please refer to your device documentation on how to disable rndis on your particular PDA or smartphone.

Technical details

On FreeBSD, there is no support for Microsoft's implementation of RNDIS, so all devices (WM2003, WM5, WM6) should be connected to PC in "legacy" mode. In this mode, device can be managed by uipaq kernel driver:

# kldload uipaq
# dmesg | tail -n 1
ucom0: <HTC USB Serial for Wizard, class 0/0, rev 2.00/0.00, addr 3> on uhub2

If you see ugen device instead of ucom, then your device is not recognized by uipaq driver. You should add device's vid/pid to device table in uipaq source code and recompile driver.

ODCCM daemon doesn't work on FreeBSD, because it needs AF_NETLINK socket family from Linux kernel. So we will use synce-hal utility (developed by Mark Ellis) to connect to device. It requires sysutils/hal, so you should install this package, or it will be installed as a dependency at the next step.

Install ports

The following ports are nessesary for basic operation of SynCE (remote FS browsing, file copying, registry operations):

If your device is not HTC-based, you probably will need some extra steps:

After installation, restart HAL daemon or start it:

# /usr/local/etc/rc.d/hald forcerestart

and plug-in your device. You will see connection progress on device. Probably it will ask you to enter unlock code. Then you may verify that connection succeeded by typing:

% pls

You should see "/My Documents" folder contents.

Firewall issues

If you have firewall running on your PC, make sure it doesn't block communication with device. SynCE needs the following ports to be able to communicate with phone:

Show must go on ;-)

SynceInstallation/FreeBSD (last edited 2008-09-17 14:43:00 by IlyaBakulin)