What is peta linux

PetaLinux

This page provides information specific to the installation, use or customization of Xilinx PetaLinux which is available under a no-charge license. Xilinx provides customer support for PetaLinux in the same manner as we support other tools, through our Service Request system and via our Forums.

Table of Contents

PetaLinux Tools Overview

  • FSBL
  • U-BOOT
  • ARM Trusted Firmware
  • Linux
  • Libraries and applications
  • Xen Hypervisor

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

Getting Started with PetaLinux and Vivado

The PetaLinux Tools Documentation: Workflow Tutorial page provides an overview of the Xilinx design tool flow with Vivado and PetaLinux.

PetaLinux Board Support Packages

Board support packages that are included within each release of PetaLinux can be found on the release download page listed under the Petalinux tab.

PetaLinux Installation

Refer to PetaLinux Tools Documentation: Reference Guide (UG1144) «PetaLinux Tools Installation Requirements» for the installation details.

PetaLinux Documentation, Answer Records and Tips

Documentation

  • UG1144: PetaLinux Tools Documentation is the primary source for PetaLinux usage and reference information.
  • The Embedded Design Hub for PetaLinux Tools provides links to other sources of information, including training and tutorials.

Answer Records

Wiki Pages

Xilinx PetaLinux Support

Community Support

All users of PetaLinux are encouraged to review information provided from our public forums, documents and answer records.

  • Xilinx Embedded Linux Forum covers a number of Linux-related topics including PetaLinux
  • Xilinx document and answer record search page

Источник

PetaLinux Tools

embedded-stack

With these tools developers can customize the boot loader, Linux kernel, or Linux applications. They can add new kernels, device drivers, applications, libraries, and boot and test software stacks on the included full system simulator (QEMU) or on physical hardware via network or JTAG.

Custom BSP Generation Tools

PetaLinux tools enable developers to synchronize the software platform with the hardware design as it gains new features and devices.

PetaLinux tools will automatically generate a custom, Linux Board Support Package including device drivers for AMD embedded processing IP cores, kernel and boot loader configurations. Such capability allows software engineers to focus on their value-added applications rather than low level development tasks.

Linux Configuration Tools

PetaLinux includes tools to customize the boot loader, Linux kernel, file system, libraries and system parameters.

These configuration tools are fully aware of AMD hardware development tools and custom-hardware-specific data files so that, for example, device drivers for AMD embedded IP cores will be automatically built and deployed according to the engineer-specified address of that device.

Software Development Tools

PetaLinux tools integrate development templates that allow software teams to create custom device drivers, applications, libraries and BSP configurations.

Читайте также:  Проверить nvme диск linux

Once the product’s software baseline (BSP, device drivers, core applications, etc.) has been created, the PetaLinux tools enable developers to package and distribute all software components for easy installation and use across PetaLinux developers.

Reference Linux Distribution

PetaLinux provides a complete, reference Linux distribution that has been integrated and tested for AMD devices. The reference Linux distribution includes both binary and source Linux packages including:

  • Boot loader
  • CPU-optimized kernel
  • Linux applications & libraries
  • C & C++ application development
  • Debug
  • Thread and FPU support
  • Integrated web server for easy remote management of network and firmware configurations

Quick-start Linux Images

All PetaLinux Board Support Packages (BSP) include pre-configured boot loaders, system images and bitstream. Built-in tools allow a single command to deploy and boot these elements to either physical hardware, or to the included full QEMU system emulator.

With PetaLinux, developers can have their AMD-based hardware booted and running within about 5 minutes after installation; ready for application, library and driver development.

PetaLinux Tools and Linux Support and Resources

The PetaLinux Tools License is no longer required. Users can install and use PetaLinux tools to deploy royalty free OS images.

  • Use is defined by the EULA
  • Access to all PetaLinux BSPs and Reference Designs
  • Technical support of PetaLinux tools through WebCase (details below)
  • Additional support through AMD community forums and answer records.

Features supported by AMD Technical Support:

  • Support policy and resources for AMD embedded software is provided here: http://www.wiki.xilinx.com/Embedded+SW+Support
  • For system-level consulting and design services, please contact a AMD Alliance Member Partner

Board Support Packages (BSP) and Reference Examples

PetaLinux Board Support Packages (BSP) and Reference Examples include pre-built boot loaders, system images and bitstream. Built-in tools allow a single command to deploy and boot these elements to either physical hardware, or to the included full QEMU system emulator. With PetaLinux, developers can have their AMD-based hardware booted and running within about 5 minutes after installation; ready for application, library and driver development.

PetaLinux BSPs and Reference Examples are available from AMD and partners. Please visit the PetaLinux tools download page where we list the latest available PetaLinux BSPs.

Источник

PetaLinux

PetaLinux is a custom version of Linux designed for embedded Xilinx systems. PetaLinux is designed to work with the Zynq-7000, all programmables SOCs, MicroBlaze and PowerPC.

Compiling For PetaLinux

Programs can be written and cross-compiled for the PetaLinux platform in the Eclipse-based Xilinx SDK ( xsdk ).

By default, the Xilinx SDK installs itself on a Linux machine at /opt/Xilinx/SDK . The executable to run the Xilinx SDK is located at /opt/Xilinx/SDK//bin/ and then lin if running on a 32-bit machine, or lin64 if running on a 64-bit machine.

I added the line PATH=»$PATH:/opt/Xilinx/SDK/2013.4/bin/lin64″ to my ~/.bashrc file, so that I could run the IDE by just typing sudo xsdk . Note the sudo, this is important for the IDE to run correctly. Running sudo can corrupt the path, and so I added the line alias sudo=’sudo env PATH=$PATH’ to my ~/.bashrc file.

I had errors when trying to run xsdk for the first time. I believe this was due to me trying to run it on Ubuntu (Debian package manager) when it had been designed for Red Hat (RPM package manager) systems. I fixed these by updating a file in the Xilinx folder from my system library folder.

Читайте также:  Свой vds linux хостинг

Incremental Build Bug

I have experienced a bug with the incremental bug system when programming with C++ in the xsdk , which cause the compiled program to do weird things such a segmentation faults. After much debugging, I discovered that the constructors of classes created on the stack where not being called, which then caused memory errors (like the segmentation fault) when trying to access members of these non-created/non-initialised variables.

The only way to fix this (and why I guess it is a problem with the incremental build system), is to do a clean and then build.

Источник

My Embedded Linux Adventure – Intro to PetaLinux

This installment of the Embedded Linux Adventure has come a bit later than I would have liked. However in the meantime, I have traversed quite a bit of new material regarding embedded Linux development. A significant portion of this time has been dedicated to exploring the PetaLinux tools and design flow needed for building and deploying custom embedded Linux (EL) solutions onto Xilinx hardware. This post will primarily be a short instruction set to get you started with PetaLinux and introduce you to some of the documentation that is available. So let’s start first by addressing the big question: What is PetaLinux?

blog

The short answer is that PetaLinux is a set of software tools that allows for streamlined embedded Linux development. The long answer is that the name PetaLinux actually refers to an individual software package, however it is not a standalone embedded Linux development solution. The workflow for PetaLinux consists of multiple stages in which it relies on other Xilinx software like Vivado and Xilinx SDK.

Browsing the Xilinx documentation for PetaLinux (of which there is a lot, see the links at the end) reveals a few important things. For instance, while Xilinx provides tool for multiple operating systems, the PetaLinux tools are designed for Linux usage only. Specific Linux-supported distros include Red Hat Enterprise (6.6, 6.7, 7.1, 7.2), CentOS (7.1), SUSE (12), and Ubuntu 14.04.

All the typical expectations of required system specifications are mentioned (decent processor ~2GHz, 4GB RAM), however one thing I need to mention is available storage space. You will need a lot. The minimum recommended space is 20GB free, but I used nearly twice that when developing an embedded Linux build for the Zybo my first time around (side note, if your interested in getting started with embedded Linux on the Zybo check out this Instructable to get started)!

As far as storage goes, your experience may be different but just prepare for massive usage. The last thing you want is to be nearly done with your project and run into road blocks due to a lack of storage space.

Now that we have the introduction out of the way, let’s talk about getting started with PetaLinux and embedded Linux development.

PLpost1.1

Getting started with PetaLinux is fairly straightforward, though it involves a lot of download and install time. Assuming you already have a version of Vivado and SDK installed (if not, get them here), you will need to download the PetaLinux installer of the same version number. The download is over 5GB (between the installer and the final download), so start it, and then go make a sandwich and watch a couple episodes of a show you like; unless you have a blazing fast connection, it will take a while.

Читайте также:  Linux mint удалить репозиторий

The directory you install it into is not of tremendous consequence. Just cd into the directory the installer is located and run petalinux-v20XX.X-final-installer.run (the Xs are whatever version number you downloaded), indicating the directory you wish to install it into.

PLpost6.1

PetaLinux uses the same licensing tools as other Xilinx software, so if you already have your other tools licensed then you should not have any issues. If you do, there are additional resources for that. Once the install is complete, you will need to download a few other development libraries, including some 32-bit compatible libraries (even if you already have the 64 bit versions of the same), since some parts of the toolchain are 32-bit executables.

A complete table of all the additional downloads is provided in the PetaLinux Reference Guide (UG1144) on page 10 (also linked at the end of the post). I am leaving the whole thing out since it is quite long, but here is a screenshot of what I installed in line.

PLpost10.1

Once all the installs have been completed, you can set up your tools and create a PetaLinux project directory. The required shell for running PetaLinux is ‘Bash.’ If you have it installed but it is not your default terminal, you can run ‘sudo dpkg-reconfigure dash’ and select ‘No’ when asked if you would like to use Dash as your default shell. Subsequently, you will need to source the PetaLinux, and possibly the Vivado tool settings within the terminal environment you are using. You can do this by typing in the two following commands:

Alternatively, you can add the two commands to the .bashrc file, which will run those commands and make the tool settings available to you any time you open a new terminal. The screenshots below show the modifications I made.

PLpost8.1

Once this is done, change to the directory you want to create your project in and run the command shown in the screenshot below.

PLpost9.1

For specific options, –type should just be project, –template will depend on the platform you are targeting (i.e. a Microblaze design, a Zynq chip or Zynq UltraScale), and the –-name will be whatever you want to call it.

So, now we have installed PetaLinux and created a directory in which we can develop our embedded Linux project. In the next post I will go over the steps of configuring and building a project from a board support package (BSP), and adding a custom application into your Linux image.

Here are some additional links to PetaLinux support materials!

The above can be reproduced on the Genesys ZU, Arty Z7, Cora Z7, Eclypse Z7, and Zybo Z7. Check out my full PetaLinux Instructable for more information and getting started tips!

Источник

Оцените статью
Adblock
detector