Remove ADRV9371_ZC706 driver leftovers
This commit is contained in:
+2
-18
@@ -109,7 +109,7 @@ Options:
|
||||
--UE-gen-nvram [output path]
|
||||
Specify gen_nvram_path (default \"$gen_nvram_path\")
|
||||
-w | --hardware
|
||||
USRP, BLADERF, LMSSDR, IRIS, ADRV9371_ZC706, SIMU, AW2SORI, None (Default)
|
||||
USRP, BLADERF, LMSSDR, IRIS, SIMU, AW2SORI, None (Default)
|
||||
Adds this RF board support (in external packages installation and in compilation)
|
||||
-t | --transport
|
||||
Selects the transport protocol type, options: None, Ethernet, benetel4g, benetel5g
|
||||
@@ -286,7 +286,7 @@ function main() {
|
||||
-w | --hardware)
|
||||
# Use OAI_USRP as the key word USRP is used inside UHD driver
|
||||
case "$2" in
|
||||
"USRP" | "BLADERF" | "LMSSDR" | "IRIS" | "ADRV9371_ZC706" | "SIMU" | "AW2SORI")
|
||||
"USRP" | "BLADERF" | "LMSSDR" | "IRIS" | "SIMU" | "AW2SORI")
|
||||
HW="OAI_"$2
|
||||
;;
|
||||
"None")
|
||||
@@ -499,10 +499,6 @@ function main() {
|
||||
install_usrp_uhd_driver $UHD_IMAGES_DIR
|
||||
fi
|
||||
fi
|
||||
# if [ "$HW" == "OAI_ADRV9371_ZC706" ] ; then
|
||||
# echo_info "\nInstalling packages for ADRV9371_ZC706 support"
|
||||
# check_install_libiio_driver
|
||||
# fi
|
||||
if [ "$HW" == "OAI_BLADERF" ] ; then
|
||||
echo_info "installing packages for BLADERF support"
|
||||
check_install_bladerf_driver
|
||||
@@ -706,18 +702,6 @@ function main() {
|
||||
|
||||
ln -s liboai_irisdevif.so liboai_device.so
|
||||
echo_info "liboai_device.so is linked to IRIS device library"
|
||||
elif [ "$HW" == "OAI_ADRV9371_ZC706" ] ; then
|
||||
SYRIQ_KVER=$(uname -r)
|
||||
SYRIQ_KMAJ=$(echo $SYRIQ_KVER | sed -e 's/^\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*.*/\1/')
|
||||
SYRIQ_KMIN=$(echo $SYRIQ_KVER | sed -e 's/^[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*.*/\1/')
|
||||
# echo $SYRIQ_KMAJ$SYRIQ_KMIN
|
||||
if [ "$SYRIQ_KMAJ$SYRIQ_KMIN" == "319" ] || [ "$SYRIQ_KMAJ$SYRIQ_KMIN" == "410" ] || [ "$SYRIQ_KMAJ$SYRIQ_KMIN" == "415" ] ; then
|
||||
# echo "Kernel $SYRIQ_KMAJ.$SYRIQ_KMIN detected"
|
||||
ln -sf /usr/local/lib/syriq/libadrv9371zc706.so liboai_device.so
|
||||
else
|
||||
echo_error "== FAILED == Unexpected Kernel $SYRIQ_KMAJ.$SYRIQ_KMIN"
|
||||
fi
|
||||
echo_info "liboai_device.so is linked to ADRV9371_ZC706 device library for Kernel $SYRIQ_KMAJ.$SYRIQ_KMIN"
|
||||
elif [ "$HW" == "OAI_AW2SORI" ] ; then
|
||||
compilations $BUILD_DIR aw2sori_transpro
|
||||
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
/* ********** ********** ********** ********** ********** ********** ********** */
|
||||
Requirements:
|
||||
-------------
|
||||
- Previous kernel module/libraries shall be uninstalled !!!
|
||||
- cf. command line below "SYRTEM_IQ_uninstall_previous_SW.sh"
|
||||
./SYRTEM_IQ_unload_previous_SW.sh
|
||||
- You shall have SYRIQ1.4.6nr.tar.gz
|
||||
- Ubuntu kernel version is restricted to:
|
||||
- Kernel 4.15.0-20-lowlatency (Ubuntu 18.04)
|
||||
- Kernel 4.10.0-42-lowlatency (Ubuntu 17.04)
|
||||
- Kernel 3.19.0-61-lowlatency (Ubuntu 14.04)
|
||||
- ADRV9371+ZC706 PCIe board shall be switched on
|
||||
- PC shall be reboot once ADRV9371+ZC706 PCIe board is switched on
|
||||
|
||||
mkdir eur_oai_develop-nr
|
||||
cd eur_oai_develop-nr
|
||||
|
||||
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
|
||||
cd openairinterface5g
|
||||
|
||||
git checkout 375-syrtem-sdr-platform
|
||||
or
|
||||
git checkout develop-nr (after merge request accepted)
|
||||
|
||||
./sdr/ADRV9371_ZC706/SYRTEM_IQ_uninstall_previous_SW.sh
|
||||
-> Reading package lists... Done
|
||||
-> Building dependency tree
|
||||
-> Reading state information... Done
|
||||
-> linux-headers-4.15.0-20-lowlatency is already the newest version (4.15.0-20.21).
|
||||
-> 0 upgraded, 0 newly installed, 0 to remove and 327 not upgraded.
|
||||
-> Previous SYRIQ is loaded!
|
||||
-> previous SYRIQ is unloaded!
|
||||
-> previous SYRIQ is uninstall!
|
||||
-> Previous SYRIQ uninstallation is done
|
||||
|
||||
|
||||
|
||||
|
||||
/* ********** ********** ********** ********** ********** ********** ********** */
|
||||
UE:
|
||||
---
|
||||
configuration:
|
||||
--------------
|
||||
sudo apt update
|
||||
sudo apt-get update
|
||||
|
||||
tar -xvzf SYRIQ1.4.6nr.tar.gz
|
||||
./SYRIQplatformR1.4.6nr_install.sh
|
||||
sudo reboot
|
||||
|
||||
sudo lspci -vv | grep Xilinx
|
||||
sudo lspci -vv -s 02:00.0 | grep LnkSta
|
||||
sudo lspci -vv -s 03:00.0 | grep LnkSta
|
||||
sudo lspci -vv -s 02:00.0 | grep Interr
|
||||
sudo lspci -vv -s 03:00.0 | grep Interr
|
||||
|
||||
sudo gedit /usr/local/etc/syriq/cpu-irq.sh
|
||||
echo '1' > /proc/irq/49/smp_affinity_list
|
||||
echo '5' > /proc/irq/48/smp_affinity_list
|
||||
|
||||
gedit oaienv
|
||||
export IIOD_REMOTE=192.168.1.11
|
||||
|
||||
|
||||
|
||||
compilation:
|
||||
------------
|
||||
sudo cset shield --reset
|
||||
cd eur_oai_develop-nr/openairinterface5g/
|
||||
source oaienv
|
||||
|
||||
sudo -E ./cmake_targets/build_oai -c --nrUE -w ADRV9371_ZC706 -I
|
||||
sudo -E ./cmake_targets/build_oai -c --nrUE -w ADRV9371_ZC706
|
||||
|
||||
|
||||
|
||||
run:
|
||||
----
|
||||
source oaienv
|
||||
sudo -E /usr/local/etc/syriq/cpu-irq.sh
|
||||
|
||||
sudo -E cset shield -e ./cmake_targets/ran_build/nr-uesoftmodem -- --numerology 1 -r 106 -C 3510000000 --loop-memory --rf-config-file /usr/local/etc/syriq/ue.band22.tm1.PRB100.NR40.dat
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* ********** ********** ********** ********** ********** ********** ********** */
|
||||
gNB:
|
||||
----
|
||||
configuration:
|
||||
--------------
|
||||
sudo apt update
|
||||
sudo apt-get update
|
||||
|
||||
tar -xvzf SYRIQ1.4.6nr.tar.gz
|
||||
./SYRIQplatformR1.4.6nr_install.sh
|
||||
sudo reboot
|
||||
|
||||
sudo lspci -vv | grep Xilinx
|
||||
sudo lspci -vv -s 02:00.0 | grep LnkSta
|
||||
sudo lspci -vv -s 02:00.0 | grep Interr
|
||||
|
||||
sudo gedit /usr/local/etc/syriq/cpu-irq.sh
|
||||
echo '1' > /proc/irq/46/smp_affinity_list
|
||||
|
||||
gedit oaienv
|
||||
export IIOD_REMOTE=192.168.1.21
|
||||
|
||||
|
||||
|
||||
compilation:
|
||||
------------
|
||||
sudo cset shield --reset
|
||||
cd eur_oai_develop-nr/openairinterface5g/
|
||||
source oaienv
|
||||
|
||||
sudo -E ./cmake_targets/build_oai -c --gNB -w ADRV9371_ZC706 -I --enable-cpu-affinity
|
||||
|
||||
/* CPU available shall be mapped on CPU2 to get_nprocs() number with hyperthreading disabled */
|
||||
/* because : */
|
||||
/* - cset shield leave CPU0 for system */
|
||||
/* - CPU1 is reserved for HwRxTx thread for I/Q acquisition ! */
|
||||
/* Note: "/usr/local/etc/syriq/cpu-irq.sh" shall be changed if more than 8 cores are used */
|
||||
/* ie. "cset shield --force --kthread on -c 1-7" where "-c 1-7" reserves CPU1 to CPU7 for application (CPU0 is for system) */
|
||||
|
||||
sudo -E ./cmake_targets/build_oai -c --gNB -w ADRV9371_ZC706 --enable-cpu-affinity
|
||||
|
||||
|
||||
|
||||
run:
|
||||
----
|
||||
source oaienv
|
||||
sudo -E /usr/local/etc/syriq/cpu-irq.sh
|
||||
|
||||
sudo -E cset shield -e ./cmake_targets/ran_build/build/nr-softmodem -- -O $OPENAIR_DIR/targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band22.tm1.106PRB.adrv9371zc706.conf --rf-config-file /usr/local/etc/syriq/gnb.band22.tm1.PRB100.NR40_hwgain15.dat
|
||||
@@ -1,28 +0,0 @@
|
||||
# Previous SYRIQ uninstall
|
||||
#!/bin/sh
|
||||
MODULE="riffa"
|
||||
KERNEL_VERSION=$(uname -r)
|
||||
RHR=/etc/redhat-release
|
||||
|
||||
sudo apt-get install -y linux-headers-`uname -r`
|
||||
|
||||
if lsmod | grep "$MODULE" &> /dev/null ; then
|
||||
echo "Previous SYRIQ is loaded!"
|
||||
sudo rmmod $MODULE
|
||||
echo " -> previous SYRIQ is unloaded!"
|
||||
sudo rm -f /usr/local/lib/libriffa.so*
|
||||
sudo rm -f /usr/local/include/riffa.h
|
||||
sudo rm -f /usr/local/include/riffa_driver.h
|
||||
sudo rm -f /etc/ld.so.conf.d/riffa.conf
|
||||
sudo rm -rf /lib/modules/$KERNEL_VERSION/kernel/drivers/riffa
|
||||
sudo rm -f /etc/udev/rules.d/99-riffa.rules
|
||||
sudo sed -i '/riffa/d' /etc/modules
|
||||
sudo ldconfig
|
||||
sudo depmod
|
||||
echo " -> previous SYRIQ is uninstall!"
|
||||
echo "Previous SYRIQ uninstallation is done"
|
||||
exit 0
|
||||
else
|
||||
echo "Previous SYRIQ is not loaded!"
|
||||
exit 1
|
||||
fi
|
||||
@@ -53,7 +53,6 @@ const char* devtype_names[MAX_RF_DEV_TYPE] = {
|
||||
"LMSSDR",
|
||||
"IRIS",
|
||||
"No HW",
|
||||
"ADRV9371_ZC706",
|
||||
"UEDv2",
|
||||
"RFSIMULATOR"
|
||||
};
|
||||
|
||||
@@ -99,8 +99,6 @@ typedef enum {
|
||||
IRIS_DEV,
|
||||
/*!\brief device is NONE*/
|
||||
NONE_DEV,
|
||||
/*!\brief device is ADRV9371_ZC706 */
|
||||
ADRV9371_ZC706_DEV,
|
||||
/*!\brief device is UEDv2 */
|
||||
UEDv2_DEV,
|
||||
RFSIMULATOR,
|
||||
|
||||
Reference in New Issue
Block a user