Beginner to openamp, how to compile the echo examples (linux application + remote)

836 views
Skip to first unread message

waqar rashid

unread,
Aug 27, 2019, 1:23:36 AM8/27/19
to open-amp
Hello everyone,

I am new to openamp and am using RedPitaya board which is zynq-7000 based. I added the remoteproc to device tree and now its driver can be loaded using modprobe and I push remote firmware to CPU1 and start/stop it. Now I want to start developing my own application but for that I need to learn how to compile an example. I am looking into this repository https://github.com/OpenAMP/open-amp but I all the examples here are supposed to run on remote core. Does this repository contain any example that would be executed on Linux? I did compiled the libmetal and openamp libraries on RedPitaya.

I am sorry if my words are vague as I just started with openamp and the documentations are not much beginner friendly. I think I create the remote firmware for echo example but for verification I will need the linux application (userspace or userspace+kernelspace) which I can't seem to figure out. Let me know if you guys need more information as at this point I don't know what can be useful.

Cheers.
Waqar Rashid

Ed Mooring

unread,
Aug 28, 2019, 3:26:29 PM8/28/19
to open...@googlegroups.com
Hi,

The examples on GitHub do include Linux application source. For example,
apps/examples/echo/echo/rpmsg-ping.c is the Linux side of the echo
example, while rpmsg-echo.c is the code for the remote core.

Regards,

Ed M
> --
> You received this message because you are subscribed to the Google
> Groups "open-amp" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to open-amp+u...@googlegroups.com
> <mailto:open-amp+u...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/open-amp/d1f875c5-5072-4e8d-8ca1-62b01fe7b2c1%40googlegroups.com
> <https://groups.google.com/d/msgid/open-amp/d1f875c5-5072-4e8d-8ca1-62b01fe7b2c1%40googlegroups.com?utm_medium=email&utm_source=footer>.

Effort Engineering

unread,
Aug 28, 2019, 4:14:05 PM8/28/19
to open...@googlegroups.com
Thanks Ed,
I will check them out. I was just reading the intro comments block where it said that both are for remote processor.
I did manage to run some old open-amp example application on redpitaya. I create the remote using Xilinx SDK and the linux side comes from below:

After playing around with it a little more, plan to create some video tutorials for beginners.

Waqar Rashid

To unsubscribe from this group and stop receiving emails from it, send an email to open-amp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/open-amp/3f7e6d10-c22a-30d0-ae9e-6fb37c9296c8%40linaro.org.


--
Waqar Rashid

Ed Mooring

unread,
Aug 28, 2019, 4:15:37 PM8/28/19
to open...@googlegroups.com

Hi,


On 8/28/19 1:13 PM, Effort Engineering wrote:
Thanks Ed,
I will check them out. I was just reading the intro comments block where it said that both are for remote processor.
I did manage to run some old open-amp example application on redpitaya. I create the remote using Xilinx SDK and the linux side comes from below:

After playing around with it a little more, plan to create some video tutorials for beginners.

That would be pretty cool. Please update this list when you do.

Regards,

Ed M

waqar rashid

unread,
Aug 28, 2019, 10:45:55 PM8/28/19
to open-amp
Hello again everyone,

A quick question here again, so in order to use the libmetal+open-amp we will need to compile the same code in different ways for different OS (linux/freerots/baremetal)?

I can compile them in linux but compiling them using the baremetal method is a bit new to as I have always been doing that on Xilinx SDK. From the docs it doesn't look like we need to import any hardware, we just need a correct cmake toolchain file. Do we need to write our own file or the ones in the repo are good enough? I getting some errors that it can't find some xilinx header files so does that mean that we will have to include them somehow? I thought we would only need to run the Xilinx SDK setting scripts and it will find everything in the path but it doesn't. I also made an issue on github which contains some terminal output here https://github.com/OpenAMP/libmetal/issues/99

Cheers.
Waqar


On Wednesday, 28 August 2019 22:15:37 UTC+2, Ed Mooring wrote:

Hi,


On 8/28/19 1:13 PM, Effort Engineering wrote:
Thanks Ed,
I will check them out. I was just reading the intro comments block where it said that both are for remote processor.
I did manage to run some old open-amp example application on redpitaya. I create the remote using Xilinx SDK and the linux side comes from below:

After playing around with it a little more, plan to create some video tutorials for beginners.

That would be pretty cool. Please update this list when you do.

Regards,

Ed M


Waqar Rashid

To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.


--
Waqar Rashid
--
You received this message because you are subscribed to the Google Groups "open-amp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages