Questions tagged [petalinux]

Petalinux is a Linux distribution targeting the Xilinx systems. USAGE GUIDANCE : The tag should only be used for the Petalinux distribution

Petalinux is a distribution targeting the systems.

Overview

The PetaLinux Software Development Kit (SDK) is a Xilinx development tool that contains everything necessary to build, develop, test and deploy Embedded Linux systems.

PetaLinux consists of three key elements: pre-configured binary bootable images, fully customizable Linux for the Xilinx device, and PetaLinux SDK which includes tools and utilities to automate complex tasks across configuration, build, and deployment.

Xilinx home page for PetaLinux SDK can be found at http://www.xilinx.com/petalinux

See here for further information (e.g., licensing).

109 questions
1
vote
1 answer

Socket send works only sometimes in infinite loop (C)

I'm setting up a prototype for a DAQ system for Zynq FPGAs. I receive data from a server through ethernet, write it to a FIFO using the DMA and viceversa using two different pthreads. However, the send operation hangs, and after some iterations, it…
1
vote
0 answers

Adding arm64-specific Kernel-headers to Linux to flush the cache

I am trying to compile a linux module, which is supposed to run on a arm-64-bit architecture (Cortex-A53). Part of the functionality is to flush the cache at some point, which worked previously on a arm-32-bit architecture. How can I build the…
1
vote
1 answer

Linux device tree: how to parse property containing a list of cells

I am developing a Linux device driver for data acquisition in an embedded Linux (PetaLinux). To avoid hardcoding hardware specifics in the kernel module one of the entries in device tree has a list of cells that describe mappings of relays accessed…
1
vote
1 answer

How can I use Valgrind to determine the source of "still-available" memory leak?

I have a program I wrote whose memory footprint grows over time. It eventually consumes all of the available system memory and then crashes the system. I am trying to determine the source of what seems like a memory leak. I have run Valgrind on the…
1
vote
2 answers

How to setup a machine as a mirror server for Yocto when fetching packages?

When building a project with Petalinux (a type of Yocto), it needs Internet for fetching packages from server (git serve or others). My working machine does not have permission for accessing Internet (just only have LAN), so I have a plan to set up…
Micheal XIV
  • 495
  • 1
  • 5
  • 8
1
vote
1 answer

Undefined references to precompiled opencv 2.4

I'm trying to build a cpp app which uses opencv libs which I've compiled myself. This is my Makefile: APP = appname APP_OBJS = appname.o OPENCV_DIR = /{path}/project-spec/meta-user/recipes-apps/opencv-vs/files OPENCV_LIBS = -lopencv_core…
William
  • 31
  • 1
1
vote
1 answer

"File format not recognized" when building Petalinux app

I am using Petalinux 2017.2 and the included tools to build a Linux image for a Zynq ZC702 board. I am trying to add a pre-compiled executable to my rootfs with a bitbake recipe. SUMMARY = "Demo on ARM-Linux" SECTION = "PETALINUX/apps" LICENSE =…
superb owl
  • 185
  • 2
  • 13
1
vote
1 answer

mapping a memory region from kernel

I have a register which needs to be accessed from more then one driver. It is a global read-only register resides in FPGA space The register address is exported via device tree. The first call to "request_mem_region" is ok, but any consecutive…
1
vote
1 answer

How to add lwip library in Xilinx SDK for linux Plattform

Well, my question is to ask how can i add the lwip library to the tool Xilinx SDK to use it in Embedded linux environment. I tried a lot but always debug problems are there. I added this library for example lwip-2.0.2 from the link…
Abdulkarim
  • 15
  • 6
1
vote
1 answer

How do I increase the Heap Size for FreeRTOS in Zynq702 SoC?

I am using Zynq 702 SoC. It has 2 CPU's. CPU0 is loaded with Petalinux and Cpu1 with FreeRtos and my FreeRtos current heap Size is 6MB. The actual size of the RAM is 1GB, in this 512MB being set in the Petalinux Kernel and rest is not used and want…
1
vote
1 answer

I2C IOCTL Write Failure

Hey I am trying to write a user space application to move some data to an I2C for an embedded system running PetaLinux, an operating system for embedded Linux, although I do not think that is what is affecting the issue. I am getting a Connection…
John Frye
  • 255
  • 6
  • 22
1
vote
1 answer

Issues cross compile opencv 2.4.11 for ARM on x86_64 host

I've been trying to cross compile opencv for an ARM target system. My project is dependent to use opencv 2.4.11. The target system is a petalinux 2017.2 running on a quad-core Cortex A53 of a Zynq Ultrascale+ FPGA. My host system is an Ubuntu 16.04…
1
vote
1 answer

How to build when multiple source files in rootfs in embedded linux?

I have a simple c application Ctest.c file #include #include "new.h" #include "new.c" int main() { switching(); return 0; } and i have those new.c and new.h files. new.h file as void switching(); and my new.c file as void…
jenny
  • 500
  • 7
  • 22
1
vote
1 answer

Yocto u-boot Custom Commands

What is the correct way of adding custom commands to u-boot in a Yocto setup (currently using Petalinux 2016.4 by Xilinx)? Should I add the relevant source files to the u-boot source through a recipe/patch, to be included in the compilation of…
gavenant
  • 453
  • 7
  • 26
0
votes
0 answers

Creating a reserved memory region in Petalinux/Yocto?

I am following a confluence page written by Xilinx to create a reserved memory region for DMA access. Confluence is here https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841683/Linux+Reserved+Memory I declared it in the device tree…