cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
7,657 Views
Registered: ‎09-28-2016

where can I find "image_echo_test" source code of bare metal?

Hi, all

    when I test the demo echo_test of BSP, I only find the binary file of bare metal , named "image_echo_test", where can I find "image_echo_test" source code of bare metal? I want to develop myself application of bare metal, so I need to refer to the "image_echo_test" source code.

 

    who can give me some hints, Thank you very much

 

 

Tom

0 Kudos
7 Replies
Highlighted
Xilinx Employee
Xilinx Employee
7,636 Views
Registered: ‎08-01-2008

check page number 19

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_1/ug1186-zynq-openamp-gsg.pdf
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Highlighted
Adventurer
Adventurer
7,628 Views
Registered: ‎09-28-2016

Hi, Balkrishan

Thanks for your reply.

I read page number 19 of this document, the contents is below:

 

Booting on Hardware
After a successful build, you can run the PetaLinux project on hardware. Follow these
procedures to boot OpenAMP on a board.
Setting Up the Board
1. Connect the board to your computer, and ensure that it is powered on.
2. Program the relevant bitstreams to the board. Ensure that it is using RTL v5.2; this must
be done separately from PetaLinux.
3. If the board is connected to a remote system, start the hw_server on the remote
system.
4. Open a console terminal and connect it to UART on the board.
Downloading the Images
1. Navigate to the PetaLinux directory:
cd <master_root>
2. Run the PetaLinux boot:
° Using a remote system:
petalinux-boot --jtag --kernel --hw_server-url <remote_system>
° Using a local system:
petalinux-boot --jtag --kernel
TIP: If you encounter any issues append –v to the above commands to see the textual output

 

maybe I am such stupid, I can't find any information about the source code of image_echo_test.

can you give me more detail information? Thanks!!!

0 Kudos
Highlighted
Observer
Observer
7,617 Views
Registered: ‎04-04-2016

You can refer to the OpenAMP Frameware from Github(https://github.com/OpenAMP/open-amp) ,and you can find the source code at apps\echo_test\system\generic\remote.

Hope it'll help.

0 Kudos
Highlighted
Adventurer
Adventurer
7,610 Views
Registered: ‎09-28-2016

Hi,jiandahao

Thanks for your reply,I have download the "open_amp_master" from Github(https://github.com/OpenAMP/open-amp) a few days ago, there are two echo_test.c file which located in open_amp_master/apps/echo_test/echo_test.c and open_amp_master/obsolete/apps/echo_test/system/linux/userspace/echo_test.c.I think open_amp_master/apps/echo_test/echo_test.c file is for bare metal.when I porting this file to xlinx SDK project, compiled it, there are some errors. I found the xlinx SDK open_amp library is not compatible to the open_amp_master/apps/echo_test/echo_test.c. they are not the same version. because some important function have different parameters.so I want to find out the source code of image_echo_test.

 

Thanks again for your help

 

Tom

0 Kudos
Highlighted
Adventurer
Adventurer
7,544 Views
Registered: ‎09-28-2016

Hi, all

 

who can help me, I am waiting on line!!!

0 Kudos
Highlighted
Visitor
Visitor
7,457 Views
Registered: ‎10-20-2016

The image_echo_test in petalinux bsp are pre-built image for you to try. The source code corresponding to those binaries is provided as templates in the Xilinx SDK when building a new application.
0 Kudos
Highlighted
Observer
Observer
2,054 Views
Registered: ‎05-14-2018

I had the same issue.

 

I think this is what you are looking for:

https://github.com/Xilinx/meta-openamp/tree/rel-v2018.2/recipes-openamp/rpmsg-examples