From 6ac10ddf1839eb035bdc8b9cb3df05fe05a845ef Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 27 May 2011 16:31:18 -0300 Subject: [PATCH] prod/doc/setup.hmac: described PC and Ben software and test script installation --- prod/doc/setup.hmac | 61 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/prod/doc/setup.hmac b/prod/doc/setup.hmac index b91bf3d..b2d7bc1 100644 --- a/prod/doc/setup.hmac +++ b/prod/doc/setup.hmac @@ -44,7 +44,25 @@ need to be installed on Ben and PC, and configuration settings -@@@ +To build the ben-wpan tools and install them under +/usr/local/ on the local machine, +run the following commands: +
+git clone git://projects.qi-hardware.com/ben-wpan.git
+git clone git://projects.qi-hardware.com/f32xbase.git
+cd ben-wpan/tools
+make
+make install
+
+

+A different directory prefix can be chosen by overriding the +INSTALL_PREFIX variable, e.g., +

+make INSTALL_PREFIX=/usr install
+
+

+Note that the test scripts expect ${INSTALL_PREFIX}/bin +to be in PATH. @@ -52,7 +70,10 @@ need to be installed on Ben and PC, and configuration settings -@@@ +The test scripts are in the directory prod/ of the +ben-wpan project. They currently are designed to be run from +this directory. Therefore, all that's necessary is to check out the +repository, as shown above. @@ -131,7 +152,41 @@ ssh ben 'cat >>/etc/dropbear/authorized_keys' <~/.ssh/id_rsa.pub -@@@ +To build and install the ben-wpan tools on the Ben, first set +up networking between the PC and the Ben. If you have not yet checked +out the project's repository, run these commands: + +

+git clone git://projects.qi-hardware.com/ben-wpan.git
+git clone git://projects.qi-hardware.com/f32xbase.git
+cd ben-wpan/tools
+
+ +If you have already checked out the repository, cd to +ben-wpan/tools/ and run + +
+make clean
+
+ +Next, if on OpenWrt, compile the tools with +
+make TARGET=ben_openwrt
+
+ +If on Jlime, use +
+make TARGET=ben_jlime
+
+ +Finally, upload the tools to the Ben and install them under +/usr/bin/ with + +
+make HOST=ben install
+
+ +Where ben is the host name or IP address assigned to the Ben.