diff options
author | Steven Koo <steven.koo@ni.com> | 2022-06-16 13:39:13 -0500 |
---|---|---|
committer | skooNI <60897865+skooNI@users.noreply.github.com> | 2022-07-20 15:57:20 -0500 |
commit | 3dc9aad75670cee59ba23e08901ff2b706fc37bc (patch) | |
tree | da44ed7e34b5eb2a7ae006ed7b28b25c97f6f956 /.ci/templates/job-uhd-streaming-tests.yml | |
parent | 7466cefb0d4c65687b782c5718d6c21c8d2d9c3c (diff) | |
download | uhd-3dc9aad75670cee59ba23e08901ff2b706fc37bc.tar.gz uhd-3dc9aad75670cee59ba23e08901ff2b706fc37bc.tar.bz2 uhd-3dc9aad75670cee59ba23e08901ff2b706fc37bc.zip |
ci: streaming: flash x310 fpga
This uses openFPGALoader to flash the fpga before
running the test. This tool is needed because
uhd_image_loader only updates the flash for x3xx,
which requires a hard power cycle to commit.
This openFPGALoader directly updates the fpga
SRAM.
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/job-uhd-streaming-tests.yml')
-rw-r--r-- | .ci/templates/job-uhd-streaming-tests.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.ci/templates/job-uhd-streaming-tests.yml b/.ci/templates/job-uhd-streaming-tests.yml index bcce368d5..912551b7c 100644 --- a/.ci/templates/job-uhd-streaming-tests.yml +++ b/.ci/templates/job-uhd-streaming-tests.yml @@ -138,6 +138,18 @@ jobs: $(Build.BinariesDirectory)/uhddev/build-installed/bin/uhd_images_downloader -t b210 -t fpga displayName: Download B210 images condition: and(succeeded(), eq(variables.dutType, 'B210')) + + - script: | + export UHD_IMAGES_DIR=$(Build.BinariesDirectory)/uhddev/build-installed/share/uhd/images + $(Build.BinariesDirectory)/uhddev/build-installed/bin/uhd_images_downloader -t x310 + openFPGALoader -c digilent --ftdi-serial $(jtagSerial) --ftdi-channel 0 $UHD_IMAGES_DIR/usrp_x310_fpga_$(dutFPGA).bit + EXITCODE=$? + echo "Waiting for device to boot" + sleep 30 + exit $EXITCODE + displayName: Download and update X310 fpga + condition: and(succeeded(), eq(variables.dutType, 'X310')) + - script: | ssh-keygen -f ~/.ssh/known_hosts -R $USRP_EMB_TARGET_IP ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "ethtool -A sfp0 tx on" |