Difference between revisions of "GNURadio: Ubuntu 12.04.1 Instal GNURadio 3.4.2"
Onnowpurbo (talk | contribs) (→Test) |
Onnowpurbo (talk | contribs) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 43: | Line 43: | ||
Instal untuk Ubuntu 12.04.1 | Instal untuk Ubuntu 12.04.1 | ||
− | sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev | + | sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev \ |
− | g++ automake libtool python-dev libfftw3-dev \ | + | gcc-4.7 g++ automake libtool python-dev libfftw3-dev \ |
libcppunit-dev libboost-all-dev libusb-dev fort77 \ | libcppunit-dev libboost-all-dev libusb-dev fort77 \ | ||
libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \ | libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \ | ||
Line 134: | Line 134: | ||
make | make | ||
make install | make install | ||
+ | |||
+ | Agar GNURadio 3.4.2 dapat di compile dengan baik, tampaknya kita harus turun ke versi 2.8.0. | ||
+ | |||
+ | cp sdcc-src-2.8.0.tar.bz2 /usr/local/src | ||
+ | cd /usr/local/src | ||
+ | tar jxvf sdcc-src-2.8.0.tar.bz2 | ||
+ | cd sdcc | ||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | |||
+ | Versi yang tidak bisa: versi 2.9.0 | ||
===Test=== | ===Test=== | ||
Line 144: | Line 156: | ||
SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.2.0 #8008 (Dec 23 2012) (Linux) | SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.2.0 #8008 (Dec 23 2012) (Linux) | ||
+ | |||
+ | Untuk sdcc 2.8.0 akan keluar kurang lebih | ||
+ | |||
+ | SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.8.0 #5117 (Dec 23 2012) (UNIX) | ||
==Install GNURadio== | ==Install GNURadio== | ||
Line 200: | Line 216: | ||
==Edit bashrc== | ==Edit bashrc== | ||
+ | Untuk 64bit dibutuhkan path ke /usr/local/lib64/pkgconfig/. | ||
Masukan PYTHONPATH dengan cara mengedit | Masukan PYTHONPATH dengan cara mengedit | ||
Line 208: | Line 225: | ||
PYTHONPATH=/usr/local/lib/python2.7/dist-packages | PYTHONPATH=/usr/local/lib/python2.7/dist-packages | ||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ | PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ | ||
+ | PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/ | ||
+ | |||
Untuk memastikan ada baiknya lakukan | Untuk memastikan ada baiknya lakukan | ||
Line 214: | Line 233: | ||
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages | export PYTHONPATH=/usr/local/lib/python2.7/dist-packages | ||
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ | ||
− | + | export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/ | |
==Test== | ==Test== | ||
Line 257: | Line 276: | ||
OK | OK | ||
Max USB/USRP throughput = 32MB/sec | Max USB/USRP throughput = 32MB/sec | ||
+ | |||
+ | ==Error== | ||
+ | |||
+ | '''Error:''' | ||
+ | |||
+ | make[5]: Entering directory `/usr/local/src/gnuradio-3.4.2/usrp/firmware/lib' | ||
+ | sdcc -mmcs51 --no-xinit-opt -I../../../usrp/firmware/include -c delay.c -o delay.rel | ||
+ | delay.c:27: syntax error: token -> '_naked' ; column 21 | ||
+ | |||
+ | '''Solusi:''' | ||
+ | |||
+ | Ini naga-naganya urusannya dengan versi sdcc. Entah versi yang mana yang cocok dengan GNURadio 3.4.2. | ||
==Referensi== | ==Referensi== |
Latest revision as of 09:00, 24 December 2012
Handling USRP
Khusus untuk Ubuntu 12.04 kita tidak bisa menggunakan SYSFS, ganti menjadi ATTR, juga ada beberapa perubahan lainnya Referensi: http://ubuntuforums.org/showthread.php?t=1985915 dan http://askubuntu.com/questions/147272/problem-with-executing-udev-rules-for-olimexs-avr-usb-jtag
Ubuntu menggunakan udev untuk menangani hotplug devices, dan secara default tidak memberikan akses non-root ke USRP. Script berikut akan memberikan akses bagi user untuk menghandel USRP via USB baik secara live atau hot-plug.
sudo addgroup usrp sudo usermod -G usrp -a <YOUR_USERNAME> echo 'ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="fffe", ATTR{idProduct}=="0002", GROUP="usrp", MODE="0666"' > tmpfile sudo chown root.root tmpfile sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules
Pada titik ini, Ubuntu telah di konfigurasi untuk tahu apa yang harus di kerjakan jika medeteksi USRP di USB tapi "udev" perlu me-reload rules untuk memasukan rules yang baru kita buat. Langkah berikut dapat dilakukan sehingga kita tidak perlu me-reboot komputer.
sudo udevadm control --reload-rules
atau
sudo /etc/init.d/udev stop sudo /etc/init.d/udev start
atau
sudo killall -HUP udevd
Kita dapat mencek jika USRP telah di kenali dengan mengamati /dev/bus/usb setelah USRP di pasang menggunakan perintah
ls -lR /dev/bus/usb | grep usrp
Harusnya akan keluar seperti
crw-rw---- 1 root usrp 189, 1 2010-12-09 17:38 002
Setiap USRP yang terpasang akan terdaftar pada group 'usrp' dan mode 'crw-rw----'.
Instal Library
Update
sudo apt-get update
Instal untuk Ubuntu 12.04.1
sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev \ gcc-4.7 g++ automake libtool python-dev libfftw3-dev \ libcppunit-dev libboost-all-dev libusb-dev fort77 \ libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \ libqt4-dev python-numpy ccache python-opengl libgsl0-dev \ python-cheetah python-lxml doxygen qt4-dev-tools \ libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools \ libpcre3 libpcre3-dbg libpcre3-dev libpcrecpp0 \ python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev \ autoconf libtool libosip2-dev libortp-dev \ libusb-1.0-0-dev g++ erlang bison flex \ apache2 php5 php5-xmlrpc php5-mysql php5-gd php5-cli php5-curl \ mysql-client mysql-server libphp-adodb libgd2-xpm libgd2-xpm-dev \ php5-curl php-pear
Instal SWIG
Install secara manual SWIG
Download dari http://sourceforge.net/projects/swig/files/swig/ cp swig-2.0.9.tar.gz /usr/local/src/ cd /usr/local/src/ tar zxvf swig-2.0.9.tar.gz cd /usr/local/src/swig-2.0.9/ ./configure make make install
Instal QWT
Install secara manual QWT
Download dari http://sourceforge.net/projects/qwt/files/ cp qwt-6.0.2.tar.bz2 /usr/local/src/ cd /usr/local/src/ tar jxvf qwt-6.0.2.tar.bz2 cd /usr/local/src/qwt-6.0.2/ qmake make make install
Instal SDCC
SDCC 32 bit
Untuk Ubuntu 12.04.1 terpaksa harus instalasi Binary seperti langkah di berikut. Download binary dari
cp sdcc-3.1.0-i386-unknown-linux2.5.tar.bz2 /usr/local/src/ cd /usr/local/src/ tar jxvf sdcc-3.1.0-i386-unknown-linux2.5.tar.bz2 cd /usr/local/src/sdcc cp -r * /usr/local/
SDCC versi terbaru
Jika tidak bisa juga, dan terpaksa, maka install secara manual SDCC. Download dari
- http://sourceforge.net/projects/sdcc/files/snapshot_builds/sdcc-src/
- http://sourceforge.net/projects/sdcc/files/snapshot_builds/amd64-unknown-linux2.5/sdcc-snapshot-amd64-unknown-linux2.5-20121219-8246.tar.bz2/download
- http://sourceforge.net/projects/sdcc/files/
- http://sourceforge.net/projects/sdcc/files/sdcc-linux-x86/3.2.0/
apt-get remove --purge sdcc sdcc-libraries sdcc-doc apt-get install bison flex cp sdcc-src-20121221-8260.tar.bz2 /usr/local/src cd /usr/local/src tar jxvf sdcc-src-20121221-8260.tar.bz2 cd sdcc ./configure make make install
beberapa versi source yang error saat di compile adalah: 20121219-8246, 20121221-8260
SDCC 64bit
Agar bisa di compile 64 bit. Download dari
Compile untuk sdcc 3.2.0
cp sdcc-src-3.2.0.tar.bz2 /usr/local/src cd /usr/local/src tar jxvf sdcc-src-3.2.0.tar.bz2 cd sdcc ./configure make make install
Agar GNURadio 3.4.2 dapat di compile dengan baik, tampaknya kita harus turun ke versi 2.8.0.
cp sdcc-src-2.8.0.tar.bz2 /usr/local/src cd /usr/local/src tar jxvf sdcc-src-2.8.0.tar.bz2 cd sdcc ./configure make make install
Versi yang tidak bisa: versi 2.9.0
Test
Test menggunakan perintah
/usr/local/bin/sdcc -v
Untuk sdcc 3.2.0 akan keluar kurang lebih
SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.2.0 #8008 (Dec 23 2012) (Linux)
Untuk sdcc 2.8.0 akan keluar kurang lebih
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.8.0 #5117 (Dec 23 2012) (UNIX)
Install GNURadio
Sebaiknya pada saat melakukan instalasi GNURadio, kita pasang USRP ke USB port-nya.
Download aplikasi GNURadio dari
http://gnuradio.org/redmine/attachments/download/261/gnuradio-3.4.1.tar.gz http://gnuradio.org/redmine/attachments/download/279/gnuradio-3.4.2.tar.gz
Install GNURadio
cp gnuradio-3.4.2.tar.gz /usr/local/src/ cd /usr/local/src/ tar zxvf gnuradio-3.4.2.tar.gz cd /usr/local/src/gnuradio-3.4.2/
Patch untuk 52MHz
Edit
vi /usr/local/src/gnuradio-3.4.2/usrp/host/lib/usrp_basic.cc
Ubah line 110 menjadi
// d_verbose (false), d_fpga_master_clock_freq(64000000), d_db(2) d_verbose (false), d_fpga_master_clock_freq(52000000), d_db(2)
Edit
vi /usr/local/src/gnuradio-3.4.2/usrp/host/lib/db_bitshark_rx.cc
Ubah line 151 menjadi
// set_clock_scheme(0,64000000); set_clock_scheme(0,52000000);
OpenBTS 2.6 JANGAN LUPA
- modifikasi OpenBTS.config agar TRX.Path "../Transceiver52M/transceiver".
Compile & Install
cd /usr/local/src/gnuradio-3.4.2 ./configure --disable-usrp2 --enable-usrp make clean make all make make check make install sudo ldconfig
Edit bashrc
Untuk 64bit dibutuhkan path ke /usr/local/lib64/pkgconfig/. Masukan PYTHONPATH dengan cara mengedit
vi ~/.bashrc
Tambahkan
PYTHONPATH=/usr/local/lib/python2.7/dist-packages PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/
Untuk memastikan ada baiknya lakukan
sudo ldconfig export PYTHONPATH=/usr/local/lib/python2.7/dist-packages export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/
Test
Boot komputer. Sambungan USRP. Lakukan
cd /usr/local/src/gnuradio-3.4.2/gnuradio-examples/python/usrp ./usrp_benchmark_usb.py
Hasilnya
Testing 2MB/sec... usb_throughput = 2M ntotal = 1000000 nright = 998137 runlength = 998137 delta = 1863 OK Testing 4MB/sec... usb_throughput = 4M ntotal = 2000000 nright = 1998117 runlength = 1998117 delta = 1883 OK Testing 8MB/sec... usb_throughput = 8M ntotal = 4000000 nright = 3998437 runlength = 3998437 delta = 1563 OK Testing 16MB/sec... usb_throughput = 16M ntotal = 8000000 nright = 7998859 runlength = 7998859 delta = 1141 OK Testing 32MB/sec... usb_throughput = 32M ntotal = 16000000 nright = 15996766 runlength = 15996766 delta = 3234 OK Max USB/USRP throughput = 32MB/sec
Error
Error:
make[5]: Entering directory `/usr/local/src/gnuradio-3.4.2/usrp/firmware/lib' sdcc -mmcs51 --no-xinit-opt -I../../../usrp/firmware/include -c delay.c -o delay.rel delay.c:27: syntax error: token -> '_naked' ; column 21
Solusi:
Ini naga-naganya urusannya dengan versi sdcc. Entah versi yang mana yang cocok dengan GNURadio 3.4.2.
Referensi
- http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR
- http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
- http://gnuradio.org/redmine/wiki/gnuradio/Download
- http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall
Pranala Menarik
Persiapan
- USRP: High Precision Clock
- USRP: Menyambungkan ClockTamer ke USRP1
- USRP: Kalibrasi ClockTamer
- USRP: ClockTamer Control Protocol
- USRP: Instalasi Board
- OpenBTS: GIT Source Code
- USRP: Rangkaian Board USRP
- OpenBTS: Tethr untuk Bencana Alam
- USRP: Tip Pemesanan
OpenBTS 2.6
- GNURadio
- GNURadio: Ubuntu Install
- GNURadio: Menggunakan UHD
- GNURadio: Ubuntu Install GNURadio 3.4.2 RECOMMENDED
- GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz RECOMMENDED
- GNURadio: Contoh Aplikasi
- GNURadio: Spectrum Analizer GSM
- GNURadio: Mengubah board RFX1800 menjadi RFX900
- GNURadio: Programming Untuk Pemula
- OpenBTS: Ubuntu Install RECOMMENDED
- OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz RECOMMENDED
- OpenBTS: Konfigurasi RECOMMENDED
- OpenBTS: Kalibrasi
- OpenBTS: Konfigurasi Asterisk untuk OpenBTS RECOMMENDED
- OpenBTS: Menjalankan smqueue
- OpenBTS: Mengoperasikan BTS RECOMMENDED
- OpenBTS: Tampilan di Nokia saat pakai OpenBTS
- OpenBTS: Operasi 1800 MHz
- OpenBTS: Beberapa Tips
- OpenBTS: USRP2
- OpenBTS: Amplifier
- OpenBTS: SMS
- AirProbe
OpenBTS 2.8
- GNURadio: Ubuntu 11.10 Install NOT RECOMMENED
- GNURadio: Ubuntu 11.10 instalasi menggunakan Repo NOT RECOMMENDED
- GNURadio: Download GNURadio
- GNURadio: Install UHD
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2 RECOMMENDED
- GNURadio: Ubuntu 12.04 Instal GNURadio 3.4.2 RECOMMENDED
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0 NOT RECOMMENDED
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2 NOT RECOMMENDED
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0 NOT RECOMMENDED
- GNURadio: Ubuntu 11.10 Install dari GIT GNURadio NOT RECOMMENDED
- GNURadio: Ubuntu 11.10 cek USRP Daughter Board
- GNURadio: UHD NOT RECOMMENDED
- GNURadio: UHD Image NOT RECOMMENDED
- GNURadio: UHD burn EEPROM RFX Board di USRP1 NOT RECOMMENDED
- GNURadio: UHD Identifikasi Device
- OpenBTS: Ubuntu 11.10 Install
- OpenBTS: dari GIT ttsou
- OpenBTS: 2.8 dari SVN Install
- OpenBTS: 2.8 dari SVN Install Clock 52MHz RECOMMENDED
- OpenBTS: 2.8 dari SVN Install Clock 52MHz dengan UHD tanpa GNURadio NOT RECOMMENDED
- OpenBTS: 2.8 Edit User di sqlite3.db RECOMMEND
- OpenBTS: Yate Softswitch RECOMMENDED
- OpenBTS: Yate Config Test
- OpenBTS: 2.8 Instalasi Real Time Asterisk RECOMMENDED
- OpenBTS: 2.8 Menjalankan RECOMMENDED
- OpenBTS: 2.8 Konfigurasi
- OpenBTS: 2.8 Konfigurasi Subscriber Registery
- OpenBTS: Database SQLite
Multi OpenBTS 2.8
- OpenBTS: Pola Multi OpenBTS RECOMMENDED
- Multi OpenBTS: Catatan Konfigurasi RECOMMENDED
Ettus E110
- OpenBTS: E110 Cara Login
- OpenBTS: E110 Install Image di MicroSD *RECOMMENDED*
- OpenBTS: E110 Cek Daughter Board
- OpenBTS: E110 Mengubah Master Clock
- OpenBTS: E110 Kalibrasi Clock
- OpenBTS: E110 Bekerja dengan opkg
- OpenBTS: E110 GNURadio
- OpenBTS: E110 Compile UHD *RECOMMENDED*
- OpenBTS: E110 UHD burn EEPROM RFX Board *RECOMMENDED*
- OpenBTS: E110 Install UHD Image *RECOMMENDED*
- OpenBTS: E110 Instalasi OpenBTS
- OpenBTS: E110 Instalasi OpenBTS 2.6 NOT RECOMMENDED
- OpenBTS: E110 Instalasi OpenBTS 2.8 untuk MultiBTS *RECOMMENDED*
GPRS
Power Amplifier
Lain Lain
- OpenBTS: Materi Magang di ICTWATCH
- OpenBTS: Seminar Outline
- OpenBTS: Workshop Outline
- Membuat Base Station GSM Open Source
- Teknologi Selular
- GSM: Daftar Channel Frekuensi
- Wireless Internet
- OpenBSC
- AirProbe
- Base station subsystem
- GSM
- Asterisk
- Mobile phone
Catatan Legal dan Pendukung
- Siapa Bilang OpenBTS Ilegal?
- OpenBTS: Catatan MNC dan MCC Indonesia
- OpenBTS: Catatan MNC dan MCC COOL
- OpenBTS : Alokasi Frekuensi Operator GSM Indonesia
- GSM: Daftar Channel Frekuensi
Catatan Sejarah
- 2011/04/30 - Workshop OpenBTS Pertama di Indonesia dilakukan di Univ Gajah Putih Takengon Aceh Tengah
- OpenBTS: Daftar Workshop atau Seminar yang pernah dilakukan
- OpenBTS: Daftar Artikel di Media
Dokumentasi Video
- http://youtu.be/8ogOcUSpINU (1/6)
- http://youtu.be/F5d7HGuhppk (2/6)
- http://youtu.be/90Jgq6bOgrQ (3/6)
- http://youtu.be/cNkx_qNqdfc (4/6)
- http://youtu.be/6LCuoeI57ak (5/6)
- http://youtu.be/-dEqcHoIlYk (6/6)