zedboard Linux JTAG驱动解决There is no current hw_target问题
zedboard Linux JTAG驅動解決There is no current hw_target問題
Introduction
本文介紹了在Linux下安裝zedboard驅動解決vivado無法通過jtag連接到板子上的問題。
終于步入了helloworld階段。之前折騰了下zedboard板子sd卡啟動系統的問題,今天編寫helloworld,運行。但是發現最后一步push到板子上時,vivado找不到板子。搜到了reddit的一篇討論帖,解決了問題,這里對帖子內容進行簡單的整理說明。
主要問題是驅動問題。
硬件軟件環境
操作系統: Debian 9 x86_64
板子: zedboard AES-Z7EV-7Z020-G REV-D
出現的錯誤
vivado的console輸出:
[Labtoolstcl 44-469] There is no current hw_target操作步驟
dmesg
拔插前后,輸出dmesg查看是否有變化,如果沒有變化,應該是usb口的問題,而不是xilinx的問題,嘗試換下usb口試試
安裝Digilent Adept runtime和utilities
官方網址
百度網盤driver文件夾里的deb
可以從官網下載deb或者rpm或者tar.gz的包安裝。安裝Runtime- Latest 和Utilities – Latest 就行。
運行
djtgcfg enum看到類似輸出表示板子連接成功:
Found 1 device(s)Device: ZedProduct Name: Digilent ZedUser Name: ZedSerial Number: 2102XXXXXX查看udev規則是否存在
查看/etc/udev/rules.d/52-xilinx-digilent-usb.rules文件是否存在,如果不存在,運行vivado自帶的驅動安裝腳本:
Vivado/2016.4/data/xicom/cable_drivers/lin64/install_script/install_drivers/install_drivers原帖子里說的是運行install_digilent.sh的腳本,我測試后,發現需要運行install_drivers才行。
重啟機器,重新打開vivado測試
正常的輸出:
start_gui open_hw INFO: [IP_Flow 19-234] Refreshing IP repositories INFO: [IP_Flow 19-1704] No user IP repositories specified INFO: [IP_Flow 19-2313] Loaded Vivado IP repository '/home/find/d/fpga/Vivado/2016.4/data/ip'. connect_hw_server INFO: [Labtools 27-2285] Connecting to hw_server url TCP:localhost:3121 INFO: [Labtools 27-2222] Launching hw_server... INFO: [Labtools 27-2221] Launch Output:****** Xilinx hw_server v2016.4**** Build date : Jan 23 2017-19:28:34** Copyright 1986-2016 Xilinx, Inc. All Rights Reserved.open_hw_target INFO: [Labtoolstcl 44-466] Opening hw_target localhost:3121/xilinx_tcf/Digilent/210248483451 current_hw_device [lindex [get_hw_devices xc7z020_1] 0] refresh_hw_device -update_hw_probes false [lindex [get_hw_devices xc7z020_1] 0]
Reference
udev arch wiki
Xilinx Vivado on Linux Reddit帖子
文章若未注明轉載皆為原創,如需轉載請注明出處FindHao博客及文章鏈接,文章markdown格式源碼現已開放,歡迎轉載。文章源碼地址:
總結
以上是生活随笔為你收集整理的zedboard Linux JTAG驱动解决There is no current hw_target问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MATLAB数值积分
- 下一篇: 数字电路功耗分析基础