Author Topic: Xilinx ISE - USB cable setup  (Read 5010 times)

0 Members and 1 Guest are viewing this topic.

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ar
Xilinx ISE - USB cable setup
« on: September 26, 2016, 06:14:17 am »
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 steps here and here but I?m getting an error when I issue the following command:

Code: [Select]
make lib32
or even

Code: [Select]
sudo make lib32

This is the error:
Code: [Select]
make LIBVER=32 clean all
make[1]: Entering directory '/media/Storage/Software/Linux/Xilinx_ISE/usb-driver'
rm -f libusb-driver.so libusb-driver-DEBUG.so
cc -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 -shared
parport.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 -lpthread
collect2: error: ld returned 1 exit status
Makefile:29: recipe for target 'libusb-driver.so' failed
make[1]: *** [libusb-driver.so] Error 1
make[1]: Leaving directory '/media/Storage/Software/Linux/Xilinx_ISE/usb-driver'
Makefile:35: recipe for target 'lib32' failed
make: *** [lib32] Error 2

This 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
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1988
  • Country: dk
Re: Xilinx ISE - USB cable setup
« Reply #1 on: September 26, 2016, 08:17:55 pm »
For 32bit-libs  see here - Get them
https://stackoverflow.com/questions/30236342/debian-jessie-32-bit-libraries


I have these notes for ISE  14.7 usb drivers (Mint-17-64bit)


But use make for 64-bit ... not make lib32

Code: [Select]
Install via this one
http://svenand.blogdrive.com/archive/102.html

Tips
[url]https://wiki.archlinux.org/index.php/Xilinx_ISE_WebPACK#Xilinx_Cable_Drivers[/url]

New version of cable drivers:
http://www.george-smart.co.uk/wiki/Xilinx_JTAG_Linux

sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev-i386 fxload


Quote
*** Add to startup file ***
export XIL_IMPACT_USE_LIBUSB=1
export LD_PRELOAD=/opt/Xilinx14.7/usb-driver/libusb-driver.so

See
http://www.xilinx.com/support/answers/29310.htm


Maybe not debian , but on *buntu , incl Mint derrivatives ...
And MAKE SURE bash is your default shell NOT dash
dash FSCK's up a lot of things (well the expectation of bash) , when running advanced buildscripts like making GCC etc.

Code: [Select]
To make bash the default shell do this

sudo dpkg-reconfigure dash
And select No when it asks whether to use/install dash as /bin/sh. 

Verify like this (reboot ot log out first)

$ sh
sh-4.3$ help
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

it says bash
« Last Edit: September 26, 2016, 09:06:17 pm by bingo600 »
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1988
  • Country: dk
Re: Xilinx ISE - USB cable setup
« Reply #2 on: September 26, 2016, 08:40:34 pm »
Ohh

The udev rules for Mint 17 , might work on debian too

 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ar
Re: Xilinx ISE - USB cable setup
« Reply #3 on: September 30, 2016, 07:26:44 am »
I tried about almost everything but sill can't make it work!  |O  |O  |O
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: Xilinx ISE - USB cable setup
« Reply #4 on: September 30, 2016, 09:07:56 am »
This 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...
See the multiarch HOWTO.

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ar
Re: Xilinx ISE - USB cable setup
« Reply #5 on: October 03, 2016, 01:29:05 pm »
This 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...
See the multiarch HOWTO.

The 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!
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: Xilinx ISE - USB cable setup
« Reply #6 on: October 03, 2016, 01:45:42 pm »
The multiarch enables 32 and 64 bit architectures. The problem is the other way around!
In the build log in your original post, you are compiling a 32-bit binary.

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ar
Re: Xilinx ISE - USB cable setup
« Reply #7 on: October 05, 2016, 09:01:49 am »
The multiarch enables 32 and 64 bit architectures. The problem is the other way around!
In the build log in your original post, you are compiling a 32-bit binary.

Yes, 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!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf