]> git.proxmox.com Git - mirror_frr.git/blame - doc/Building_FRR_for_LEDE-OpenWRT.md
Merge pull request #1690 from dslicenc/bgpd-vrf-show-cm17377
[mirror_frr.git] / doc / Building_FRR_for_LEDE-OpenWRT.md
CommitLineData
1c58ed47
LC
1Building FRR for OpenWRT/LEDE from Git Source
2===============================================
3
4- for the moment because of cross compile problems, master is not supported,
5 only upto 3.0
6- LDP can't be built because of missing Perl-XML-LibXML in OpenWRT/LEDE tree
7
8Prepare build environment
9-------------------------
10
11https://lede-project.org/docs/guide-developer/install-buildsystem
12
13for
14
15Ubuntu 12.04LTS:
16
17 sudo apt-get install build-essential subversion git-core \
18 libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc \
19 libxml-parser-perl mercurial bzr ecj cvs unzip
20
21Ubuntu 64bit:
22
23 sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev \
24 gawk gcc-multilib flex git-core gettext libssl-dev
25
26Debian 8 Jessie:
27
28 sudo apt-get install build-essential libncurses5-dev gawk git subversion \
29 libssl-dev gettext unzip zlib1g-dev file python
30
31Debian 9 Stretch:
32
33 sudo apt-get install build-essential libncurses5-dev gawk git subversion \
34 libssl-dev gettext zlib1g-dev
35
36Centos x86-64 (some packages require EPEL):
37
38 yum install subversion binutils bzip2 gcc gcc-c++ gawk gettext flex \
39 ncurses-devel zlib-devel zlib-static make patch unzip glibc glibc-devel \
40 perl-ExtUtils-MakeMaker glibc-static quilt ncurses-libs sed sdcc bison \
41 intltool sharutils wget git-core openssl-devel xz
42
43Fedora 24 - 64Bit:
44
45 dnf install -y subversion binutils bzip2 gcc gcc-c++ gawk gettext git-core \
46 unzip ncurses-devel ncurses-compat-libs zlib-devel zlib-static make \
47 flex patch perl-ExtUtils-MakeMaker perl-Thread-Queue glibc glibc-devel \
48 glibc-static quilt sed sdcc intltool sharutils bison wget openssl-devel
49
50
51Get LEDE Sources (from Git)
52---------------------------
53
54LEDE and OpenWRT is planned to remerge and won't cover the similar OpenWRT build
55As normal user:
56 git clone https://git.lede-project.org/source.git lede
57 cd lede
58 ./scripts/feeds update -a
59 ./scripts/feeds install -a
60 cd feeds/routing
61 git pull origin pull/319/head
62 ln -s ../../../feeds/routing/frr/ ../../package/feeds/routing/
63 cd ../..
64 make menuconfig
65
66Select the needed target then select needed packages in
67Network -> Routing and Redirection -> frr, exit and save
68
69 make or make package/frr/compile
70
71It may be possible that on first build `make package/frr/compile` not to work
72and it may be needed to run a `make` for the entire build envronment, add V=s
73for debugging
74
75Work with sources
76-----------------
77
78To update the rc1 version or add other options, the Makefile is found in
79feeds/routing/frr
80
81edit:
82 PKG_VERSION:=
83 PKG_SOURCE_VERSION:=<git-hash>
84
85Usage
86-----
87
88Edit `/usr/sbin/frr.init` and add/remove the daemons name in section DAEMONS=
89or don't install unneded packages
90For example: zebra bgpd ldpd isisd nhrpd ospfd ospf6d pimd ripd ripngd
91
92### Enable the serivce
93 - service frr enable
94
95### Start the service
96 - service frr start