prod/doc/setup.hmac |
44 | 44 | |
45 | 45 | <SUBSECTION title="Install ben-wpan tools"> |
46 | 46 | |
47 | | @@@ |
| 47 | To build the ben-wpan tools and install them under |
| 48 | <SAMP>/usr/local/</SAMP> on the local machine, |
| 49 | run the following commands: |
| 50 | <PRE> |
| 51 | git clone git://projects.qi-hardware.com/ben-wpan.git |
| 52 | git clone git://projects.qi-hardware.com/f32xbase.git |
| 53 | cd ben-wpan/tools |
| 54 | make |
| 55 | make install |
| 56 | </PRE> |
| 57 | <P> |
| 58 | A different directory prefix can be chosen by overriding the |
| 59 | <B>INSTALL_PREFIX</B> variable, e.g., |
| 60 | <PRE> |
| 61 | make INSTALL_PREFIX=/usr install |
| 62 | </PRE> |
| 63 | <P> |
| 64 | Note that the test scripts expect <SAMP>${INSTALL_PREFIX}/bin</SAMP> |
| 65 | to be in <B>PATH</B>. |
48 | 66 | |
49 | 67 | |
50 | 68 | <!-- ---------------------------------------------------------------------- --> |
... | ... | |
52 | 70 | |
53 | 71 | <SUBSECTION title="Install test scripts"> |
54 | 72 | |
55 | | @@@ |
| 73 | The test scripts are in the directory <SAMP>prod/</SAMP> of the |
| 74 | <B>ben-wpan</B> project. They currently are designed to be run from |
| 75 | this directory. Therefore, all that's necessary is to check out the |
| 76 | repository, as shown above. |
56 | 77 | |
57 | 78 | |
58 | 79 | <!-- ---------------------------------------------------------------------- --> |
... | ... | |
131 | 152 | |
132 | 153 | <SUBSECTION title="Install ben-wpan tools"> |
133 | 154 | |
134 | | @@@ |
| 155 | To build and install the <B>ben-wpan</B> tools on the Ben, first set |
| 156 | up networking between the PC and the Ben. If you have not yet checked |
| 157 | out the project's repository, run these commands: |
| 158 | |
| 159 | <PRE> |
| 160 | git clone git://projects.qi-hardware.com/ben-wpan.git |
| 161 | git clone git://projects.qi-hardware.com/f32xbase.git |
| 162 | cd ben-wpan/tools |
| 163 | </PRE> |
| 164 | |
| 165 | If you have already checked out the repository, <B>cd</B> to |
| 166 | <SAMP>ben-wpan/tools/</SAMP> and run |
| 167 | |
| 168 | <PRE> |
| 169 | make clean |
| 170 | </PRE> |
| 171 | |
| 172 | Next, if on OpenWrt, compile the tools with |
| 173 | <PRE> |
| 174 | make TARGET=ben_openwrt |
| 175 | </PRE> |
| 176 | |
| 177 | If on Jlime, use |
| 178 | <PRE> |
| 179 | make TARGET=ben_jlime |
| 180 | </PRE> |
| 181 | |
| 182 | Finally, upload the tools to the Ben and install them under |
| 183 | <SAMP>/usr/bin/</SAMP> with |
| 184 | |
| 185 | <PRE> |
| 186 | make HOST=ben install |
| 187 | </PRE> |
| 188 | |
| 189 | Where <B>ben</B> is the host name or IP address assigned to the Ben. |
135 | 190 | |
136 | 191 | |
137 | 192 | <!-- ---------------------------------------------------------------------- --> |