There are few example source code exist in meta-openamp repository
These examples are not using libopenamp or libmetal but, they are using
kernel device nodes (rpmsg device) to interact with RPU firmware.
Ideally any meta-* layer should contain only bitabake recipes or patch
files, but not actual source code.
I would like to move these source code examples under OpenAMP/open-amp
repository here: https://github.com/OpenAMP/open-amp
I have few questions regarding this:
1) Is it appropriate to move under open-amp/apps/examples/<new_dir> ( I
am open to suggestions for name of <new_dir>. I suggest host_example) or
please suggest new path where to move these files?
2) These demos uses "make" utility for compilation. However, open-amp
repo uses "CMAKE" utility to compile source code. Is it wise to remove
"Makefile" right away and add CMAKE support to compile source code? I am
trying to avoid backward compatibility issues here.
Author: Sergei Korneichuk <sergei.korneichuk(a)amd.com>
Date: 2022-09-21 (Wed, 21 Sep 2022)
zynqmp_r5: replace Xil_SetMPURegion with Xil_MemMap
The metal_machine_io_mem_map() used to call Xil_SetMPURegion directly
and could get into an infinite loop. Replace the faulty code in
metal_machine_io_mem_map() with Xil_MemMap() call and assert it succeeds.
Signed-off-by: Sergei Korneichuk <sergei.korneichuk(a)amd.com>