120316e70c704a006b8991b121336e145da34303

This commit is contained in:
Xianjun Jiao 2022-05-16 12:23:01 +02:00
parent 55a868b0af
commit e60c3d1541
2 changed files with 7 additions and 7 deletions

View File

@ -33,10 +33,12 @@ rmmod xpu
sleep 1
echo 0 > /sys/class/fpga_manager/fpga0/flags
mkdir -p /lib/firmware
cp $fpga_img_filename /lib/firmware/
echo $fpga_img_filename_core > /sys/class/fpga_manager/fpga0/firmware
if [ -f "$fpga_img_filename" ]; then
echo 0 > /sys/class/fpga_manager/fpga0/flags
mkdir -p /lib/firmware
cp $fpga_img_filename /lib/firmware/ -rf
echo $fpga_img_filename_core > /sys/class/fpga_manager/fpga0/firmware
fi
# insmod ad9361_drv.ko
# sleep 1

View File

@ -63,7 +63,6 @@ insert_check_module () {
}
print_usage
sync
TARGET_DIR=./
DOWNLOAD_FLAG=0
@ -107,8 +106,6 @@ echo TARGET_DIR $TARGET_DIR
echo DOWNLOAD_FLAG $DOWNLOAD_FLAG
echo test_mode $test_mode
sync
#if ((($test_mode & 0x2) != 0)); then
tx_offset_tuning_enable=0
#else
@ -141,6 +138,7 @@ if [ -f "$TARGET_DIR/system_top.bit.bin" ]; then
./load_fpga_img.sh $TARGET_DIR/system_top.bit.bin
else
echo $TARGET_DIR/system_top.bit.bin not found. Skip reloading FPGA.
./load_fpga_img.sh fjdo349ujtrueugjhj
fi
./rf_init_11n.sh