Chapter 4 Working with Petalinux Engineering

Build a new project

After exporting the hardware description file from vivado, the next step is to create and initialize a new Petalinux project. The petalinux-create tool is used to wear the basic project directory:
Petalinux-create - -type project - -template < CPU_NAME > - -name < PROJECT_NAME>

These parameters are:
- -template: The CPUs supported by TYPE are zynqMP, zynq, and mircroblaze.
- -name: The name of the project you will be building.
This tool will create a new Petalinux project directory based on the default template. These parameters will be configured later based on the specific hardware.

第4章 利用Petalinux工程工作

Import hardware description file

1. Switch to the directory of the hardware description file generated by vivado. E.g
$ cd

2. Use the petalinux-config - -get-hw-descripTIon command to import the hardware description.
$ petalinux-config --get-hw-descripTIon -p
The -p option specifies the Petalinux project directory to be initialized or updated with the target hardware description file.
After the initialization is complete, the tool displays the system level menuconfig interface. This automatically displayed interface only appears when the Petalinux project is first initialized. If you want to display this interface later, enter the petalinux-config command in the Petalinux project directory.

Linux Components SelecTIon --->
Auto Config SetTIngs --->
- * - Subsystem AUTO Hardware Settings --->
Kernel Bootargs --->
U-boot Configuration --->
Image Packaging Configuration --->
Firmware Version Configuration --->

In the menu, move the cursor to “Subsystem AUTO Hardware Settings - - ->” ENTER to enter the menu. A menu similar to the following will appear:
--- Subsystem AUTO Hardware Settings
System Processor (ps7 _ cortexa9 _ 0) --->
Memory Settings --->
Serial Settings --->
Ethernet Settings --->
Flash Settings --->
SD/SDIO Settings --->
[ ] Advanced bootable images storage Settings --->

This directory allows customization of system level hardware and software settings.

When exiting the system level menu interface, the tool will take a few minutes to complete. The tool will parse the hardware description, update the device tree, and user-configured U-Boot and Linux kernel kernel configuration files. The tool uses your settings in "Auto Config Settings - - - >" and Subsystem AUTO Hardware Settings - - -> to ensure your system is configured to your requirements.

For example, if you choose ps_ethernet_0 as the base Ethernet interface, the tool will automatically enable its Linux kernel driver. And if the user chooses to automatically update the U-Boot configuration, it will also update the enable U-boot Ethernet controller.

Configuring engineering components

If you want to perform advanced Petalinux project configuration similar to enabling Linux kernel options or modifying flash partitions, use the petalinux-config tool with the -c COMPONENT option.
The following is an example of using the petalinux-config tool to view or modify the Petalinux project configuration.

1. Switch to the Pealinux project root directory.
$ cd

2. Log in to the top-level configuration menu of the system and set the settings you want.
$ petalinux-config

3. Log in to the Linux kernel configuration menu and configure
$ petalinux-config -c kernel

4. Log in to the root file system configuration menu and configure
$ petalinux-config -c rootfs

Tail Light Wiring Harness

Taillight Wire Harness apply in automotive,motocycle,bus,bike,truck.

Yacenter has experienced QC to check the products in each process, from developing samples to bulk, to make sure the best quality of goods. Timely communication with customers is so important during our cooperation.

If you can't find the exact product you need in the pictures,please don't go away.Just contact me freely or send your sample and drawing to us.We will reply you as soon as possible.

Tail Light Wiring Harness,Trailer Wiring Harness,Trailer Light Wiring Kit,Trailer Light Harness

Dongguan YAC Electric Co,. LTD. , https://www.yacentercn.com