Difference between revisions of "OpenBTS: Build OpenBTS 5.0 di RaspberryPi 32bit Debian Buster"

From OnnoWiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 30: Line 30:
 
  sudo apt update
 
  sudo apt update
 
  sudo apt -y install m4 autoconf autotools-dev automake libsqlite3-dev sqlite3 libssl-dev libssl-doc zlib1g-dev \
 
  sudo apt -y install m4 autoconf autotools-dev automake libsqlite3-dev sqlite3 libssl-dev libssl-doc zlib1g-dev \
 +
build-essential dh-apparmor dpkg-dev fakeroot g++ gettext html2text intltool-debian libalgorithm-diff-perl \
 +
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libgettextpo0 libmail-sendmail-perl \
 +
libstdc++6 libstdc++-6-dev \
 +
libsys-hostname-long-perl  dh-apparmor dpkg-dev fakeroot g++ gettext \
 +
html2text intltool-debian  intltool libxml-parser-perl python-scour libsqlite0 libsqlite0-dev \
 +
libodbc1 odbcinst odbcinst1debian2 unixodbc-dev  ntp ntpdate bind9 \
 +
iso-codes  lsb-release python  python-apt unattended-upgrades software-properties-common
 +
  
 +
Apps berikut tidak ada di debian,
  
  build-essential dh-apparmor dpkg-dev fakeroot g++ gettext html2text intltool-debian libalgorithm-diff-perl \
+
  dh-translations
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libgettextpo0 libmail-sendmail-perl libstdc++6-4.7-dev \
+
  libunistring0  
  libsys-hostname-long-perl libunistring0 dh-apparmor dpkg-dev fakeroot g++ gettext \
+
  libupstart-dev libupstart1 upstart-dconf-bridge upstart-monitor
html2text intltool-debian dh-translations intltool libxml-parser-perl python-scour libsqlite0 libsqlite0-dev \
 
  libodbc1 odbcinst odbcinst1debian2 unixodbc-dev python-software-properties ntp ntpdate bind9 upstart
 
  
 
==Update Git==
 
==Update Git==
Line 42: Line 49:
 
Pastikan menggunakan git versi terakhir
 
Pastikan menggunakan git versi terakhir
  
sudo add-apt-repository ppa:git-core/ppa
+
  sudo apt -y install git
sudo apt-get update
 
  sudo apt-get install git
 
  
 
==Download Tool==
 
==Download Tool==
Line 54: Line 59:
 
hasilnya pastikan >1.8.2, misalnya,
 
hasilnya pastikan >1.8.2, misalnya,
  
  git version 2.11.0
+
  git version 2.20.1
  
 
download tool development terbaru
 
download tool development terbaru
Line 63: Line 68:
  
 
==Download Source Code==
 
==Download Source Code==
 
Proses download [[source code]] menggunakan SSH secara automatis login. Ini hanya bisa dilakukan jika kita sudah
 
[[OpenBTS: Generating SSH Key untuk GitHub | generate SSH key untuk GitHub]].
 
Lakukan [[OpenBTS: Generating SSH Key untuk GitHub | generate SSH key untuk GitHub]] sebelum melakukan perintah di bawah ini.
 
  
 
  cd /usr/local/src/dev
 
  cd /usr/local/src/dev
Line 72: Line 73:
  
 
==Build==
 
==Build==
 +
 +
'''ERROR:''' Saat compile akan ada error
 +
 +
Package python-software-properties is not available, but is referred to by another package.
 +
 +
'''SOLUSI:''' Gunakan ubuntu di raspberypi3.
  
  

Latest revision as of 14:24, 30 June 2020

Sumber:


Persiapan Environment

  • Pastikan ada sambungan ke Internet.
  • Disable IPv6 (untuk memudahkan)
vi /etc/sysctl.conf
set
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Jalankan
sudo sysctl -p
  • set locale
sudo locale-gen id_ID.UTF-8
  • Instalasi aplikasi pendukung
sudo apt update
sudo apt -y install m4 autoconf autotools-dev automake libsqlite3-dev sqlite3 libssl-dev libssl-doc zlib1g-dev \
build-essential dh-apparmor dpkg-dev fakeroot g++ gettext html2text intltool-debian libalgorithm-diff-perl \
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libgettextpo0 libmail-sendmail-perl \
libstdc++6 libstdc++-6-dev \
libsys-hostname-long-perl  dh-apparmor dpkg-dev fakeroot g++ gettext \
html2text intltool-debian  intltool libxml-parser-perl python-scour libsqlite0 libsqlite0-dev \
libodbc1 odbcinst odbcinst1debian2 unixodbc-dev  ntp ntpdate bind9 \
iso-codes  lsb-release python  python-apt unattended-upgrades software-properties-common


Apps berikut tidak ada di debian,

dh-translations
libunistring0 
libupstart-dev libupstart1 upstart-dconf-bridge upstart-monitor

Update Git

Pastikan menggunakan git versi terakhir

sudo apt -y install git

Download Tool

Check versi git, misalnya

git --version

hasilnya pastikan >1.8.2, misalnya,

git version 2.20.1

download tool development terbaru

rm -Rf /usr/local/src/dev
cd /usr/local/src
git clone https://github.com/RangeNetworks/dev.git

Download Source Code

cd /usr/local/src/dev
./clone.sh

Build

ERROR: Saat compile akan ada error

Package python-software-properties is not available, but is referred to by another package.

SOLUSI: Gunakan ubuntu di raspberypi3.


Kita perlu memilih branch yang akan di compile menggunakan switchto.sh. Sebaiknya pilih branch MASTER terlebih dulu


./switchto.sh master
./switchto.sh 4.0
./switchto.sh 5.0

Untuk RangeNetworks RAD1 Lakukan

./build.sh SDR1


Pilihan selain SDR1 adalah,

SDR1
RAD1
USRP1
B100
B110
B200
B210
N200
N210

Packages yang berhasil di compile ada di

BUILDS/tanggal-jam-menit-detik/
BUILDS/2017-04-07--17-25-20

Install

Gunakan dpkg untuk menginstalasi package (ini akan complain depedencies):

sudo dpkg -i BUILDS/2016-02-16--09-54-03/*.deb

atau

cd /usr/local/src/dev/BUILDS/2016-02-16--09-54-03/
dpkg -i *.deb

Gunakan aptitude untuk mengatasi masalah dependencies

sudo apt-get -f install

Jika di tanya tentang overwrite file konfigurasi, anda harus menentukan. Sangat disarankan untuk overwrite semua file konfigurasi agar jalan dengan baik.

Overwrite /etc/network/interfaces akan menset menjadi sebuah IP statik yang berbeda dari yang sebelumnya.


Folder penting

Cek

/OpenBTS
/etc/OpenBTS/


Hack Sedikit

mkdir -p /usr/lib/x86_64-linux-gnu/odbc/
cp -Rf /usr/lib/i386-linux-gnu/odbc/* /usr/lib/x86_64-linux-gnu/odbc/

Running

Untuk menjalankan

cd /usr/local/sbin
./sipauthserve &
./smqueue &
asterisk &
cd /OpenBTS/
./OpenBTS &


Bisa di cek kalau jalan

ps ax

hasilnya kira-kira

2485 pts/0    Sl     0:00 ./sipauthserve
2493 pts/0    Sl     0:00 ./smqueue
2750 ?        Ssl    0:00 asterisk
2786 pts/0    Sl     0:00 ./OpenBTS
2798 pts/0    Sl     0:00 ./transceiver 1

Dan akan keluar prompt

system ready

1491560240.165161 3071260416: 
use the OpenBTSCLI utility to access CLI

1491560240.165723 3071260416: OpenBTSCLI network socket support for tcp:49300

OpenBTS> 


Harusnya bisa lebih manusiawi, entah kenapa tidak jalan,

sudo start sipauthserve
sudo start smqueue
sudo start openbts
sudo start asterisk

Untuk men-stop jalankan perintah:

sudo stop sipauthserve
sudo stop smqueue
sudo stop openbts
sudo stop asterisk

Referensi

Pranala Menarik