| 1 |
|
| 2 |
################################### |
| 3 |
B.A.T.M.A.N. Installation and Usage |
| 4 |
################################### |
| 5 |
|
| 6 |
Compiling from source |
| 7 |
===================== |
| 8 |
|
| 9 |
Pre-requirements |
| 10 |
--------------- |
| 11 |
|
| 12 |
You need the usual compile environment and the libpthread-library |
| 13 |
and the kernel module "tun". Both should already be installed on |
| 14 |
your machine, if you use a PC with Linux. On embedded devices |
| 15 |
both may not be installed in order to save space. GNU Make is needed |
| 16 |
for compilation. |
| 17 |
|
| 18 |
The ports to *BSD and Mac OS operating systems are currently not |
| 19 |
available. If you're interested in porting and maintaining B.A.T.M.A.N. |
| 20 |
for these systems, please contact us. We would appreciate your help. |
| 21 |
|
| 22 |
Tweaking |
| 23 |
-------- |
| 24 |
|
| 25 |
You can tweak the program requirements by editing the Makefile. |
| 26 |
|
| 27 |
|
| 28 |
Getting rid of the policy-routing requirement in the Linux kernel: |
| 29 |
|
| 30 |
By default batmand requires policy-routing to be enabled in the Linux |
| 31 |
kernel. On many embedded devices this can be an obstacle if you want to get batmand |
| 32 |
running, because it requires to install a different kernel. |
| 33 |
|
| 34 |
Remove the comment hash (#) leading this line in the Makefile: |
| 35 |
#NO_POLICY_ROUTING = -DNO_POLICY_ROUTING |
| 36 |
|
| 37 |
Compiling |
| 38 |
--------- |
| 39 |
|
| 40 |
You don't necessarily need to compile. May be your distribution or our |
| 41 |
download store offers precompiled packages. Check |
| 42 |
https://www.open-mesh.org/projects/open-mesh/wiki/Download to get an overview. |
| 43 |
|
| 44 |
Download and compile the latest stable sources from the download section |
| 45 |
https://www.open-mesh.org/projects/open-mesh/wiki/Download by executing eg.: |
| 46 |
|
| 47 |
$ wget https://downloads.open-mesh.org/batman/stable/sources/batmand/batmand-0.3.2.tar.gz |
| 48 |
$ tar xzvf batmand-0.3.2.tar.gz |
| 49 |
$ cd batman-0.3.2 |
| 50 |
$ make |
| 51 |
|
| 52 |
After the compilation process is finished you'll find a executable |
| 53 |
file called 'batmand'. This executable is quite big because it is |
| 54 |
not stripped. Don't strip it if you want to help us finding a bug |
| 55 |
in the daemon. Strip it by executing: |
| 56 |
|
| 57 |
$ strip batmand |
| 58 |
|
| 59 |
Install by executing (as root): |
| 60 |
|
| 61 |
$ make install |
| 62 |
|
| 63 |
Or start it right from the directory where you compiled it by |
| 64 |
issuing: |
| 65 |
|
| 66 |
./batmand |
| 67 |
|
| 68 |
See the README file for "getting started" instructions or consult the |
| 69 |
manpage to get an overview about the command line options. |
| 70 |
|