X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Finstallation-guide.rst;h=7de60d3c2cbb007c3deb74db9a4eeb2216b4ccdb;hb=refs%2Fchanges%2F56%2F6056%2F4;hp=0ab305e725607f713dd8be59fee66d6aaa93f622;hpb=0381f5c0027b27b357afa0c02f157fc1de85f2a8;p=o-du%2Fl2.git diff --git a/docs/installation-guide.rst b/docs/installation-guide.rst index 0ab305e72..7de60d3c2 100644 --- a/docs/installation-guide.rst +++ b/docs/installation-guide.rst @@ -24,6 +24,9 @@ Version history | **Date** | **Ver.** | **Author** | **Comment** | | | | | | +--------------------+--------------------+--------------------+--------------------+ +| 2020-12-04 | 1.0.1 | HCL Technologies | Cherry Release | +| | | Ltd. | | ++--------------------+--------------------+--------------------+--------------------+ | 2020-12-04 | 1.0 | Radisys | Cherry Release | | | | | | +--------------------+--------------------+--------------------+--------------------+ @@ -94,6 +97,8 @@ Following libraries are required to compile and execute O-DU High: - Ubuntu : sudo apt-get install -y libpcap-dev - CentOS : sudo yum install -y libpcap-devel + + Cloning code -------------- @@ -103,6 +108,62 @@ Cloning code git clone "https://gerrit.o-ran-sc.org/r/o-du/l2" + +Setting up Netconf server +------------------------- + + Following steps are required to compile ODU with O1 interface enabled: + +- Install Netconf libraries: + + libssh, libyang, libnetconf2, sysrepo, netopeer2 + + Script is provided in the following folder to install these libraries + + - Ubuntu : + + | cd /l2/build/scripts + | sudo ./install_lib.sh -c + +- Start Netopeer2-server: + + - Ubuntu : + | cd /l2/build/scripts + | sudo ./netopeer-server.sh start + +- Create a new netconf user + + Switch to root user and run following commands + + - Ubuntu : + + | adduser --system netconf && \\ + | echo "netconf:netconf" | chpasswd + + | mkdir -p /home/netconf/.ssh && \\ + | ssh-keygen -A && \\ + | ssh-keygen -t dsa -P '' -f /home/netconf/.ssh/id_dsa && \\ + | cat /home/netconf/.ssh/id_dsa.pub > /home/netconf/.ssh/authorized_keys + +- Install the YANG modules + + - Ubuntu : + + | cd /l2/build/yang + | sysrepoctl -i ./yang/o-ran-sc-odu-alarm-v1.yang + | sysrepoctl -i ./yang/o-ran-sc-odu-interface-v1.yang + +- Configure the startup IP and Port configurations for DU, CU and RIC + + - Ubuntu : + + | cd /l2/build/config + | + | Open the startup_config.xml and edit the desired IP and Port for CU, DU and RIC. + | Then load the configuration in the sysrepo running datastore using the command below + | + | sysrepocfg --import=startup_config.xml --datastore running --module o-ran-sc-odu-interface-v1 + Compilation ------------ @@ -115,10 +176,12 @@ Compilation - Clean O-DU High binary make clean_odu MACHINE=BIT64 MODE=FDD + - - Build O-DU High binary + - Compile O-DU High binary make odu MACHINE=BIT64 MODE=FDD + - Build CU Stub : @@ -130,7 +193,7 @@ Compilation make clean_cu NODE=TEST_STUB MACHINE=BIT64 MODE=FDD - - Build CU Stub binary + - Compile CU Stub binary make cu_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD @@ -144,11 +207,60 @@ Compilation make clean_ric NODE=TEST_STUB MACHINE=BIT64 MODE=FDD - - Build RIC Stub binary + - Compile RIC Stub binary make ric_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD +Compilation with O1 interface enabled +-------------------------------------- + +- Build O-DU High: + + - Navigate to Build folder + + cd /l2/build/odu + + - Clean O-DU High binary + + make clean_odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + + + - Compile O-DU High binary + + make odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + + +- Build CU Stub : + + - Navigate to Build folder + + cd /l2/build/odu + + - Clean CU Stub binary + + make clean_cu NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + + - Compile CU Stub binary + + make cu_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + +- Build RIC Stub : + + - Navigate to Build folder + + cd /l2/build/odu + + - Clean RIC Stub binary + + make clean_ric NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + + - Compile RIC Stub binary + + make ric_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + + + The above generated images can be found at: - O-DU High - /l2/bin/odu @@ -156,3 +268,4 @@ The above generated images can be found at: - CU Stub - /l2/bin/cu_stub - RIC Stub - /l2/bin/ric_stub +