...
Info |
---|
Some reference designs contains a preconfigured PetaLinux project as template. This can be used instead of creating a new project described on step two. Note |
---|
PetaLinux Some 18.2 is using one absolute path in "<plnx-proj-root>/project-spec/configs/config Change path of designs include "./init_config.sh" to change directory path (CONFIG_TMP_DIR_LOCATION variable to your project path "LOCATION on <plnx-proj-root>/build/tmp" manually or use provided "./init_config.sh" to change path variable automatically. If missing, change execution rights for init_config.sh with chmodproject-spec/configs/config). This is not longer necessary with petalinux 2018.2. this files will be removed on later updates |
|
- PetaLinux Working Environment (see UG1144)
- PetaLinux Tools Installation is completed.
"/bin/sh" is bash
- Set Working Environment:
- $ source <path-to-installed-PetaLinux>/settings.sh
- Create a New Project (see UG1144):
- Import Hardware Configuration (see UG1144):
- Export Hardware Definition File (*.hdf) from the Vivado Project into the PetaLinux root folder "<plnx-proj-root>":
- change to PetaLinux root folder:
- Run:$ petalinux-config --get-hw-description
- (optional) Configure your PetaLinux:
- While anywhere in the project folder tree:
- Run:$ petalinux-config
- Run:$ petalinux-config -c kernel
- Run:$ petalinux-config -c rootfs
- Build System Image (see UG1144):
- While anywhere in the project folder tree:
- Run:$ petalinux-build
- Take u-boot.elf, image.ub, bl31.elf (ZynqMP only) from "<plnx-proj-root>/images/linux" and make BOOT.BIN. It is recommended to create the FSBL and PMU Firmware (ZynqMP only) with SDK/HSI tools.
...
Manual changes can be done in the subfolder "<plnx-proj-root>/project-spec/meta-user/"
U-Boot | recipes-bsp/u-boot/files/platform-top.h | overwrite, add UBoot settings |
Device Tree | recipes-bsp/device-tree/files/system-user.dtsi recipes-bsp/device-tree/files/zynqmp-qemu-arm.dts | overwrite, add device tree attributes |
Kernel | recipes-kernel/linux/linux-xlnx/ | changes with "petalinux-config -c kernel" will be add here automatically |
PetaLinux 2017.4
PetaLinux Installation
...