Article Details

ID: 6030
Case Type: faq
Category: License Installation
Related To: Lattice Diamond
Family: Other FPGA

Search Answer Database

Search Text Image

Diamond: How to set up a floating license in RHEL7 using only license management files?

1. Edit the server and daemon lines to license.dat file in /nas/storage/lattice

You can change the PORT numbers used to suit your needs, as shown below

SERVER lattice-lic-server 0052376A34FC 17700

DAEMON lattice /nas/storage/lattice/bin/lin64/ PORT=50500

 

Replace the daemon_path with the path to ModelSim and/or QuestaSim Lattice Edition

For ModelSim, the path is: % <install_path>/modeltech/win32loem/mgcld

For QuestaSim, the path is % <install_path>/questasim/license_server/saltd

 

Please visit the link for the license daemons https://www.latticesemi.com/view_document?document_id=54359

 

2. download the Lattice RPM: diamond_3_12-base-240-2-x86_64-linux.rpm

from: https://www.latticesemi.com/Products/DesignSoftwareAndIP/FPGAandLDS/LatticeDiamond

to: /tmp/lattice/ on the Linux server

----------


3. list the contents of the rpm and look for the license binaries lmgrd|lattice

cd /tmp/lattice/

rpm -qlpv diamond_3_12-base-240-2-x86_64-linux.rpm | less

rpm -qlpv diamond_3_12-base-240-2-x86_64-linux.rpm | egrep -i lattice

rpm -qlpv diamond_3_12-base-240-2-x86_64-linux.rpm | egrep -i license

rpm -qlpv diamond_3_12-base-240-2-x86_64-linux.rpm | egrep -i lmgrd

rpm -qlpv diamond_3_12-base-240-2-x86_64-linux.rpm | egrep -i 'ispfpga'

drwxr-xr-x 2 root root 0 Dec 2 22:21 /usr/local/diamond/3.12/ispfpga

-rwxr-xr-x 1 root root 778858185 Dec 2 22:01 /usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz

----------


4. Extract the linux license binaries from the rpm file: ispfpga.tar.gz using the rpm2cpio and cpio and tar commands

cd /tmp/lattice

rpm -qlpv diamond_3_12-base-240-2-x86_64-linux.rpm | egrep -i 'ispfpga'

drwxr-xr-x 2 root root 0 Dec 2 22:21 /usr/local/diamond/3.12/ispfpga

-rwxr-xr-x 1 root root 778858185 Dec 2 22:01 /usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz

rpm2cpio diamond_3_12-base-240-2-x86_64-linux.rpm | cpio -idmv

...

./usr/local/diamond/3.12/examples/examples.tar.gz

./usr/local/diamond/3.12/ispfpga

--&gt;&gt;./usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz &lt;&lt;------THIS IS THE TAR FILE YOU WILL NEED

./usr/local/diamond/3.12/license

./usr/local/diamond/3.12/license/license.txt

...

----------


5. List the contents of the tarfile ispfpga.tar.gz looking for the lmgrd lmutil and lattice daemons

tar -tvf ./usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz | egrep -i '/lmutil|/lmgrd|/lattice'

-rwxr-xr-x relman/neosoft 1351888 2019-10-30 02:05 bin/lin64/lattice

-rwxr-xr-x relman/neosoft 1170840 2019-07-08 23:06 bin/lin64/lmgrd

-rwxr-xr-x relman/neosoft 1138392 2019-07-08 23:06 bin/lin64/lmutil

----------


6. Extract the the lmgrd lmutil and lattice daemons from the tarfile

tar -xvf ./usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz bin/lin64/lattice

tar -xvf ./usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz bin/lin64/lmgrd

tar -xvf ./usr/local/diamond/3.12/ispfpga/ispfpga.tar.gz bin/lin64/lmutil

----------

copy the files to nas storage dir for the license server to use

cp -R /tmp/lattice/bin /nas/storage/lattice/

cd /nas/storage/lattice/bin/lin64/

Verify the files are correct for the Linux OS you are using

file lattice

lattice: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

./lattice -v

11:15:47 (lattice) FlexNet Licensing version v11.16.4.0 build 252457 x64_lsb

./lmgrd -v

lmgrd v11.16.4.0 build 252457 x64_lsb - Copyright (c) 1988-2019 Flexera. All Rights Reserved.

./lmutil -v

Copyright (c) 1989-2019 Flexera. All Rights Reserved.

lmutil v11.16.4.0 build 252457 x64_lsb

----------

 

7. on the Linux server, start the license service

start server: /nas/storage/lattice/bin/lin64/lmgrd -c /nas/storage/lattice/license.dat -l /nas/storage/lattice/licence.log

stop server: /nas/storage/lattice/bin/lin64/lmutil lmdown -c /nas/storage/lattice/license.dat

query server: /nas/storage/lattice/bin/lin64/lmutil lmstat -c /nas/storage/lattice/license.dat

check service: ps fuxwa | egrep -i 'lmgrd|lattice' | egrep -v grep

ps fuxwa | egrep -i 'lmgrd|lattice' | egrep -v grep

----------


8. query the lattice server showing ALL the licenses available and usage:

/nas/storage/lattice/bin/lin64/lmutil lmstat -a -c /nas/storage/lattice/license.dat</install_path></install_path>