OAI4G的编译,供第一次尝试Open Air Interface的朋友参考
系统要求:CPU支持SSE4.1。系统最好是64bit的。32bit也可以编译通过。
编译过程中可能会出现缺少一些头文件,只要apt-get install相应的库就可以了。这个各个系统不同,就不细说了。
“Hello world of OAI” – Step by Step
- 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 |
- Add path to .bashrc
For example:
1 | OPENAIR_HOME=/home/sdr/oai4g/trunk |
- Install ASN1C
go to asn1c and do
1 | ./configure |
Then all Makefiles will generate the ASN1 RRC descriptions (.c and .h files)
- Compile OAI
Full protocol stack simulation
Enter ‘targets\SIMU\USER’
1 | >make |
This is a single machine simulation.
Multiple machines emulation
Enter ‘targets\SIMU\EXAMPLES\ETH_EMUL_1eNB_1UE’
1 | ./start_enb #You will launch the eNB |
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 | make #You will get every channel simulation program. For example, |