Difference between revisions of "OpenAirInterface: Compile"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
Rekomendasi OS : Ubuntu 14.04 atau 16.04 Ubuntu 18.04
+
Rekomendasi OS : Ubuntu 18.04
 +
 
 +
 
 +
Install USRP drivers
 +
Jika belum ada UHD, kita perlu menginstall UHD dari source:
 +
 
 +
sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-mako doxygen python-docutils python-requests
 +
python3-pip cmake build-essential
 +
pip3 install mako numpy
 +
git clone git://github.com/EttusResearch/uhd.git
 +
cd uhd; mkdir host/build; cd host/build
 +
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
 +
make -j4
 +
sudo make install
 +
sudo ldconfig
 +
sudo /usr/lib/uhd/utils/uhd_images_downloader.py
  
 
Instalasi software git
 
Instalasi software git
 +
 
  sudo apt-get update
 
  sudo apt-get update
 
  sudo apt-get install subversion git -y
 
  sudo apt-get install subversion git -y
Line 8: Line 24:
  
 
*Khusus untuk ubuntu 14.04
 
*Khusus untuk ubuntu 14.04
 +
 
  echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
 
  echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
 
  git config --global http.sslverify false
 
  git config --global http.sslverify false
  
 
Unduh source code OpenAirInterface dari github
 
Unduh source code OpenAirInterface dari github
 +
 
  cd /usr/local/src/
 
  cd /usr/local/src/
 
  git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
 
  git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
  
 
Proses build OpenAirInterface
 
Proses build OpenAirInterface
 +
 
  cd openairinterface5g/
 
  cd openairinterface5g/
 
  source oaienv
 
  source oaienv
 
  cd cmake_targets/
 
  cd cmake_targets/
 
  ./build_oai -I -w USRP --eNB --UE
 
  ./build_oai -I -w USRP --eNB --UE

Revision as of 09:34, 21 December 2022

Rekomendasi OS : Ubuntu 18.04


Install USRP drivers Jika belum ada UHD, kita perlu menginstall UHD dari source:

sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-mako doxygen python-docutils python-requests 
python3-pip cmake build-essential
pip3 install mako numpy
git clone git://github.com/EttusResearch/uhd.git
cd uhd; mkdir host/build; cd host/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install
sudo ldconfig
sudo /usr/lib/uhd/utils/uhd_images_downloader.py

Instalasi software git

sudo apt-get update
sudo apt-get install subversion git -y
git config --global user.name "nama"
git config --global user.email "email"
  • Khusus untuk ubuntu 14.04
echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
git config --global http.sslverify false

Unduh source code OpenAirInterface dari github

cd /usr/local/src/
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git

Proses build OpenAirInterface

cd openairinterface5g/
source oaienv
cd cmake_targets/
./build_oai -I -w USRP --eNB --UE