« Previous - Version 18/39 (diff) - Next » - Current version
Michael Vale, 10/19/2012 08:11 am


QuickStart

Quickstart guide to creating a ZRouter build environment.

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

This should probably be done within a Jail.

  1. Create a path set aside for ZRouter build.
    # mkdir -p ZRouter/
  2. Enter directory:
    # cd ZRouter
  3. Checkout/clone ZRouter Project
    # hg clone http://zrouter.org/hg/zrouter/
  4. Checkout/clone Current compatible FreeBSD source:
    # hg clone http://zrouter.org/hg/FreeBSD/head FreeBSD
  5. Create Makefile.local.opts and set the following environment variables:
    # ee Makefile.local.opts
     export FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head
     export OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}
    
  6. Begin ZRouter Build Menu
    # ./menu.sh

    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:
    -# make TARGET_PAIR=Board/Model FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}

mainmenu.jpg - Main menu (42.1 kB) Alexey Z., 02/28/2013 12:29 pm

Target.jpg - Target device (64.4 kB) Alexey Z., 02/28/2013 12:29 pm

kernel.jpg - Firmware size (35.6 kB) Alexey Z., 02/28/2013 12:29 pm

package.jpg - Packages (48.1 kB) Alexey Z., 02/28/2013 12:29 pm

path.jpg - Paths (27 kB) Alexey Z., 02/28/2013 12:29 pm

Path_head.jpg - Source (22.5 kB) Alexey Z., 02/28/2013 12:34 pm

path_obj.jpg - Objects (20.3 kB) Alexey Z., 02/28/2013 12:34 pm

path_back.jpg - Back to main menu (28.2 kB) Alexey Z., 02/28/2013 12:34 pm

save_menu.jpg - Save Build Profile (44.5 kB) Alexey Z., 02/28/2013 12:43 pm

save.jpg - Enter Build Profile Name (18.9 kB) Alexey Z., 02/28/2013 12:43 pm

load_menu.jpg - Load Build Profile (41.6 kB) Alexey Z., 02/28/2013 12:45 pm

load.jpg - Select Build Profile (25.6 kB) Alexey Z., 02/28/2013 12:45 pm

Compilate.jpg - Last choice (33.2 kB) Alexey Z., 02/28/2013 12:53 pm