summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Mangeac <Adrian.Mangeac@enea.com>2019-07-24 22:39:56 +0200
committerAdrian Mangeac <Adrian.Mangeac@enea.com>2019-08-23 11:03:54 +0200
commit455934c15968eb8c937d2314f2d62c7db25350e9 (patch)
treedcd0b4f076d1aa5c81772e3a6cd6f8a60b27289c
parent28762038681c9158829c7586d6564446ef667c11 (diff)
downloadmeta-enea-bsp-arm-455934c15968eb8c937d2314f2d62c7db25350e9.tar.gz
README updatesumo
Add zynq-zcu102 related information. Change-Id: I73df5ea663537468e83fea93d4268f37f6a555e1 Signed-off-by: Adrian Mangeac <Adrian.Mangeac@enea.com>
-rw-r--r--README78
1 files changed, 76 insertions, 2 deletions
diff --git a/README b/README
index 26cdde9..39ef43b 100644
--- a/README
+++ b/README
@@ -16,6 +16,10 @@ This layer depends on:
16 branch: pyro 16 branch: pyro
17 revision: HEAD 17 revision: HEAD
18 18
19 URI: https://github.com/Xilinx/meta-xilinx
20 branch: thud
21 revision: HEAD
22
19Source code 23Source code
20=========== 24===========
21 25
@@ -53,8 +57,9 @@ other layers needed. This is dependent on the Yocto machine you
53need to build for: 57need to build for:
54 58
55 ------------------------------------------- 59 -------------------------------------------
60Raspberry Pi 3
56 local.conf 61 local.conf
57 MACHINE = "raspberrypi3-64 62 MACHINE = "raspberrypi3-64"
58 63
59 bblayers.conf 64 bblayers.conf
60 BBLAYERS ?= " \ 65 BBLAYERS ?= " \
@@ -63,7 +68,76 @@ need to build for:
63 /path/to/yocto/meta-enea-bsp-common \ 68 /path/to/yocto/meta-enea-bsp-common \
64 /path/to/yocto/meta-raspberrypi \ 69 /path/to/yocto/meta-raspberrypi \
65 " 70 "
66 ------------------------------------------- 71
72Zynq UltraScale+ MPSoC
73 local.conf
74 MACHINE = "zcu102-zynqmp"
75
76 bblayers.conf
77 BBLAYERS ?= " \
78 /path/to/yocto/meta \
79 /path/to/yocto/meta-poky \
80 /path/to/yocto/meta-enea-bsp-common \
81 /path/to/yocto/meta-xilinx/meta-xilinx-bsp \
82 "
83
84 -------------------------------------------
67 85
68II. Misc 86II. Misc
69======== 87========
88
89R5 management for Zynq UltraScale+ MPSoC
90----------------------------------------
91The bsp provides the necessary kernel configuration and builtin modules
92required for R5 cores management (for more information see
93https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/118358017/OpenAMP+2019.1).
94The following file can be downloaded and used for demo purpose:
95http://linux.enea.com/EneaLinux8.0/Xilinx-utils/r5-test.tar.bz2
96
97Below is an example of managing an R5 core using the sysfs interface
98
99root@zcu102-zynqmp:~# cd /sys/class/remoteproc/
100root@zcu102-zynqmp:/sys/class/remoteproc# ls -al
101drwxr-xr-x 2 root root 0 Jul 5 14:40 .
102drwxr-xr-x 59 root root 0 Jul 5 14:40 ..
103lrwxrwxrwx 1 root root 0 Jul 5 14:40 remoteproc0 -> ../../devices/platform/amba/ff9a0100.zynqmp_r5_rproc/remoteproc/remoteproc0
104lrwxrwxrwx 1 root root 0 Jul 5 14:40 remoteproc1 -> ../../devices/platform/amba/ff9a0200.zynqmp_r5_rproc/remoteproc/remoteproc1
105root@zcu102-zynqmp:/sys/class/remoteproc# cd remoteproc0
106root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# ls -al
107drwxr-xr-x 3 root root 0 Jul 5 14:40 .
108drwxr-xr-x 3 root root 0 Jul 5 14:40 ..
109lrwxrwxrwx 1 root root 0 Jul 24 19:54 device -> ../../../ff9a0100.zynqmp_r5_rproc
110-rw-r--r-- 1 root root 4096 Jul 24 19:54 firmware
111drwxr-xr-x 2 root root 0 Jul 24 19:54 power
112-rw-r--r-- 1 root root 4096 Jul 24 19:54 state
113lrwxrwxrwx 1 root root 0 Jul 5 14:40 subsystem -> ../../../../../../class/remoteproc
114-rw-r--r-- 1 root root 4096 Jul 5 14:40 uevent
115root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# cat state
116offline
117root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# echo zeda.elf > firmware
118root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# echo start > state
119[ 147.872230] remoteproc remoteproc0: powering up ff9a0100.zynqmp_r5_rproc
120[ 147.882575] remoteproc remoteproc0: Booting fw image zeda.elf, size 869820
121[ 147.890271] zynqmp_r5_remoteproc ff9a0100.zynqmp_r5_rproc: RPU boot from
122TCM.
123Starting application...
124 Initialize remoteproc successfully.
125creating remot[e 1o7.898t54
126virtioirptiglbzi vg tios: spmsgdhout es pnoln
127nitializing rpmsg vdev
128initializing rpmsg vdev
129Initializating I/Os redirection...
130 Failed to intialize rpmsg rpc
131 Stopping
132application...
133 [
134147.922008] remoteproc remoteproc0: registered virtio0 (type 7)
135[ 147.927935] remoteproc remoteproc0: remote processor
136ff9a0100.zynqmp_r5_rproc is now up
137root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# cat state
138running
139root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# echo stop > state
140[ 166.982192] remoteproc remoteproc0: stopped remote processor
141ff9a0100.zynqmp_r5_rproc
142root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# cat state
143offline