OAI4G的编译,供第一次尝试Open Air Interface的朋友参考

系统要求:CPU支持SSE4.1。系统最好是64bit的。32bit也可以编译通过。
编译过程中可能会出现缺少一些头文件,只要apt-get install相应的库就可以了。这个各个系统不同,就不细说了。

“Hello world of OAI” – Step by Step

  1. Get sources

a. In a Linux system, check out the trunk type, anonymous one has only read mode.

1
>svn co http://svn.eurecom.fr/openair4G/trunk

b. Check out ASN1C

1
>svn co https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk asn1c
  1. Add path to .bashrc

For example:

1
2
3
4
5
OPENAIR_HOME=/home/sdr/oai4g/trunk
export OPENAIR1_DIR=$OPENAIR_HOME/openair1
export OPENAIR2_DIR=$OPENAIR_HOME/openair2
export OPENAIR3_DIR=$OPENAIR_HOME/openair3
export OPENAIR_TARGETS=$OPENAIR_HOME/targets
  1. Install ASN1C

go to asn1c and do

1
2
3
./configure
make
sudo make install

Then all Makefiles will generate the ASN1 RRC descriptions (.c and .h files)

  1. Compile OAI

Full protocol stack simulation
Enter ‘targets\SIMU\USER’

1
2
>make
>./oaisim

This is a single machine simulation.

Multiple machines emulation
Enter ‘targets\SIMU\EXAMPLES\ETH_EMUL_1eNB_1UE’

1
2
./start_enb  #You will launch the eNB
./start_ue #in another PC, you will launch the UE

The two PCs will build an IP connection. You should be able to ‘>ping 10.0.1.2’ from 10.0.1.1
More than 1UE, pls enter other Example folders.

PHY layer performance test: Enter ‘openair1\SIMULATION\LTE_PHY’

1
2
make #You will get every channel simulation program. For example,
./dlsim #It will output all the process time of different modules and the BLER performance