4 Prepare build environment
5 -------------------------
7 For Debian based distributions, run:
11 sudo apt-get install git build-essential libssl-dev libncurses5-dev \
12 unzip zlib1g-dev subversion mercurial
14 For other environments, instructions can be found in the
15 `official documentation
16 <https://wiki.openwrt.org/doc/howto/buildroot.exigence#examples_of_package_installations>`_.
19 Get OpenWRT Sources (from Git)
20 ------------------------------
23 The OpenWRT build will fail if you run it as root. So take care to run it as a nonprivileged user.
25 Clone the OpenWRT sources and retrieve the package feeds
29 git clone https://github.com/openwrt/openwrt.git
31 ./scripts/feeds update -a
32 ./scripts/feeds install -a
34 git fetch origin pull/319/head
35 git read-tree --prefix=frr/ -u FETCH_HEAD:frr
36 cd ../../package/feeds/routing/
37 ln -sv ../../../feeds/routing/frr .
40 Configure OpenWRT for your target and select the needed FRR packages in Network -> Routing and Redirection -> frr,
47 Then, to compile either a complete OpenWRT image, or the FRR packages, run:
51 make or make package/frr/compile
53 It may be possible that on first build ``make package/frr/compile`` not
54 to work and it may be needed to run a ``make`` for the entire build
55 environment. Add ``V=s`` to get more debugging output.
60 To update to a newer version, or change other options, you need to edit the ``feeds/routing/frr/Makefile``.
65 Edit ``/usr/sbin/frr.init`` and add/remove the daemons name in section
66 ``DAEMONS=`` or don't install unneeded packages For example: zebra bgpd ldpd
67 isisd nhrpd ospfd ospf6d pimd ripd ripngd
72 - ``service frr enable``
77 - ``service frr start``