LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64-current USB Device Problem (https://www.linuxquestions.org/questions/slackware-14/slackware64-current-usb-device-problem-4175492891/)

t35t 01-28-2014 12:50 PM

Slackware64-current USB Device Problem
 
Hi all,

I am having some hard time connecting to a Xilinx fpga board. Drivers are provided by Digilent and installation is a straight process.

I have been working with these kind of fpga/mcu/embedded systems for a long time and have been using Slack for more than 10 years. Almost everything worked, sometimes with a little extra effort but it always worked in the end because... Slack rocks!

This time I don't think I am able to make it work. Device is working on Gentoo, Ubuntu, Fedora and even on win, but not Slack ; green indicator LED on board is not shining. Board is a S3E Kit and is fully functional ; no hardware problems at any side.

I first tried the default cable drivers provided by Xilinx ; no luck. Beside the original documentations, I followed these approaches that are reported to be successful ;

http://wiki.gentoo.org/wiki/Xilinx_USB_JTAG_Programmers
http://elinux.org/Install_Xilinx_USB...ers_for_Ubuntu
http://lighttomorrow.wordpress.com/2...-ubuntu-11-10/
http://rmdir.de/~michael/xilinx/
http://tingcao.wordpress.com/2012/05...32-bit-ubuntu/
http://ashwith.wordpress.com/2012/06...ora-17-64-bit/

but again no luck, it still seems that appropriate cable driver is not being loaded. These findings leads me to think that this is a specific Slackware problem but didn't encountered this behavior in previous versions of Slack. I am now using Slackware64-current(3.10.17), I am not sure about the origin of the problem. I compiled drivers, set udev rules followed everything mentioned around.

"lsusb" finds the device but queries like "djtgcfg enum" results in "no device found".

I would appreciate guidance from experienced users.

Cheers.

business_kid 01-28-2014 02:35 PM

I looked into the Xilinx drivers. As of kernel 2.6.23 or thereabouts they are incorrigibly broken because the standard includes were revised. You can hack them to compile, but they don't work.

Digilient has some exe for downloading to their boards. I have only used the crappy one they have in College here you might run that under wine. The rmdir.de link above was not the one I expected, but that guy wrote a driver for xilinx fpga boards, if memory serves. If you come up with specific errors from slack, I'd be interested.

t35t 01-28-2014 03:21 PM

Thank you for the information. I encountered those include problems while compiling like linux.h asm.h and so on ; tried to comment them out but I got a bunch of other errors. As you mentioned it doesn't work that way.

There exists an exe to download bit to board via libCse that's correct but to achieve that you need to have the proper driver working first, I am not there yet need to fix the driver first.

Still trying.

t35t 01-28-2014 05:02 PM

Problem is mainly related to 2 parameters ;
libusb version
rule order

so it's not that Slackware specific at all. It wasn't related to kernel mismatch also.

To make Xilinx USB Cable driver (ISE 14.7) on Slackware64-current ;

0-Install ISE without installing the embedded drivers
1-download libusb 0.1.4, compile and install
2-get fxload from Slackbuilds, create package and install
3-set appropriate rules for usb I/O
4-copy firmware file to /usr/share
5-restart udevd (udevadm trigger)

Everything is fully functional, tested OK.

reference;
http://techplustuff.blogspot.com.tr/...on-debian.html


All times are GMT -5. The time now is 10:47 AM.