X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Finstallation-guide.rst;h=e8c005b0aff9a0cff543b820d18c5929f8aa9e58;hb=8748e788a43465b180c15d31908c276504dad6d4;hp=5a4ea45c5845937a45eefe7322be643a2af54659;hpb=ce136a8facf53778e327bead92b0cfe91b566571;p=o-du%2Fl2.git diff --git a/docs/installation-guide.rst b/docs/installation-guide.rst index 5a4ea45c5..e8c005b0a 100644 --- a/docs/installation-guide.rst +++ b/docs/installation-guide.rst @@ -97,29 +97,99 @@ 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 -Following libraries are required to compile and execute O1 module: + + +Cloning code +-------------- + +- Create a folder to clone the O-DU High code into. The folder is hereafter referred to as . + +- Clone code into + + git clone "https://gerrit.o-ran-sc.org/r/o-du/l2" + + +Setting up Netconf server +------------------------- -- Netconf: + 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/o1 - | sudo ./install_lib.sh + | cd /l2/build/scripts + | sudo ./install_lib_O1.sh -c +- Start Netopeer2-server: + + - Ubuntu : + | cd /l2/build/scripts + | sudo ./netopeer-server.sh start -Cloning code --------------- +- Create a new netconf user + + Switch to root user and run following commands + + - Ubuntu : + + | adduser --system netconf && \\ + | echo "netconf:netconf!" | chpasswd -- Create a folder to clone the O-DU High code into. The folder is hereafter referred to as . + | 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 -- Clone code into +- 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 + | sysrepoctl -i ./yang/o-ran-sc-du-hello-world.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 + +- Configure the netconf server details for VES PNF Event + + - Ubuntu : + + | cd /l2/build/config + | + | Open the netconfConfig.json and edit the desired MAC address, IP, Port, Username and Password for VES PNF Registration. + +- Configure the VES server details to send VES Events + + - Ubuntu : + + | cd /l2/build/config + | + | Open the vesConfig.json and edit the desired IP, Port, Username and Password to send VES Event. + +- Configure the nacm module to provide access to new user - git clone "https://gerrit.o-ran-sc.org/r/o-du/l2" && (cd "l2" && mkdir -p .git/hooks && curl -Lo `git rev-parse - --git-dir`/hooks/commit-msg https://gerrit.o-ran-sc.org/r/tools/hooks/commit-msg; chmod +x `git rev-parse - --git-dir`/hooks/commit-msg) + - Ubuntu : + + | cd /l2/build/config + | + | Open the nacm_config.xml and edit the desired user-name to provide the access to that user. + | + | $sysrepocfg --import=nacm_config.xml --datastore running --module ietf-netconf-acm Compilation @@ -136,13 +206,10 @@ Compilation make clean_odu MACHINE=BIT64 MODE=FDD - - Build O-DU High binary + - Compile O-DU High binary make odu MACHINE=BIT64 MODE=FDD - To build with O1 interface enabled: - - make odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES - Build CU Stub : @@ -154,7 +221,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 @@ -168,35 +235,57 @@ 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 -- Build O-DU High with O1 interface enabled: - - Navigate to o1 Build folder +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/o1 + cd /l2/build/odu - - Clean O1 binary + - Clean CU Stub binary - make clean_o1 MACHINE=BIT64 + make clean_cu NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES - - Build O1 binary + - Compile CU Stub binary - make o1 MACHINE=BIT64 + make cu_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES - - Navigate to odu Build folder +- Build RIC Stub : + - Navigate to Build folder + cd /l2/build/odu - - Clean O-DU High binary + - Clean RIC Stub binary + + make clean_ric NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES - make clean_odu MACHINE=BIT64 MODE=FDD - - - Build O-DU High binary + - Compile RIC Stub binary - make odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES + make ric_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES @@ -208,4 +297,3 @@ The above generated images can be found at: - RIC Stub - /l2/bin/ric_stub -- O1 - /l2/build/o1/bin/o1