diff options
| author | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-07-24 22:39:56 +0200 |
|---|---|---|
| committer | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-08-23 11:03:54 +0200 |
| commit | 455934c15968eb8c937d2314f2d62c7db25350e9 (patch) | |
| tree | dcd0b4f076d1aa5c81772e3a6cd6f8a60b27289c | |
| parent | 28762038681c9158829c7586d6564446ef667c11 (diff) | |
| download | meta-enea-bsp-arm-sumo.tar.gz | |
README updatesumo
Add zynq-zcu102 related information.
Change-Id: I73df5ea663537468e83fea93d4268f37f6a555e1
Signed-off-by: Adrian Mangeac <Adrian.Mangeac@enea.com>
| -rw-r--r-- | README | 78 |
1 files changed, 76 insertions, 2 deletions
| @@ -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 | |||
| 19 | Source code | 23 | Source code |
| 20 | =========== | 24 | =========== |
| 21 | 25 | ||
| @@ -53,8 +57,9 @@ other layers needed. This is dependent on the Yocto machine you | |||
| 53 | need to build for: | 57 | need to build for: |
| 54 | 58 | ||
| 55 | ------------------------------------------- | 59 | ------------------------------------------- |
| 60 | Raspberry 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 | |
| 72 | Zynq 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 | ||
| 68 | II. Misc | 86 | II. Misc |
| 69 | ======== | 87 | ======== |
| 88 | |||
| 89 | R5 management for Zynq UltraScale+ MPSoC | ||
| 90 | ---------------------------------------- | ||
| 91 | The bsp provides the necessary kernel configuration and builtin modules | ||
| 92 | required for R5 cores management (for more information see | ||
| 93 | https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/118358017/OpenAMP+2019.1). | ||
| 94 | The following file can be downloaded and used for demo purpose: | ||
| 95 | http://linux.enea.com/EneaLinux8.0/Xilinx-utils/r5-test.tar.bz2 | ||
| 96 | |||
| 97 | Below is an example of managing an R5 core using the sysfs interface | ||
| 98 | |||
| 99 | root@zcu102-zynqmp:~# cd /sys/class/remoteproc/ | ||
| 100 | root@zcu102-zynqmp:/sys/class/remoteproc# ls -al | ||
| 101 | drwxr-xr-x 2 root root 0 Jul 5 14:40 . | ||
| 102 | drwxr-xr-x 59 root root 0 Jul 5 14:40 .. | ||
| 103 | lrwxrwxrwx 1 root root 0 Jul 5 14:40 remoteproc0 -> ../../devices/platform/amba/ff9a0100.zynqmp_r5_rproc/remoteproc/remoteproc0 | ||
| 104 | lrwxrwxrwx 1 root root 0 Jul 5 14:40 remoteproc1 -> ../../devices/platform/amba/ff9a0200.zynqmp_r5_rproc/remoteproc/remoteproc1 | ||
| 105 | root@zcu102-zynqmp:/sys/class/remoteproc# cd remoteproc0 | ||
| 106 | root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# ls -al | ||
| 107 | drwxr-xr-x 3 root root 0 Jul 5 14:40 . | ||
| 108 | drwxr-xr-x 3 root root 0 Jul 5 14:40 .. | ||
| 109 | lrwxrwxrwx 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 | ||
| 111 | drwxr-xr-x 2 root root 0 Jul 24 19:54 power | ||
| 112 | -rw-r--r-- 1 root root 4096 Jul 24 19:54 state | ||
| 113 | lrwxrwxrwx 1 root root 0 Jul 5 14:40 subsystem -> ../../../../../../class/remoteproc | ||
| 114 | -rw-r--r-- 1 root root 4096 Jul 5 14:40 uevent | ||
| 115 | root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# cat state | ||
| 116 | offline | ||
| 117 | root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# echo zeda.elf > firmware | ||
| 118 | root@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 | ||
| 122 | TCM. | ||
| 123 | Starting application... | ||
| 124 | Initialize remoteproc successfully. | ||
| 125 | creating remot[e 1o7.898t54 | ||
| 126 | virtioirptiglbzi vg tios: spmsgdhout es pnoln | ||
| 127 | nitializing rpmsg vdev | ||
| 128 | initializing rpmsg vdev | ||
| 129 | Initializating I/Os redirection... | ||
| 130 | Failed to intialize rpmsg rpc | ||
| 131 | Stopping | ||
| 132 | application... | ||
| 133 | [ | ||
| 134 | 147.922008] remoteproc remoteproc0: registered virtio0 (type 7) | ||
| 135 | [ 147.927935] remoteproc remoteproc0: remote processor | ||
| 136 | ff9a0100.zynqmp_r5_rproc is now up | ||
| 137 | root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# cat state | ||
| 138 | running | ||
| 139 | root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# echo stop > state | ||
| 140 | [ 166.982192] remoteproc remoteproc0: stopped remote processor | ||
| 141 | ff9a0100.zynqmp_r5_rproc | ||
| 142 | root@zcu102-zynqmp:/sys/class/remoteproc/remoteproc0# cat state | ||
| 143 | offline | ||
