09:18:08 INFO : Launching XSDB server: xsdb -n /opt/Xilinx/SDK/2015.4/scripts/xsdb/xsdb/xsdb-server.tcl09:18:09 INFO : XSDB server has started successfully.09:20:19 ERROR : (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_freertos823_xilinx_v1_0::generate : error copying "./src/outbyte.c": no such file or directory while executing"file copy -force "./src/outbyte.c" "../${standalone_version}/src/"" (procedure "::sw_freertos823_xilinx_v1_0::generate" line 246) invoked from within"::sw_freertos823_xilinx_v1_0::generate freertos823_xilinx"ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
09:20:19 ERROR : (XSDB Server)ERROR: [Hsi 55-1450] Error: running generate_bsp.
09:20:19 ERROR : Error generating bsp sources: Failed in generating sources09:22:53 ERROR : (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_freertos823_xilinx_v1_0::generate : error copying "./src/outbyte.c": no such file or directory while executing"file copy -force "./src/outbyte.c" "../${standalone_version}/src/"" (procedure "::sw_freertos823_xilinx_v1_0::generate" line 246) invoked from within"::sw_freertos823_xilinx_v1_0::generate freertos823_xilinx"
09:22:53 ERROR : (XSDB Server)ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()ERROR: [Hsi 55-1450] Error: running generate_bsp.
09:22:54 ERROR : Error generating bsp sources: Failed in generating sources09:22:58 ERROR : (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_freertos823_xilinx_v1_0::generate : error copying "./src/outbyte.c": no such file or directory while executing"file copy -force "./src/outbyte.c" "../${standalone_version}/src/"" (procedure "::sw_freertos823_xilinx_v1_0::generate" line 246) invoked from within"::sw_freertos823_xilinx_v1_0::generate freertos823_xilinx"ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
09:22:58 ERROR : (XSDB Server)ERROR: [Hsi 55-1450] Error: running generate_bsp.
09:22:58 ERROR : Error generating bsp sources: Failed in generating sources09:23:01 ERROR : (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_freertos823_xilinx_v1_0::generate : error copying "./src/outbyte.c": no such file or directory while executing"file copy -force "./src/outbyte.c" "../${standalone_version}/src/"" (procedure "::sw_freertos823_xilinx_v1_0::generate" line 246) invoked from within"::sw_freertos823_xilinx_v1_0::generate freertos823_xilinx"
09:23:01 ERROR : (XSDB Server)ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()ERROR: [Hsi 55-1450] Error: running generate_bsp.
09:23:01 ERROR : Error generating bsp sources: Failed in generating sources$>mkdir build
$>cd build
$> cmake ../ -DCMAKE_TOOLCHAIN_FILE=zynq7_generic -DWITH_OBSOLETE=on -DWITH_APPS=ON
$> make VERBOSE==1 DESTDIR=$(pwd) install
/usr/bin/cmake -H/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp -B/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build --check-build-system CMakeFiles/Makefile.cmake 0/usr/bin/cmake -E cmake_progress_start /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/CMakeFiles /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/CMakeFiles/progress.marksmake -f CMakeFiles/Makefile2 allmake[1]: Entering directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'make -f obsolete/system/generic/machine/zynq7/baremetal/CMakeFiles/baremetal.dir/build.make obsolete/system/generic/machine/zynq7/baremetal/CMakeFiles/baremetal.dir/dependmake[2]: Entering directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'cd /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/obsolete/system/generic/machine/zynq7/baremetal /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/obsolete/system/generic/machine/zynq7/baremetal /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/obsolete/system/generic/machine/zynq7/baremetal/CMakeFiles/baremetal.dir/DependInfo.cmake --color=make[2]: Leaving directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'make -f obsolete/system/generic/machine/zynq7/baremetal/CMakeFiles/baremetal.dir/build.make obsolete/system/generic/machine/zynq7/baremetal/CMakeFiles/baremetal.dir/buildmake[2]: Entering directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'make[2]: Nothing to be done for `obsolete/system/generic/machine/zynq7/baremetal/CMakeFiles/baremetal.dir/build'.make[2]: Leaving directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'/usr/bin/cmake -E cmake_progress_report /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/CMakeFiles 1[ 2%] Built target baremetalmake -f lib/CMakeFiles/open_amp-static.dir/build.make lib/CMakeFiles/open_amp-static.dir/dependmake[2]: Entering directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'cd /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/lib /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/lib/CMakeFiles/open_amp-static.dir/DependInfo.cmake --color=make[2]: Leaving directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'make -f lib/CMakeFiles/open_amp-static.dir/build.make lib/CMakeFiles/open_amp-static.dir/buildmake[2]: Entering directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'/usr/bin/cmake -E cmake_progress_report /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/CMakeFiles 18[ 5%] Building C object lib/CMakeFiles/open_amp-static.dir/common/hil.c.objcd /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build/lib && /opt/Xilinx/SDK/2015.4/gnu/aarch32/lin/gcc-arm-none-eabi/bin/arm-none-eabi-gcc -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Os -Wall -Wextra -g -I/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.libmetal/build/lib/include -I/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/obsolete/system/generic/machine/zynq7/baremetal -I/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib/include -o CMakeFiles/open_amp-static.dir/common/hil.c.obj -c /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib/common/hil.cIn file included from /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.libmetal/build/lib/include/metal/sys.h:108:0, from /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.libmetal/build/lib/include/metal/dma.h:47, from /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib/include/openamp/virtqueue.h:37, from /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib/include/openamp/virtio.h:34, from /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib/include/openamp/hil.h:45, from /home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/lib/common/hil.c:47:/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.libmetal/build/lib/include/metal/system/linux/sys.h:36:20: fatal error: syslog.h: No such file or directory #include <syslog.h> ^compilation terminated.make[2]: *** [lib/CMakeFiles/open_amp-static.dir/common/hil.c.obj] Error 1make[2]: Leaving directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'make[1]: *** [lib/CMakeFiles/open_amp-static.dir/all] Error 2make[1]: Leaving directory `/home/peach/Desktop/consoladated/sdrdc_xcomm/petalinux.openamp/build'make: *** [all] Error 2
From: open...@googlegroups.com [mailto:open...@googlegroups.com]
On Behalf Of Peach
Sent: Thursday, December 15, 2016 11:11 AM
To: open-amp
Subject: [open-amp] Zynq 7-series AMP Issues getting setup [Xilinx 2015.4]
I've read through the documentation about how to get setup and start making applications in an AMP configuration.
All of the documentation on the Xilinx website [ http://www.wiki.xilinx.com/OpenAMP+2015.4 ]
and it all talks about the R5 core, none of it mentions the A9 core at all, that was mostly easy to get around because the ug1186 goes into some detail about the setup for the A9.
The github repos for the libmetal and Open-AMP libraries is less straight forward however, as the Cmake files and other configurations mention only the R5.
I was able to build the libmetal library after messing with the Cmake file and installing a few extra packages, nothing major at all.
I have three questions at the point I am at right now.
Most importantly is
1) Is the A9 deprecated and no longer "officially supported" and favor is given to the R5 Ultra Scale Zynq's?
[Wendy] Zynq is still officially supported. There is Cmake toolchain file example zynq7_generic.cmake in the cmake/platforms directory.
However, you will need to add libmetal header files and libxil header files (those from standalone BSP include/ directory generated from Xilinx SDK) to your include search path, and libmetal.a and libxil.a to your library search path. Similar to the example shown in the README for R5.
[Wendy] Are you able to create freertos standalone app for Zedboard in 2015.4 XSDK? As it looks like the tool failed to generate the freertos source.
[Wendy]
If you are using 2015.4 tools, I would recommend you use the openamp library with the tools that is the (xilopenamp) The reason are:
* the latest OpenAMP tools uses libmetal and libxil for Zynq. Which is not supported by 2015.4 Xilinx tools.
* the xilinx openamp lib (xilopenamp in 2015.4) is based on this openamp upstream version: https://github.com/OpenAMP/open-amp/tree/for-kernel-3.17 . However, this upstream version will not work with the libxil.a from XSDK. That is if you use https://github.com/OpenAMP/open-amp/tree/for-kernel-3.17, you don’t rely on cmake, libmetal, libxil.a. but you cannot use it with libxil.a.
* options:
* keep using the 2015.4 XSDK, try to fix the FreeRTOS issue if you want to build FreeRTOS app. You can use Xilinx http://www.xilinx.com/support/service-portal.html to request support for the error you got with FreeRTOS generation.
* use the latest 2016.3 XSDK, with this version, you can try the example from the XSDK or you will be able to use the latest OpenAMP in upstream with it as the 2016.3 version has cmake and libmetal
* I haven’t tried this, but you can git clone latest libmetal, and open-amp, and then follow the steps to build OpenAMP for R5 (you will need to include the libmetal and libxil in your search path) for Zynq A9.
Baremetal Libmetal zynq cmake toolchain file example:
“
set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "")
set (MACHINE "zynq7" CACHE STRING "")
set (CROSS_PREFIX "arm-none-eabi-" CACHE STRING "")
#set (CMAKE_C_FLAGS "-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard" CACHE STRING "")
set (CMAKE_C_FLAGS "-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Wall -Werror -Wextra -Os -I/ws/jliang/sdk/2016.4/ps9_1_std_bsp/ps7_cortexa9_1/include" CACHE STRING "")
include (cross-generic-gcc)
“
Baremetal OpenAMP Zynq cmake toolchain file example:
“
set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "")
set (MACHINE "zynq7" CACHE STRING "")
set (CROSS_PREFIX "arm-none-eabi-" CACHE STRING "")
set (CMAKE_C_FLAGS "-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Os -I/ws/jliang/sdk/2016.4/ps9_1_std_bsp/ps7_cortexa9_1/include" CACHE STRING "")
include (cross_generic_gcc)
set (CMAKE_FIND_ROOT_PATH /ws/jliang/build/libmetal-zynq7-generic/lib /ws/jliang/sdk/2016.4/ps9_1_std_bsp/ps7_cortexa9_1/lib)
“
Best Regards,
Wendy
--
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.
To post to this group, send email to open...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
From: open...@googlegroups.com [mailto:open...@googlegroups.com]
On Behalf Of Peach
Sent: Thursday, December 15, 2016 12:19 PM
To: open-amp
Subject: Re: [open-amp] Zynq 7-series AMP Issues getting setup [Xilinx 2015.4]
So the github mainline is not compatible with 2015.4 , and if i wanted to try to build it i would have to use the libmetal and libxil header files from the 2016.3 XSDK, is that correct?
[Wendy] XSDK 2015.4 will not work with latest OpenAMP upstream.
2016.3 libxil and libmetal will work with latest OpenAMP upstream
I am able to create the freertos standalone hello world app in 2015.4
I have it set for ps7_coretexa9_1 and using freertos823_xilinx. both of those are correct? , the application builds with no errors at all.
[Wendy] Just from your errors, when it generate the app, it failed to generate the FreeRTOS lib resource, looks like there is some error in the code generation of the tool, you can use Xilinx support portal for this error.
I would like to get it working with the 2015.4 XSDK so that i can keep using it with the stable kernel and petalinux 2015.4 as well.
[Wendy] Although I haven’t tried, but I think petalinux 2015.4 is possible to work with 2016.3 OpenAMP example.
Is there anything special or extra files i need to download to use openamp on the XSDK or should it be included with the XSDK?
[Wendy] No extra files should be required, with XSDK, you should be able to build OpenAMP demo apps coming with XSDK if you follow the ug1186.
Best Regards,
Wendy
From: open...@googlegroups.com [mailto:open...@googlegroups.com]
On Behalf Of Peach
Sent: Thursday, December 15, 2016 2:16 PM
To: open-amp
Subject: Re: [open-amp] Zynq 7-series AMP Issues getting setup [Xilinx 2015.4]
Thank you, thats very good to know.
There is no other documentation on solutions for when baremetal open amp compiles but freertos based open amp doesnt?
That's too bad, thank you for the direction on where to go either way!
[Wendy] The Xilinx document ug1186 documents how to create OpenAMP baremetal demo application too.
I assume this means that i can just import the bsp from XSDK 2016 into petalinux 2015.4 and then build my project from there, correct?
[Wendy] You cannot import BSP from XSDK 2016 to petalinux 2015.4.
You should be able to use the PetaLInux Zedboard reference design to start with.
The UG is very helpful, except on how to generate that spefici bsp that contains all the demo apps that can be loaded into petalinux. I assumed those were available for download for the base zedboard and other dev boards but i could not find them. I then assumed
that they needed to be generated by a user in the XSDK, is this correct?
[Wendy] The PetaLinux reference designs are available from Xilinx download websites.
[Wendy] Best Regards,
Wendy