Zynq Petalinux: Unterschied zwischen den Versionen

Aus Nicki Wiki
Zur Navigation springen Zur Suche springen
Zeile 34: Zeile 34:


Export/Import Hardware Konfiguration (wenn noch nicht geschehen)
Export/Import Hardware Konfiguration (wenn noch nicht geschehen)
  Vivado ⇒ File ⇒ Export Hardware... ⇒ Petalinux root folder (/tools/petalinux/2019.2/)
  Vivado &rArr; File &rArr; Export Hardware... &rArr; Petalinux <PROJECT_NAME> folder (/tools/petalinux/2019.2/)


Hardware Konfiguration von Vivado übernhemen
Hardware Konfiguration von Vivado übernhemen

Version vom 4. August 2021, 16:56 Uhr

Part 1: Zynq Vivado project
Part 2: Zynq SDK
Part 3: Zynq Petalinux
Verwendetes Board Trenz TE0720.

Installation Petalinux

Download Petalinux 2019.1:

http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

Installation erfolgt im Verzeichnis /opt Besitzer des Ordners /opt/ anpassen:

sudo chown <owner>:<owner> /opt/

Installation benötigter Tools

sudo dpkg-reconfigure dash
  • "No" auswählen
sudo apt-get update
sudo apt-get install tofrodos iproute2 gawk make net-tools libncurses5-dev tftpd zlib1g:i386 libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential screen pax gzip python2.7 -y

Installation Petalinux (Note: do not start from shared folder, copy installer into home directory)

mkdir -p /opt/petalinux/2019.1
sudo chmod +x petalinux-v2019.1-final-installer.run
./petalinux-v2019.1-final-installer.run /opt/petalinux/2019.1

source enviroment

source /opt/petalinux/2019.1/settings.sh

Webtalk deaktivieren:

petalinux-util --webtalk off

Erstellen eines Projektes mit Vivado

Erstelle des Projekte

petalinux-create --type project --template <CPU_TYPE> --name <PROJECT_NAME>
  • <CPU_TYPE>: zynqMP, zynq, microblaze
  • <PROJECT_NAME>:The name of the project you are building

Export/Import Hardware Konfiguration (wenn noch nicht geschehen)

Vivado ⇒ File ⇒ Export Hardware... ⇒ Petalinux <PROJECT_NAME> folder (/tools/petalinux/2019.2/)

Hardware Konfiguration von Vivado übernhemen

cd <PROJECT_NAME>
petalinux-config --get-hw-description

Konfiguration PetaLinux (Optional):

petalinux-config
petalinux-config -c u-boot
petalinux-config -c kernel
petalinux-config -c rootfs

Build System Image

petalinux-build

Erhaltene Dateien unter /tools/petalinux/2019.2/images/linux:

u-boot.elf
image.ub