aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunyan Zhang <zhang.chunyan@linaro.org>2016-07-15 16:14:23 +0800
committerChunyan Zhang <zhang.chunyan@linaro.org>2016-07-15 16:14:23 +0800
commitd5ccbe9ce567f0bbe3ac908e402f95759df26482 (patch)
treeae9519f4ffd2f4cf4014ddda7aac4d95ce036e89
parent4b26b529017da424efc1d62eade1230583dd1808 (diff)
downloadsample-app-stm-mmap-sample.tar.gz
readme: added the explanation of how to create channel management policystm-mmap-sample
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
-rw-r--r--mmap-wrapper/readme15
1 files changed, 13 insertions, 2 deletions
diff --git a/mmap-wrapper/readme b/mmap-wrapper/readme
index b3d111e..74d492a 100644
--- a/mmap-wrapper/readme
+++ b/mmap-wrapper/readme
@@ -4,14 +4,25 @@ Before compiling the program, you must change the items below accroding to your
- 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
+/ # mount -t configfs none /config
+
Create policy directory for STM:
-mkdir /config/stp-policy/10006000.stm.abc
+/ # mkdir /config/stp-policy/10006000.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 10006000.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
+/ # echo 32768 65535 > /config/stp-policy/20100000.stm.abc/test/channels
+
+'chan_start' (here is 32768) must be same with the corresponding value in example.c
+
+