description:
tool generates *.bek file that contains bitstream encryption key for lattice ecp5
this file can be used to program encryption key to fpga by using lattice diamond programmer
prerequisites:
gcc
openssl devel
compilation:
make
usage:
run gen.sh for example settings
or run bekgen binary with required parameters
programming:
in diamond programmer set "access mode" to "advanced security keys programming"
set "operation" to "security program encryption key only"
press "load key...", choose your bek file, enter password
and so on
disclaimer:
tested only with diamond 3.14 and ecp5
no guarantees, use at your own risk