Xilinx ISE - USB cable setup - Page 1
Forum section: electronics / general

author: psysc0rpi0n
author_rank: Frequent Contributor
timestamp: September 26, 2016, 06:14:17 am
content: Hello...I was here trying to connect my old Digilent Basys2 Spartan-3E (250k gates) but I'm having trouble setting up the USB cable.When I installed Xilinx ISE, I unchecked the "Install USB drivers" as recommended because looks like it doesn't work.Then I tried to follow this stepshereandherebut I?m getting an error when I issue the following command:Code:make lib32or evenCode:sudo make lib32This is the error:Code:make LIBVER=32 clean allmake: Entering directory '/media/Storage/Software/Linux/Xilinx_ISE/usb-driver'rm -f libusb-driver.so libusb-driver-DEBUG.socc -Wall -fPIC -DUSB_DRIVER_VERSION="\"2016-09-25 23:23:24\"" -m32 -DJTAGKEY usb-driver.c xpcu.c parport.c config.c jtagmon.c jtagkey.c -o libusb-driver.so -ldl -lusb -lpthread -L/usr/local/lib -lftdi -L/usr/lib/x86_64-linux-gnu -lusb -sharedparport.c: In function ‘parport_transfer’:parport.c:21:23: warning: variable ‘last_pp_write’ set but not used [-Wunused-but-set-variable]static unsigned char last_pp_write = 0;^/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.so when searching for -ldl/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.a when searching for -ldl/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libusb.so when searching for -lusb/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libusb.a when searching for -lusb/usr/bin/ld: cannot find -lusb/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.so when searching for -lpthread/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.a when searching for -lpthreadcollect2: error: ld returned 1 exit statusMakefile:29: recipe for target 'libusb-driver.so' failedmake: *** [libusb-driver.so] Error 1make: Leaving directory '/media/Storage/Software/Linux/Xilinx_ISE/usb-driver'Makefile:35: recipe for target 'lib32' failedmake: ***  Error 2This probably means that I'm missing 32 bit versions of libusb or something like that but I don't know the names of this 32 bit version of this lib...Can anyone help me? I'm using Debian Jessie 64bit!Thanks

author: bingo600
author_rank: Super Contributor
timestamp: September 26, 2016, 08:17:55 pm
content: For 32bit-libs see here - Get themhttps://stackoverflow.com/questions/30236342/debian-jessie-32-bit-librariesI have these notes for ISE 14.7 usb drivers (Mint-17-64bit)But use make for 64-bit ... not make lib32Code:Install via this onehttp://svenand.blogdrive.com/archive/102.htmlTipshttps://wiki.archlinux.org/index.php/Xilinx_ISE_WebPACK#Xilinx_Cable_DriversNew version of cable drivers:http://www.george-smart.co.uk/wiki/Xilinx_JTAG_Linuxsudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev-i386 fxloadQuoteSeehttp://www.xilinx.com/support/answers/29310.htmMaybe not debian , but on *buntu , incl Mint derrivatives ...And MAKE SURE bash is your default shell NOT dashdash FSCK's up a lot of things (well the expectation of bash) , when running advanced buildscripts like making GCC etc.Code:To make bash the default shell do thissudo dpkg-reconfigure dashAnd select No when it asks whether to use/install dash as /bin/sh.Verify like this (reboot ot log out first)$ shsh-4.3$ helpGNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)it says bash

author: bingo600
author_rank: Super Contributor
timestamp: September 26, 2016, 08:40:34 pm
content: OhhThe udev rules for Mint 17 , might work on debian too

author: psysc0rpi0n
author_rank: Frequent Contributor
timestamp: September 30, 2016, 07:26:44 am
content: I tried about almost everything but sill can't make it work!

author: andersm
author_rank: Super Contributor
timestamp: September 30, 2016, 09:07:56 am
content: Quote from: psysc0rpi0n on September 26, 2016, 06:14:17 amSee themultiarch HOWTO.

author: psysc0rpi0n
author_rank: Frequent Contributor
timestamp: October 03, 2016, 01:29:05 pm
content: Quote from: andersm on September 30, 2016, 09:07:56 amThe multiarch enables 32 and 64 bit architectures. The problem is the other way around!My system is actually 64 bit and I downloaded the 64 bit version of the software but I get that error!

author: andersm
author_rank: Super Contributor
timestamp: October 03, 2016, 01:45:42 pm
content: Quote from: psysc0rpi0n on October 03, 2016, 01:29:05 pmIn the build log in your original post, you are compiling a 32-bit binary.

author: psysc0rpi0n
author_rank: Frequent Contributor
timestamp: October 05, 2016, 09:01:49 am
content: Quote from: andersm on October 03, 2016, 01:45:42 pmYes, but because I had already tried the "make" option that didn't worked too... It was saying that that compilation was not compatible with 32 bit architecture... So I tried the "make lib32"... That's why!