aboutsummaryrefslogtreecommitdiff
path: root/write-stm-device/readme
blob: 6bd7dd9fde7ca49ca27732b8801adbd35a841fe4 (plain)
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
Before compiling the program, you must change the items below accroding to your environment:

- 'CROSS_COMPILE' in Makefile
- STM device name in stm_user_api.h
- TMC device name in stm_user_api.h


And then you may need to mount configfs manually:
/ # mount -t configfs none /config


Create policy directory for STM:
/ # mkdir /config/stp-policy/20100000.stm.abc

NOTE: 
The STM directory name consists of the device name to which it applies and the actual policy name,
separated by a dot.
The device name (say 20100000.stm) have to be matched the name of STM device under /dev.
The suffix is a random string without any dot


Create policy:
/ # mkdir /config/stp-policy/20100000.stm.abc/test