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