#!/bin/sh - # Voodoo to load a new bitstream image into the FPGA on a Novena PVT-1. if test $# -ne 1 || test ! -f "$1" then echo 1>&2 "usage: $0 bitstream-file" exit 1 fi echo "Setting export of reset pin" echo 135 > /sys/class/gpio/export echo "Setting reset pin to out" echo out > /sys/class/gpio/gpio135/direction echo "Flipping reset" echo 0 > /sys/class/gpio/gpio135/value echo 1 > /sys/class/gpio/gpio135/value echo "Configuring FPGA from $1" dd if="$1" of=/dev/spidev2.0 bs=32 echo "Turning on clock to FPGA" eim_peek_poke --write 0x020c8160 0x00000d2b itle='sw/stm32' href='/sw/stm32/'>sw/stm32
Cryptech HSM on STM-32 ARM processorgit repositories
aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/Makefile
blob: 1f7faf12edbb1072bdd7a0e0d35d634210110f7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49