OpenAirInterface-CN: Install: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Download and patch EPC
Sumber: https://open-cells.com/index.php/2019/09/22/all-in-one-openairinterface/
 
 
==Download modifikasi open-cells==
 
Download dan ekstrak data-nya,
 
cd ~
wget https://open-cells.com/opencells-mods-20190923.tgz
tar xf opencells-mods-20190923.tgz
 
==Download dan patch EPC==
 
Clone OAI EPC:
Clone OAI EPC:


Line 7: Line 19:
  git checkout develop
  git checkout develop


We tested with commit: 724542d0b59797b010af8c5df15af7f669c1e838
Kita akan men-test dengan commit: 724542d0b59797b010af8c5df15af7f669c1e838
 
Eurecom gitlab sekarang membutuhkan login, jika kita tidak memilikinya, salinan repositori git ada di:


The Eurecom gitlab require now a login, if you don’t have one, a copy of the git repository is in:openair-cn extract the tar with
openair-cn
 
ekstrak tar dengan


  tar xf openair-cn.tgz
  tar xf openair-cn.tgz
Line 15: Line 31:
  git checkout develop
  git checkout develop


This is the last commit for OAI EPC on this development tree. Active OpenAir EPC is now another project on github. We use here this legacy EPC because the installation is quite easy (the new project uses Cassandra, al LOT of virtual machines, OpenVswitch and complex dependancies).
Ini adalah komitmen terakhir untuk OAI EPC pada development tree ini. Active OpenAir EPC sekarang menjadi proyek lain di github. Di sini kita menggunakan EPC lawas ini karena pemasangannya cukup mudah (proyek baru menggunakan Cassandra, BANYAK mesin virtual, OpenVswitch, dan ketergantungan yang lebih kompleks).


Apply the patch:
Apply patch:


git apply ~/opencells-mods/EPC.patch
git apply ~/opencells-mods/EPC.patch
The new version of the source files are also in the tar, if you want to merge with another version of OpenAir EPC


What is in the patch file:
Versi baru source file juga ada di tar, jika kita ingin menggabungkan dengan versi lain dari OpenAir EPC
 
Apa yang ada di patch file adalah:
 
* Tambahkan Ubuntu 18.04 untuk kompilasi dan perbaiki beberapa bug
* Hapus link antara  host name Linux dan konfigurasi protokol diameter LTE
* Tambahkan penggunaan alamat input untuk soket input SGW
* memodifikasi interface S6a freediameter untuk memperbaiki parameter OAI yang salah
* Tidak diperlukan tambalan modul kernel: kernel generik Ubuntu 18.04 berfungsi baik dengan OAI
pisahkan instalasi kompiler ASN.1 agar kompatibel dengan komponen OpenAir lainnya pada mesin yang sama (versi ans1c berbeda untuk eNB dan gNB)
 
==Install third party SW untuk EPC==


Add Ubuntu 18.04 for compilation and fix some bugs
Remove link between Linux host name and LTE diameter protocol configuration
Add usage of the input address for the SGW input socket
modify the freediameter S6a interface to fix a wrong OAI parameter
No kernel module patch is required: generic Ubuntu kernel 18.04 works fine with OAI
separate ASN.1 compiler installation to be compatible with other OpenAir components on the same machine (ans1c version is different for eNB and gNB)
Install third party SW for EPC
  cd openair-cn; source oaienv; cd scripts
  cd openair-cn; source oaienv; cd scripts
  ./build_hss -i
  ./build_hss -i
Answer yes to install: freeDiameter 1.2.0
 
phpmyadmin:
* Jawab yes untuk install: freeDiameter 1.2.0
We don’t use phpmyadmin later in this procedure to update the MySQL database
* phpmyadmin:
We removed the installation of phpmyadmin (of course you can use it if you prefer)
** Kita tidak menggunakan phpmyadmin nanti dalam prosedur ini untuk memperbarui database MySQL
For ubuntu 18.04, we set back the legacy mysql security level
** Kita menghapus instalasi phpmyadmin (tentu saja kita dapat menggunakannya jika kita mau)
 
Untuk ubuntu 18.04, kami mengatur kembali tingkat keamanan mysql


  sudo mysql -u root << END
  sudo mysql -u root << END
Line 46: Line 67:


  sudo systemctl restart mysql.service
  sudo systemctl restart mysql.service
sudo mysql_secure_installation
Perintah terakhir akan menanyakan beberapa pertanyaan:


  sudo mysql_secure_installation
  password: set your password (linux is set in our default config files)
The last command will ask a few questions:
VALIDATE PASSWORD PLUGIN: no
Remove anonymous users: yes
Disallow root login remotely: yes
Remove test database and access to it: yes
Reload privilege tables now: yes


password: set your password (linux is set in our default config files)
VALIDATE PASSWORD PLUGIN: no
Remove anonymous users: yes
Disallow root login remotely: yes
Remove test database and access to it: yes
Reload privilege tables now: yes
Install 3PP SW for mme and spgw
Install 3PP SW for mme and spgw
  ./build_mme -i
  ./build_mme -i
Do you want to install freeDiameter 1.2.0: no
 
Do you want to install asn1c rev 1516 patched? <y/N>: yes
Do you want to install freeDiameter 1.2.0: no
Do you want to install libgtpnl ? <y/N>: yes
Do you want to install asn1c rev 1516 patched? <y/N>: yes
wireshark permissions: as you prefer
Do you want to install libgtpnl ? <y/N>: yes
wireshark permissions: as you prefer
 
  ./build_spgw -i
  ./build_spgw -i
Do you want to install libgtpnl ? <y/N>: no
 
Compile the EPC nodes
Do you want to install libgtpnl ? <y/N>: no
No difficulty found in this phase.
 
==Compile EPC node==
 
Tidak ada kesulitan yang ditemukan pada fase ini.


  cd openair-cn; source oaienv; cd scripts
  cd openair-cn; source oaienv; cd scripts
  ./build_hss
  ./build_hss
  ./build_mme
  ./build_mme
./build_spgw
./build_spgw
If you face compilation issues, the log files are in openair-cn/build/log
 
Jika kita menghadapi masalah kompilasi, file log ada di openair-cn/build/log
 
Di file tersebut, cari "error:" string.
 
 
 
==Referensi==
 
* https://open-cells.com/index.php/2019/09/22/all-in-one-openairinterface/
 
 
==Pranala Menarik==


In there files, look for “error:” string.
* [[5G]]

Latest revision as of 02:51, 21 December 2022

Sumber: https://open-cells.com/index.php/2019/09/22/all-in-one-openairinterface/


Download modifikasi open-cells

Download dan ekstrak data-nya,

cd ~
wget https://open-cells.com/opencells-mods-20190923.tgz
tar xf opencells-mods-20190923.tgz

Download dan patch EPC

Clone OAI EPC:

# maybe go back to home directory (leave openairinterface5g directory)
git clone https://gitlab.eurecom.fr/oai/openair-cn.git
cd openair-cn
git checkout develop

Kita akan men-test dengan commit: 724542d0b59797b010af8c5df15af7f669c1e838

Eurecom gitlab sekarang membutuhkan login, jika kita tidak memilikinya, salinan repositori git ada di:

openair-cn

ekstrak tar dengan

tar xf openair-cn.tgz
cd openair-cn
git checkout develop

Ini adalah komitmen terakhir untuk OAI EPC pada development tree ini. Active OpenAir EPC sekarang menjadi proyek lain di github. Di sini kita menggunakan EPC lawas ini karena pemasangannya cukup mudah (proyek baru menggunakan Cassandra, BANYAK mesin virtual, OpenVswitch, dan ketergantungan yang lebih kompleks).

Apply patch:

git apply ~/opencells-mods/EPC.patch

Versi baru source file juga ada di tar, jika kita ingin menggabungkan dengan versi lain dari OpenAir EPC

Apa yang ada di patch file adalah:

  • Tambahkan Ubuntu 18.04 untuk kompilasi dan perbaiki beberapa bug
  • Hapus link antara host name Linux dan konfigurasi protokol diameter LTE
  • Tambahkan penggunaan alamat input untuk soket input SGW
  • memodifikasi interface S6a freediameter untuk memperbaiki parameter OAI yang salah
  • Tidak diperlukan tambalan modul kernel: kernel generik Ubuntu 18.04 berfungsi baik dengan OAI

pisahkan instalasi kompiler ASN.1 agar kompatibel dengan komponen OpenAir lainnya pada mesin yang sama (versi ans1c berbeda untuk eNB dan gNB)

Install third party SW untuk EPC

cd openair-cn; source oaienv; cd scripts
./build_hss -i
  • Jawab yes untuk install: freeDiameter 1.2.0
  • phpmyadmin:
    • Kita tidak menggunakan phpmyadmin nanti dalam prosedur ini untuk memperbarui database MySQL
    • Kita menghapus instalasi phpmyadmin (tentu saja kita dapat menggunakannya jika kita mau)

Untuk ubuntu 18.04, kami mengatur kembali tingkat keamanan mysql

sudo mysql -u root << END
USE mysql;
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
FLUSH PRIVILEGES;
END
sudo systemctl restart mysql.service
sudo mysql_secure_installation

Perintah terakhir akan menanyakan beberapa pertanyaan:

password: set your password (linux is set in our default config files)
VALIDATE PASSWORD PLUGIN: no
Remove anonymous users: yes
Disallow root login remotely: yes
Remove test database and access to it: yes
Reload privilege tables now: yes

Install 3PP SW for mme and spgw

./build_mme -i
Do you want to install freeDiameter 1.2.0: no
Do you want to install asn1c rev 1516 patched? <y/N>: yes
Do you want to install libgtpnl ? <y/N>: yes
wireshark permissions: as you prefer
./build_spgw -i
Do you want to install libgtpnl ? <y/N>: no

Compile EPC node

Tidak ada kesulitan yang ditemukan pada fase ini.

cd openair-cn; source oaienv; cd scripts
./build_hss
./build_mme
./build_spgw

Jika kita menghadapi masalah kompilasi, file log ada di openair-cn/build/log

Di file tersebut, cari "error:" string.


Referensi


Pranala Menarik