User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
install_lattice_diamond_on_ubuntu [2015/11/30 17:44]
acanis [Installing Lattice Diamond on Ubuntu 14.04 (64-bit)]
install_lattice_diamond_on_ubuntu [2016/10/13 12:28] (current)
Line 141: Line 141:
     sudo chmod 777 /​dev/​ttyUSB*     sudo chmod 777 /​dev/​ttyUSB*
 </​code>​ </​code>​
 +====== License Setup ======
 +The default location that diamond looks for the license is at: /​usr/​local/​diamond/​3.7_x64/​license/​license.dat
 +So simply rename the license file and copy it to the path; or add your own location to $LM_LICENSE_FILE environment variable.
 +Now try '​diamondc'​ and hopefully it does not complain about license.
 +If the above setup does not work and your machine has more than 1 network card. Here are the more complicated steps,
 +1. Make sure that Diamond'​s lmutil program can find the correct hostid. Run:
 +/​usr/​local/​diamond/​3.7_x64/​ispfpga/​bin/​lin64/​lmutil lmhostid
 +If you get this error: "//​diamond/​3.7_x64/​ispfpga/​bin/​lin64/​lmutil:​ No such file or directory//",​ => go to step 2.
 +Otherwise it is likely you get this message, "//The FLEXnet host ID of this machine is "​000000000000"//",​=>​ go to step 3.
 +2. Run
 +<​code>​file /​usr/​local/​diamond/​3.7_x64/​ispfpga/​bin/​lin64/​lmutil</​code>,​ you will see "///​usr/​local/​diamond/​3.7_x64/​ispfpga/​bin/​lin64/​lmutil:​ ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /​lib64/​,​ for GNU/Linux 2.6.9, stripped//"​.
 +It is likely the interpreter file /​lib64/​ does not exist.
 +So create a symbolic link from existing one:
 +<​code>​sudo ln -s /​lib64/​ /​lib64/​</​code>​
 +Re-run step 1.
 +3. Diamond'​s lmutil is not able to correctly detect the hostid. The following renames the network card to help lmutil to find it:
 +- create file "/​etc/​udev/​rules.d/​70-persistent-net.rules"​
 +- put this line in the file with hostid replaced with yours.
 +SUBSYSTEM=="​net",​ ACTION=="​add",​ DRIVERS=="?​*",​ ATTR{address}=="​ho:​st:​id:​re:​pl:​ac",​ ATTR{dev_id}=="​0x0",​ ATTR{type}=="​1",​ NAME="​eth0"​
 +4. Restart the machine and try again.
 References: References:
install_lattice_diamond_on_ubuntu.txt ยท Last modified: 2016/10/13 12:28 by lianruo