Clone
1
Userguide
Cedric Roux edited this page 2016-01-17 19:13:39 +01:00

---+ OAI Targets

OpenAirInterface has three main targets: 1 link-level simulation platform 1 system-level emulation platform 1 realtime RF platform A set of tools have been developped or intergarted to provide a rich R&D environment, including:

  • Aeroflex-Geisler LEON/GRLIB, RTAI, Linux, GNU
  • Wireshark, raw layer 1 and layer 2 statistics called "PRINT_STATS", message analyzer called "ITTI Analyzer" and timing/process scheduling analysis using GTKWave
  • Low-level log processing, traffic generator, profiling tools, soft scope. In the following, we explain the usage for each target. ---+ ---+ Link-level simulation

---+ System-level emulation

---+ Realtime RF platform 1 System setup: Ubuntu 12.04 with realtime support with preferably either RTAI or RT-PREEMPT, and all the required packages. 1 Hardware setup: EXMIMO or USRP B210 platform * check that the EXMIMO is detected by OS using 'lspci', you should see a "Xilinx Corporation Default PCIe endpoint ID" The top level file and makefile are located at targets/RT/USER.

  • Step 1: insert RTAI modules if you are using RTAI (only )
* run "./init_rtai.sh" in targets/RT/USER * Or manually insert the RTAI modules * sudo insmod /usr/realtime/modules/rtai_hal.ko * sudo insmod /usr/realtime/modules/rtai_sched.ko * sudo insmod /usr/realtime/modules/rtai_sem.ko * sudo insmod /usr/realtime/modules/rtai_fifos.ko * sudo insmod /usr/realtime/modules/rtai_mbx.ko
* *Step 2:* creates RTAI fifos for STDOUT
* goto targets/RT * sudo make fifos
* *Step 3:* build lte-softmodemdrivers
* goto targets/RT/USER * make drivers
* *Step 4:* setup RF card
* goto targets/RT/USER * ./init_exmimo2.sh
* *Step 4:* setup RF card
* goto targets/RT/USER * ./init_exmimo2.sh
* *Step 5:* build OAI LTE softmodem
* EXMIMO target
* RTAI * make lte-softmodem HARD_RT=1 ENABLE_ITTI=1 USE_MME=R10 DISABLE_XER_PRINT=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 RRC_MSG_PRINT=1 -j4 * RT-PREEMPT * make lte-softmodem ENABLE_ITTI=1 RTAI=0 USE_MME=R10 DISABLE_XER_PRINT=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 RRC_MSG_PRINT=1 -j4 * USRP B210 * RTAI * make lte-softmodem USRP=1 HARD_RT=1 ENABLE_ITTI=1 USE_MME=R10 DISABLE_XER_PRINT=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 RRC_MSG_PRINT=1 -j4 * RT-PREEMPT * lte-softmodem USRP=1 RTAI=0 ENABLE_ITTI=1 USE_MME=R10 DISABLE_XER_PRINT=1 LINK_PDCP_TO_GTPV1U=1 SECU=1 RRC_MSG_PRINT=1 -j4
*Compilcation Directives* * DEBUG=1 enables the debugger * PRINT_STATS=1 see the stats in realtime * XFORMS=1 see the softscope * MSG_PRINT=1 print the RRC and PDCP messages * TBC
  • Step 6: run
* EXMIMO target * configure the eNB configuraion file in targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.conf * sudo -E ./lte-softmodem -V -K /tmp/itti_enb.log -O ../../PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.conf * USRP B210
* *Step 7:* check the output
* EXMIMO target * cat /dev/rtf62 * itti_analyzser * USRP B210

-- User.NavidNikaein - 27 Aug 2014