1#!/bin/bash 2 3home_dir=$(pwd) 4 5set -x 6if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then 7 cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr 8else 9 cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr 10fi 11 12echo 1 > tx_intf_iq_ctl 13cat tx_intf_iq_ctl 14 15cd $home_dir 16