Difference between revisions of "5G: srsEPC eNB install"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
  echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
 
  echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
 
  sudo systemctl disable ondemand
 
  sudo systemctl disable ondemand
 +
 +
cek
 +
 +
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  
 
==Build==
 
==Build==
Line 40: Line 44:
 
  sudo make install
 
  sudo make install
 
  sudo ldconfig
 
  sudo ldconfig
 
OPTIONAL,
 
 
sudo ./srsran_install_configs.sh user
 
 
Akan keluar (karena bukan sebagai root)
 
 
Installing srsRAN configuration files:
 
  - Creating srsRAN config folder /home/srsran/.config/srsran
 
  - Installing ue.conf.example in /home/srsran/.config/srsran/ue.conf
 
  - Installing enb.conf.example in /home/srsran/.config/srsran/enb.conf
 
  - Installing sib.conf.example in /home/srsran/.config/srsran/sib.conf
 
  - Installing rr.conf.example in /home/srsran/.config/srsran/rr.conf
 
  - Installing rb.conf.example in /home/srsran/.config/srsran/rb.conf
 
  - Installing epc.conf.example in /home/srsran/.config/srsran/epc.conf
 
  - Installing mbms.conf.example in /home/srsran/.config/srsran/mbms.conf
 
  - Installing user_db.csv.example in /home/srsran/.config/srsran/user_db.csv
 
Done.
 
  
 
==Configure==
 
==Configure==

Latest revision as of 09:44, 16 September 2022

Untuk compile kita perlu colok Ettus B210 dengan kondisi nyala. Untuk operasional kita butuh Ettus B210 tersambung.


Set CPU Freq

sudo apt-get install cpufrequtils
echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
sudo systemctl disable ondemand

cek

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Build

sudo apt update
sudo apt -y install cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev
sudo apt -y install libuhd-dev libuhd003 uhd-host

Download & Cek Ettus B210

sudo uhd_images_downloader
sudo uhd_usrp_probe

Sebagai user biasa, jangan sebagai root. Download & compile source code

cd ~
git clone https://github.com/srsLTE/srsLTE.git
cd srsLTE
mkdir build
cd build
cmake ../
make -j8
make test -j8

Pastikan

100% tests passed, 0 tests failed out of 1541


sudo make install
sudo ldconfig

Configure

Change back to the source directory.

cd ~/srsLTE

srsEPC

cp srsepc/epc.conf.example srsepc/epc.conf
cp srsepc/user_db.csv.example srsepc/user_db.csv

srsENB

cp srsenb/enb.conf.example srsenb/enb.conf
cp srsenb/rr.conf.example srsenb/rr.conf
cp srsenb/sib.conf.example srsenb/sib.conf
cp srsenb/rb.conf.example srsenb/rb.conf


Run

Run EPC

cd ~/srsLTE/srsepc
sudo srsepc epc.conf

Open another terminal:

cd ~/srsLTE/srsenb
sudo srsenb enb.conf


Referensi

https://cyberloginit.com/2018/05/03/build-a-lte-network-with-srslte-and-program-your-own-usim-card.html

Pranala Menarik