Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Xilinx Platform cable USB and impact on linux without windrvr
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luzerne  
View profile  
 More options Mar 23 2007, 4:16 am
Newsgroups: comp.arch.fpga
From: "Luzerne" <luzerne.gan...@gmail.com>
Date: 23 Mar 2007 01:16:00 -0700
Subject: Re: Xilinx Platform cable USB and impact on linux without windrvr
On 23 mar, 07:25, carlos.as...@gmail.com wrote:

> I'm very new to linux but I undestand that you propose an alternative
> to windrvr that seems to work well.
> [...]
> I've spent many hours trying to get the windrvr and your driver to
> work without success.
> [...]
> I would really appreciate some help. I'm new to Linux and I use
> Kubuntu 6.10.

Here is my "step by step newbie" installation howto for Ubuntu Dapper
6.06 :)

Open a terminal (Application menu : Accessory > Terminal), where you
can enter the given commands (line starting with the $ prompt symbol).

We suppose we are in your prefered directory. For you it is probably
something like "/home/carlos". For this tutorial il will be replaced
by a generic "/path" :

$ pwd
/path

First, you donwload the program's archive in your prefered "/path/
Download" directory.

$ mkdir Download
$ wget "http://cvs.zerfleddert.de/cgi-bin/viewcvs.cgi/usb-
driver.tar.gz?view=tar" -O Download/usb-driver.tar.gz

Now you go in your prefered work directory (for me it is called
"Travail" :) and you decompress the archive.

$ cd /path/Travail
$ tar zxvf /path/Download/usb-driver.tar.gz
$ cd usb-driver

First thing to do is to check if README or INSTALL files exist, and
_READ_ them.

$ ls -l
$ more README

Now you know what to do. First you check the required module are
loaded.

$ lsmod | grep parport
parport_pc             38340  1
parport                39560  3 ppdev,lp,parport_pc

If you get something like that, it's ok. You can compile.

$ make

You may get this kind of error :

gcc -fPIC -Wall usb-driver.c -o libusb-driver.so -ldl -lusb -lpthread -
shared
usb-driver.c:36:17: erreur: usb.h : Aucun fichier ou répertoire de ce
type

It's because you have not installed one of the required libusb and
libusb-dev library.
You can install libusb-dev this way :

$ sudo apt-get install libusb-dev

Now you can retry the compilation.

$ make
gcc -fPIC -Wall usb-driver.c -o libusb-driver.so -ldl -lusb -lpthread -
shared
gcc -fPIC -DDEBUG -Wall usb-driver.c -o libusb-driver-DEBUG.so -ldl -
lusb -lpthread -shared

This time, if everything goes right, you can try impact :) As
explained in the README, set the preload environnement variable (this
will be set only for the current terminal) :

$ export LD_PRELOAD=/path/Travail/usb-driver/libusb-driver.so

Now, you can run impact. But you may get an error :

Can't open /dev/parport0: Permission denied
LPT port is already in use. rc = 0h
Cable connection failed.
Reusing 79063641 key.
Reusing FD063641 key.

It means you have not the required right on the /dev/parport0 device.
You can check this this way :

$ ls -l /dev/parport0
crw-rw 1 root lp 99, 0 2007-03-16 07:48 /dev/parport0

A fast work arround solution is to change the owner of this device :

$ whoami
luzerne
$ sudo chown luzerne /dev/parport0

Before retrying to program a device with impact, it may be necessary
to disbale the eventual impact cable locking. This can be done this
way :

$ impact -batch

> setMode -bscan
> cleancablelock
> quit

Now, you can retry to program a device with impact. This was my "step
by step" personnal log.

http://www.chezmoicamarche.org / YMMV / HTH

Luzerne GANHIR


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.