Project

General

Profile

QuickStart » History » Version 18

Version 17 (Michael Vale, 10/19/2012 03:39 AM) → Version 18/40 (Michael Vale, 10/19/2012 08:11 AM)

h1. QuickStart

h2. Quickstart guide to creating a ZRouter build environment.

h3. This Requires you have [[hg]]/mercurial installed (pkg install mercurial).

This should probably be done within a Jail.

# Create a path set aside for ZRouter build.
<pre># mkdir -p ZRouter/</pre>
# Enter directory:
<pre># cd ZRouter</pre>
# Checkout/clone ZRouter Project
<pre># hg clone http://zrouter.org/hg/zrouter/</pre>
# Checkout/clone Current compatible FreeBSD source:
<pre># hg clone http://zrouter.org/hg/FreeBSD/head FreeBSD</pre>
# Create Makefile.local.opts and set the following environment variables:
<pre># ee Makefile.local.opts
export FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head
export OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}
</pre>
-# make TARGET_PAIR=D-Link/DSR-500-
# Begin ZRouter Build Menu
<pre># ./menu.sh</pre>
Or alternatively run make from the command-line, where Brand is Board brand from zrouter/boards and model is the model from zrouter/boards/brand/model:
<pre>-# make TARGET_PAIR=Board/Model FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}</pre>