07-25-2021 01:59 AM - edited 07-25-2021 04:46 AM
I wrote a program that sends packets between the board and the pc.
And it has several libraries and several C-code files.
What exactly should I do so that I do not get an error when building a project!
I followed this tutorial :
but when I use this command
Petalinux-create -t apps --template install --name myapp --enable
The makefile file is deleted and I only have this file:
echo "Hello PetaLinux World"
Does anyone have a more up-to-date reference?
07-25-2021 06:40 AM
You are using the install template. Is this what you want? Are you trying to install prebuilt libraries and binaries into your roots. Are these cross compiled to execute on your target device?
07-25-2021 02:36 PM
07-25-2021 11:19 PM
I have a custom board
And two files I want to add to petalinux (apps section in petalinux)
Similar to the lwip echo server program but with a slight change
And has a library and so on
Now my problem is attaching these two files to petalinux apps with libraries, and how to change the makefile!
The error I encounter:
Here are two programs I would like to add to Petalinux apps:
Thank you for your help
07-26-2021 04:53 AM - edited 07-26-2021 05:02 AM
Looks like you are trying to compile a baremeral application in linux. This will not work.
If you are just looking to send packets in an app, then you can just use a simple socket/client c code. There are plenty of examples online.
For testing, you can use the blog here
07-27-2021 12:19 AM - edited 07-27-2021 12:21 AM
Another question @stephenm
Can I run this simple socket / client code without using the SDK/Vitis?
If yes, how can I define libraries for petalinux ?
My main question is whether it is possible to run code with multiple libraries and resources without using SDK/Vitis in petalinux?
Do i need a BSP to define libraries, and what is a BSP for?
Sorry, I new in petalinux.
And now I'm very confused.