歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 下Xilinx USB cable的驅動問題

Ubuntu 下Xilinx USB cable的驅動問題

日期:2017/2/28 15:47:53   编辑:Linux教程

問題緣由及解決辦法:

When using XILINX JTAG software like Impact, Chipscope and XMD on Linux, the proprietary kernel module windrvr from Jungo is needed to access the parallel- or usb-cable. As this module does not work with current linux kernel versions (> 2.6.18) a library was developed, which emulates the module in userspace and allows the tools to access the JTAG cable without the need for a proprietary kernel module.

是的,就是需要編譯這個庫,來模仿module的行為,其他問題在上面的主頁都好找,我是從git下的最新edition來用的,也不管穩定版還是開發版了:

1.git init

2.git clone git://git.zerfleddert.de/usb-driver

3.make

A:編譯前需要先安裝libusb-dev的包,否則報錯找不到usb.h:sudo apt-get install libusb-dev

B:Built library is 64 bit. Run `make lib32' to build a 32 bit version,只是提醒,不影響結果

4.找個地方把庫給copy過去,然後,在你source settings64.sh之後,打開ise之前,執行如下語句:

export LD_PRELOAD=$yourpath/libusb-driver.so

我做完上面的動作之後,impact打開不再有找不到module的提示,但是仍然沒有發現device,重新啟動Ubuntu。重啟的時候提示usb加載有問題,是否跳過,按s跳過。。。

重啟後啟動impact,一切正常。

Copyright © Linux教程網 All Rights Reserved