Installation
Revision 5 11
3.9 Step 9—Configure Linux to Detect and Use
FlashPro5 Programmer Hardware
If you want a regular user (without root permission) to program the Flash based FPGA devices with
FlashPro5 hardware, you must run the udev_install script on the Linux machine as root. The udev_install
script helps you set up a udev rule file for the FLashPro5 hardware.
This udev rule authorizes the Linux user group (that you specify during execution of udev_install script) to
access the FlashPro5 hardware without sudo or root permission.
1. At the prompt, type su -.
2. Change directory to the <caeadmin> HOME directory: cd /home/<caeadmin>.
3. Execute the udev_install script with the following option: ./udev_install -t /tmp.
4. The previous command generates a template file called "70-microsemi.rules" in the /tmp directory.
5. Modify the template file to match your group ID of the user "john" connecting the FlashPro5
hardware (assuming the user "john" will attach the FlashPro5 hardware):
a. Open a terminal and run the command id as user john. The output should be similar to the
following text: uid=500(john) gid=500(john)….
b. Return to your terminal with root access. Open the "70-microsemi.rules" in an ASCII editor.
c. Replace the "" with your current group ID # in the following two lines:
BUS=="usb",SYSFS{idProduct}=="2008",SYSFS{idVen-
dor}=="1514",MODE="0660",GROUP="",SYMLINK+="FlashPro5"
BUS=="usb",SYSFS{idProduct}=="6001",SYSFS{idVen-
dor}=="0403",MODE="0660",GROUP="",SYMLINK+="FTDI232"
Assuming the user john has "uid=500" and "gid=500", the line after editing should look like this:
BUS=="usb",SYSFS{idProduct}=="2008",SYSFS{idVendor}=="1514",MODE="0660"\
,GROUP="500",SYMLINK+="FlashPro5"
BUS=="usb",SYSFS{idProduct}=="6001",SYSFS{idVendor}=="0403",MODE="0660"\
,GROUP="500",SYMLINK+="FTDI232"
6. Move the "70-microsemi.rules" file to the proper location:
mv /tmp/70-microsemi.rules /etc/udev/rules.d/
3.10 Step 10—Create flexlm Initialization Script
(Optional)
The Linux boot process allows services to be started with the help of startup scripts. The flexm script
automatically launches the licensing server during the boot process and also properly shuts down the
license daemon when the license server machine shuts down. This script eliminates the need to
manually restart the licensing server after the license server Linux machine reboots.
1. Open a new terminal window by selecting Applications > System Tools > Terminal.
2. At the prompt, type:
su -
cd /etc/init.d
3. Start an editor with a new file flexlm.
4. Paste the following content into the editor:
#!/bin/bash
#
# flexlm This starts and stops flexlm
#
# description: Start or stop the flexlm license manager + vendor daemons
#
# Return values according to LSB for all commands:
# 0 - success
# 1 - generic or unspecified error