Howto build » History » Version 5
Eric Krausser, 01/11/2012 01:29 AM
what to "make"
1 | 1 | Eric Krausser | h1. Howto build |
---|---|---|---|
2 | 1 | Eric Krausser | |
3 | 1 | Eric Krausser | h2. Fetch sources |
4 | 1 | Eric Krausser | |
5 | 4 | Eric Krausser | Check out the ZRouter source code with Mercurial hg or by fetching "the latest ZRouter sources":http://zrouter.org/hg/zrouter/archive/tip.tar.bz2 ("as zip":http://zrouter.org/hg/zrouter/archive/tip.zip) |
6 | 1 | Eric Krausser | |
7 | 1 | Eric Krausser | For this tutorial we expect you check out / unpack the sources to @/projects/ZRouter/zrouter@. |
8 | 1 | Eric Krausser | |
9 | 1 | Eric Krausser | For now you also need our patched FreeBSD sources. We work on getting this patches back to official FreeBSD-HEAD, so one day this step will be obsolete. |
10 | 1 | Eric Krausser | |
11 | 3 | Eric Krausser | Get it via Mercurial or by fetching "ZRouter's patched FreeBSD sources":http://archive.zrouter.org/nightly/FreeBSD-zrouter-head-latest.tgz |
12 | 5 | Eric Krausser | |
13 | 5 | Eric Krausser | For this tutorial we expect you check out / unpack the modified FreeBSD sources to @/projects/ZRouter/FreeBSD@. |
14 | 5 | Eric Krausser | |
15 | 5 | Eric Krausser | h2. Build |
16 | 5 | Eric Krausser | |
17 | 5 | Eric Krausser | For this tutorial we expect you want to build a firmware for a device from vendor D-Link, the model is DIR-320 (see [[Supported devices]]). |
18 | 5 | Eric Krausser | |
19 | 5 | Eric Krausser | As root do: |
20 | 5 | Eric Krausser | <pre> |
21 | 5 | Eric Krausser | cd /projects/ZRouter/zrouter |
22 | 5 | Eric Krausser | make FREEBSD_SRC_TREE=/projects/ZRouter/FreeBSD/head TARGET_PAIR=D-Link/DIR-320 |
23 | 5 | Eric Krausser | </pre> |