...
Code Block | ||
---|---|---|
| ||
cd /opt/fb/scratch/ wget https://registrationcenter-download.intel.com/akdlm/irc_nas/18487/l_BaseKit_p_2022.1.2.146_offline.sh chmod a+x l_BaseKit_p_2022.1.2.146_offline.sh ./l_BaseKit_p_2022.1.2.146_offline.sh -a -s --eula accept --install-dir /opt/fb/intel/oneapi |
S4.5 Extract FlexRAN and populate the environment variables
Code Block | ||
---|---|---|
| ||
cd /opt/fb/scrach/ && tar zxvf FlexRAN-22.03-L1.tar.gz && ./extract.sh
# input '/opt/fb/flexran' for Extract destination directory cd /opt/fb/flexran/
TARGET_COMPILER=icx
source ./set_env_var.sh -d
# When following promote message shows:
# Enter One API Install Directory for icx, or just enter to set default
# input: /opt/fb/intel/oneapi
# promote message shows:
# Enter DPDK Install Directory, or just enter to set default
# input: /opt/fb/dpdk-flxr-22.03
|
S4.6 Switch to devtoolset-8 environment
Code Block | ||
---|---|---|
| ||
scl enable devtoolset-8 bash |
or
Code Block | ||
---|---|---|
| ||
source /opt/rh/devtoolset-8/enable |
S4.7 Build FlexRAN SDK
Code Block | ||
---|---|---|
| ||
cd /opt/fb/flexran && ./flexran_build.sh -e -r 5gnr -m sdk |
S4.8 Build DPDK with the FlexRAN patch
Code Block | ||
---|---|---|
| ||
cd /opt/fb/dpdk-flxr-22.03 && meson build
cd /opt/fb/dpdk-flxr-22.03/build && meson configure -
pip3 install pyelftools
work_path=/opt/fb/flexran/sdk/build-avx512-icx/install && ninja
|
S4.9 Build the FlexRAN applications
Code Block | ||
---|---|---|
| ||
cd /opt/fb/flexran
# compile all available modules for 5gnr
./flexran_build.sh -e -r 5gnr |
S4.10 Build xRAN related application
Code Block | ||
---|---|---|
| ||
cd /opt/fb/flexran/xran/app/
octave ./gen_test.m > octave_gen_test.log 2>&1
export MLOG_DIR=/opt/fb/flexran/libs/mlog
export GTEST_ROOT=/opt/gtest-1.7.0/
cd /opt/fb/flexran/xran
sed -i 's#SAMPLEAPP=0#SAMPLEAPP=1#g' build.sh
./build.sh xclean && ./build.sh |