[SOLVED] Diamond crashes when FTDI based serial interface exists on a Lattice starter kit
Page 20 of the May 2017 “Lattice Diamond 3.9 Installation Notice for Linux” document describes how to manually configure udev for the FTDI-based serial driver but naming the udev rule as explained in that document does not work. Below are instructions that work.
- Find your username which is given in /etc/group file. Log out if required. For example :
username:x:1000:
-
Create a working file called 51-lattice.rules.
-
Add the following information to the 51-lattice.rules file:
# Lattice - from Lattice Diamond 3.9 Installation Notice for Linux p.20 and https://github.com/jandob/lattice-diamond-archlinux showing a higher number used for the .rules file
SUBSYSTEM=="usb",ACTION=="add",ATTRS{idVendor}=="1134",ATTRS{idProduct}=="8001",MODE="0660",GROUP="username:x:1000:",SYMLINK+="lattice-%n"
# FTDI
SUBSYSTEM=="usb",ACTION=="add",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0666",GROUP="username:x:1000:",SYMLINK+="ftdi-%n"
SUBSYSTEM=="usb",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",RUN+="/bin/sh -c 'basename %p > /sys/bus/usb/drivers/ftdi_sio/unbind'"