Forums

Linux and the Digilent Basys ?

Started by Bob Smith February 16, 2008
I work for a Linux software house and would like to offer a
"Hello, World!" tutorial for FPGAs.  The idea is to keep it
simple and low cost.  The Digilent Basys board looks good
for cost but not for (Linux) simplicity.  I'd sure like to
avoid the windrv module and the parallel port cable.

Does anyone know of a way to program the Basys board over
the USB cable using Linux?

thanks
Bob Smith
On Feb 16, 6:08 pm, Bob Smith <use...@linuxtoys.org> wrote:
> I work for a Linux software house and would like to offer a > "Hello, World!" tutorial for FPGAs. The idea is to keep it > simple and low cost. The Digilent Basys board looks good > for cost but not for (Linux) simplicity. I'd sure like to > avoid the windrv module and the parallel port cable. > > Does anyone know of a way to program the Basys board over > the USB cable using Linux? > > thanks > Bob Smith
I don't know about that specific board, but there is an open-source user-space Linux driver for the Xilinx cables (USB and parallel). I am successfully using it with ISE Webpack 9.2i on Ubuntu 7.10 with a Spartan-3 board from Digilent. See http://rmdir.de/~michael/xilinx/ .
On 2008-02-16, Bob Smith <usenet@linuxtoys.org> wrote:
> I work for a Linux software house and would like to offer a > "Hello, World!" tutorial for FPGAs. The idea is to keep it > simple and low cost. The Digilent Basys board looks good > for cost but not for (Linux) simplicity. I'd sure like to > avoid the windrv module and the parallel port cable. > > Does anyone know of a way to program the Basys board over > the USB cable using Linux?
http://rmdir.de/~michael/xilinx/ has a windrv replacement library which you can LD_PRELOAD before starting impact. Personally I have used it exclusively instead of windrvr for a while now and it works perfectly with the platform USB cable. /Andreas
Andreas Ehliar wrote:
> On 2008-02-16, Bob Smith <usenet@linuxtoys.org> wrote: >> Does anyone know of a way to program the Basys board over >> the USB cable using Linux? > > http://rmdir.de/~michael/xilinx/ has a windrv replacement library > which you can LD_PRELOAD before starting impact. Personally > I have used it exclusively instead of windrvr for a while now and > it works perfectly with the platform USB cable.
Thanks, Andreas and Michael. I've tried the USB driver and have followed the directions in the README to edit the udev rules, copy the *.hex files and to be sure /sbin/fxload is available. It looks like the firmware download is not taking place as the USB IDs do not change as expected after the firmware download. I still get root@pohl:usb-driver# lsusb Bus 004 Device 012: ID 1443:0005 ISE/impact give the following error when I try to download the BASYS bit file build in the demo project: Connecting to cable (Usb Port - USB21). Checking cable driver. File version of /home/Xilinx92i/bin/lin/xusbdfwu.hex = 1030. File version of /usr/share/xusbdfwu.hex = 1030. libusb-driver.so version: 2008-01-20 04:17:11. Cable connection failed. I tried adding the 1443:0005 to ~/.libusb-driverrc but that did not make any difference. Any more idea? thanks Bob Smith
>ISE/impact give the following error when I try to download >the BASYS bit file build in the demo project: > Connecting to cable (Usb Port - USB21). > Checking cable driver. > File version of /home/Xilinx92i/bin/lin/xusbdfwu.hex = 1030. > File version of /usr/share/xusbdfwu.hex = 1030. > libusb-driver.so version: 2008-01-20 04:17:11. > Cable connection failed.
>I tried adding the 1443:0005 to ~/.libusb-driverrc but that did >not make any difference.
>Any more idea?
Isn't the linux usb-dl driver supposed to be used with it's own download application. Ie not with ISE/impact ..?