]>
Commit | Line | Data |
---|---|---|
1c58ed47 LC |
1 | Building 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 | ||
8 | Prepare build environment | |
9 | ------------------------- | |
10 | ||
11 | https://lede-project.org/docs/guide-developer/install-buildsystem | |
12 | ||
13 | for | |
14 | ||
15 | Ubuntu 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 | ||
21 | Ubuntu 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 | ||
26 | Debian 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 | ||
31 | Debian 9 Stretch: | |
32 | ||
33 | sudo apt-get install build-essential libncurses5-dev gawk git subversion \ | |
34 | libssl-dev gettext zlib1g-dev | |
35 | ||
36 | Centos 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 | ||
43 | Fedora 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 | ||
51 | Get LEDE Sources (from Git) | |
52 | --------------------------- | |
53 | ||
54 | LEDE and OpenWRT is planned to remerge and won't cover the similar OpenWRT build | |
55 | As 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 | ||
66 | Select the needed target then select needed packages in | |
67 | Network -> Routing and Redirection -> frr, exit and save | |
68 | ||
69 | make or make package/frr/compile | |
70 | ||
71 | It may be possible that on first build `make package/frr/compile` not to work | |
72 | and it may be needed to run a `make` for the entire build envronment, add V=s | |
73 | for debugging | |
74 | ||
75 | Work with sources | |
76 | ----------------- | |
77 | ||
78 | To update the rc1 version or add other options, the Makefile is found in | |
79 | feeds/routing/frr | |
80 | ||
81 | edit: | |
82 | PKG_VERSION:= | |
83 | PKG_SOURCE_VERSION:=<git-hash> | |
84 | ||
85 | Usage | |
86 | ----- | |
87 | ||
88 | Edit `/usr/sbin/frr.init` and add/remove the daemons name in section DAEMONS= | |
89 | or don't install unneded packages | |
90 | For 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 |