Merge "releasing docker images"
[o-du/l2.git] / docs / installation-guide.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 .. contents::
5    :depth: 3
6    :local:
7
8 O-DU High Installation Guide
9 *****************************
10
11 Abstract
12 ========
13
14 This document describes how to install O-DU High, it's dependencies and required system resources.
15
16 .. contents::
17    :depth: 3
18    :local:
19
20 Version history
21
22
23 +--------------------+--------------------+--------------------+--------------------+
24 | **Date**           | **Ver.**           | **Author**         | **Comment**        |
25 |                    |                    |                    |                    |
26 +--------------------+--------------------+--------------------+--------------------+
27 | 2020-12-04         |  1.0.1             |  HCL Technologies  |  Cherry Release    |
28 |                    |                    |  Ltd.              |                    |
29 +--------------------+--------------------+--------------------+--------------------+
30 | 2020-12-04         |  1.0               |  Radisys           |  Cherry Release    |
31 |                    |                    |                    |                    |
32 +--------------------+--------------------+--------------------+--------------------+
33
34
35 Introduction
36 ============
37
38 This document describes the hardware and software requirements along with guidelines on how to install O-DU High.
39
40 The audience of this document is assumed to have good knowledge in RAN concepts and Linux system.
41
42
43 Preface
44 =======
45
46 O-DU High images can be built using the source code or corresponding docker images can be downloaded.
47
48
49 Hardware requirements
50 =====================
51
52 Following minimum hardware requirements must be met for installation of O-DU High
53
54 +--------------------+----------------------------------------------------+
55 | **HW Aspect**      | **Requirement**                                    |
56 |                    |                                                    |
57 +--------------------+----------------------------------------------------+
58 | **# of servers**   |  1                                                 |
59 +--------------------+----------------------------------------------------+
60 | **CPU**            |  4                                                 |
61 |                    |                                                    |
62 +--------------------+----------------------------------------------------+
63 | **RAM**            |  8G                                                |
64 |                    |                                                    |
65 +--------------------+----------------------------------------------------+
66 | **Disk**           |  500G                                              |
67 |                    |                                                    |
68 +--------------------+----------------------------------------------------+
69 | **NICs**           |  1                                                 |
70 |                    |                                                    |
71 +--------------------+----------------------------------------------------+
72
73
74 Software installation and deployment
75 ==========================================
76
77 This section describes the installation of the O-DU High on the reference hardware.
78
79 Libraries
80 ----------
81
82 Following libraries are required to compile and execute O-DU High:
83
84 - GCC 
85    - Ubuntu : sudo apt-get install -y build-essential
86    - CentOS : sudo yum groups mark install -y “Development Tools”
87
88    Ensure the version is 4.6.3 and above using
89
90    -    gcc --version
91
92 - LKSCTP
93    - Ubuntu : sudo apt-get install -y libsctp-dev
94    - CentOS : sudo yum install -y lksctp-tools-devel
95
96 - PCAP:
97    - Ubuntu : sudo apt-get install -y libpcap-dev
98    - CentOS : sudo yum install -y libpcap-devel
99
100 Following libraries are required to compile and execute O1 module:
101  
102 - Netconf:
103    libssh, libyang, libnetconf2, sysrepo, netopeer2
104
105    Script is provided in the following folder to install these libraries
106
107    - Ubuntu :  
108    
109        | cd <O-DU High Directory>/l2/build/o1
110        | sudo ./install_lib.sh
111
112
113 Cloning code
114 --------------
115
116 - Create a folder to clone the O-DU High code into. The folder is hereafter referred to as <O-DU High Directory>.
117
118 - Clone code into <O-DU High Directory> 
119
120   git clone "https://gerrit.o-ran-sc.org/r/o-du/l2"
121
122 Compilation
123 ------------
124
125 - Build O-DU High:
126
127    - Navigate to Build folder
128
129        cd <O-DU High Directory>/l2/build/odu
130
131    - Clean O-DU High binary
132
133        make clean_odu MACHINE=BIT64 MODE=FDD
134        
135
136    - Build O-DU High binary
137    
138        make odu MACHINE=BIT64 MODE=FDD
139        
140        To build with O1 interface enabled:
141
142        make odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
143
144 - Build CU Stub :
145
146    - Navigate to Build folder
147    
148        cd <O-DU High Directory>/l2/build/odu
149
150    - Clean CU Stub binary
151    
152        make clean_cu NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
153
154    - Build CU Stub binary
155    
156        make cu_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
157
158 - Build RIC Stub :
159
160    - Navigate to Build folder
161    
162        cd <O-DU High Directory>/l2/build/odu
163
164    - Clean RIC Stub binary
165    
166        make clean_ric NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
167
168    - Build RIC Stub binary
169    
170        make ric_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
171
172 - Build O-DU High with O1 interface enabled:
173
174    - Navigate to o1 Build folder
175    
176        cd <O-DU High Directory>/l2/build/o1
177
178    - Clean O1 binary
179    
180        make clean_o1 MACHINE=BIT64
181
182    - Build O1 binary
183    
184        make o1 MACHINE=BIT64
185
186    - Navigate to odu Build folder
187
188        cd <O-DU High Directory>/l2/build/odu
189
190    - Clean O-DU High binary
191
192        make clean_odu MACHINE=BIT64 MODE=FDD
193        
194    - Build O-DU High binary
195    
196        make odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
197
198
199
200 The above generated images can be found at:
201
202 - O-DU High - <O-DU High Directory>/l2/bin/odu
203
204 - CU Stub   - <O-DU High Directory>/l2/bin/cu_stub
205
206 - RIC Stub  - <O-DU High Directory>/l2/bin/ric_stub
207
208 - O1        - <O-DU High Directory>/l2/build/o1/bin/o1