]>
Commit | Line | Data |
---|---|---|
d1890d04 QY |
1 | OpenWRT/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 | |
9 | Prepare build environment | |
10 | ------------------------- | |
11 | ||
12 | https://lede-project.org/docs/guide-developer/install-buildsystem | |
13 | ||
14 | for | |
15 | ||
16 | Ubuntu 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 | |
24 | Ubuntu 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 | |
31 | Debian 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 | |
38 | Debian 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 | |
45 | Centos 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 | |
54 | Fedora 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 |
64 | Get LEDE Sources (from Git) |
65 | --------------------------- | |
66 | ||
d1890d04 QY |
67 | LEDE and OpenWRT is planned to remerge and won't cover the similar |
68 | OpenWRT build As normal user: git clone | |
69 | https://git.lede-project.org/source.git lede cd lede ./scripts/feeds | |
70 | update -a ./scripts/feeds install -a cd feeds/routing git pull origin | |
71 | pull/319/head ln -s ../../../feeds/routing/frr/ | |
72 | ../../package/feeds/routing/ cd ../.. make menuconfig | |
73 | ||
74 | Select the needed target then select needed packages in Network -> | |
75 | Routing and Redirection -> frr, exit and save | |
76 | ||
77 | :: | |
1c58ed47 LC |
78 | |
79 | make or make package/frr/compile | |
80 | ||
d1890d04 QY |
81 | It may be possible that on first build ``make package/frr/compile`` not |
82 | to work and it may be needed to run a ``make`` for the entire build | |
83 | envronment, add V=s for debugging | |
1c58ed47 LC |
84 | |
85 | Work with sources | |
86 | ----------------- | |
87 | ||
88 | To update the rc1 version or add other options, the Makefile is found in | |
89 | feeds/routing/frr | |
90 | ||
d1890d04 | 91 | edit: PKG\_VERSION:= PKG\_SOURCE\_VERSION:= |
1c58ed47 LC |
92 | |
93 | Usage | |
94 | ----- | |
95 | ||
d1890d04 QY |
96 | Edit ``/usr/sbin/frr.init`` and add/remove the daemons name in section |
97 | DAEMONS= or don't install unneded packages For example: zebra bgpd ldpd | |
98 | isisd nhrpd ospfd ospf6d pimd ripd ripngd | |
99 | ||
100 | Enable the serivce | |
75ca3b11 | 101 | ^^^^^^^^^^^^^^^^^^ |
d1890d04 QY |
102 | |
103 | - service frr enable | |
1c58ed47 | 104 | |
d1890d04 | 105 | Start the service |
75ca3b11 | 106 | ^^^^^^^^^^^^^^^^^ |
1c58ed47 | 107 | |
d1890d04 | 108 | - service frr start |