[go: up one dir, main page]

0% found this document useful (0 votes)
10 views2 pages

Petalinux Own

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Petalinux Own

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Petalinux project build Document

After instaling petalinux


Change to Dash
then we need to change the configuration to bash
$sudo dpkg-reconfigure dash
a dialog box opens up, select NO
Source the Path of settings.sh
source home/..../petalinux/settings.sh
after soucing we can get all petalinux commands in the current terminal

Creating a project
go to folder where you want to create test (new project)
petalinux-create --type project --template zynqMP --name test

Note- If you try to build the project from here we run into few issues
petalinux-build

note- Switch to your project folder test before executing above command

ERROR: No HDF or DSA is found in /home/vkchlt0379/test/project-spec/hw-description.


[INFO] generating Kconfig for project
ERROR: Hardware description file "" doesn't exist

we need to specify Hardware decription file

Configure Hardware description


petalinux-config --get-hw-description /home/vkchlt0379/hdf/test1/

vkchlt0379@vkchlt0379-Latitude-3400:~/test$ ls
build components config.project project-spec

petalinux-create -t apps -n testapp –enable

got to we will see testapp.c and automatically generated makefile


/test/project-spec/meta-user/recipes-apps/testapp/files$ ls
Makefile testapp.c

/test/project-spec/meta-user/recipes-apps/testapp$ petalinux-build

After build a new image folder will be created in ~/test$ ls


build components config.project images project-spec

inside image folder


bl31.bin pmufw.elf rootfs.cpio.gz.u-boot rootfs.ext4.gz rootfs.tar.gz System.map.linux
zynqmp_fsbl.elf
bl31.elf rootfs.cpio rootfs.ext3 rootfs.jffs2 rootfs.testdata.json u-boot.bin
Image rootfs.cpio.bz2 rootfs.ext3.bz2 rootfs.manifest system.bit u-boot.elf
image.ub rootfs.cpio.gz rootfs.ext4 rootfs.tar.bz2 system.dtb vmlinux
Packaging
petalinux-package --boot --format BIN --fsbl zynqmp_fsbl.elf --u-boot u-boot.elf --pmufw pmufw.elf --
fpga system.bit --kernel --force

Emulating
petalinux-boot --qemu --kernel

You might also like