Lattice Diamond on Ubuntu 11
This is a guide how i made Lattice Diamond 1.4 running on Ubuntu 11.10 with an FTDI High Speed USB Host Chip (FT232H) programmer.
To convert the downloaded diamond_1_4-base-87-i386-linux.rpm to a .dev file you can use the programm alien
> sudo apt-get install alien
> alien diamond_1_4-base-87-i386-linux.rpm
this takes a long time and i got a diamond_1_4-base-87-i386-linux.deb without errors, maybe some warnings
i installed this file by double clicking on it.
after that i maybe linked a missing libary to an other version number of the same lib (cant remember exactly)
and setup the licence file.
now lattice diamond should be succesfully executable by
> /usr/local/diamond/1.4/bin/lin/diamond
But Synthesis dont works.
For this i edited the platform_set file and replaced PLATFORM=”unknown” with PLATFORM=”linux”
>sudo kate /usr/local/diamond/1.4/synpbase/bin/config/platform_set
The synthesis should work.
To make the FTDI High Speed USB Host Chip (FT232H) programmer (on my Lattic Pico Development Kit) work i followed the Lattice Diamond 1.4 Installation Notice pdf for linux.
but first make sure that you have installed libusb
> sudo apt-get install libusb-1.0-0
For the FTDI Hig Speed USB Host Chip the Lattice Diamond 1.4 Installation Notice pdf says:
1. Go to the
<install_path>\data\vmdata\drivers\ftdiusbdriver
directory.
2. Copy the libftd2xx.so.1.0.4 file to /usr/local/lib as follows:
> sudo cp libftd2xx.so.1.0.4 /usr/local/lib/.
3. Change directory to /usr/local/lib as follows:
> cd /usr/local/lib
4. Make a symbolic link to the file in /usr/local/lib as
follows:
> sudo ln -s libftd2xx.so.1.0.4 libftd2xx.so
5. Change directory to /usr/lib as follows:
> cd /usr/lib.
6. Make symbolic links to these files using the following commands:
> sudo ln -s /usr/local/lib/libftd2xx.so.1.0.4 libftd2xx.so
7. Plug in the cable.
8. Unload the ftdi_sio driver if it is attached to your device.
> sudo /sbin/rmmod ftdi_sio
9. Unload the usbserial driver if it is attached to your device.
> sudo /sbin/rmmod usbserial
if you now execute
> /usr/local/diamond/1.4/bin/lin/diamond
it should complains about not having wirte acces to usb
to fix this, create the file
/etc/udev/rules.d/10-local.rules
and add to it
BUS==”usb”, SYSFS{idVendor}==”0403″, SYSFS{idProduct}==”6010″, GROUP=”plugdev”
with
> sudo kate /etc/udev/rules.d/10-local.rules
to get the right Vendor and Product id use:
> lsusb
which in my case gives:
Bus 002 Device 009: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
maybe i forgot something, but the good thing is, that it is possible to run it succesfully on ubuntu 11.xx with the Lattice pico development kit
Be aware everytime the devicde is reconnect do the following commands again because then the usb to rs232 drivers is loaded again and this driver cannot be used in parallel with the libusb.
> sudo /sbin/rmmod ftdi_sio
> sudo /sbin/rmmod usbserial
Thanks a lot for this great page. All the problems I had are solved with your help!!! Great !!!
Sebastian
Pingback: Installing Lattice Diamond on Ubuntu 14.04 | hardtechlife