3b7 2025 Snippet Lab Create Petalinux 1-1-2. Enter the following in the terminal window to run the general configuration script: source /opt/amd/PetaLinux/2024.1/tool/settings.sh 1-2-1 Change to the directory where the Petalinux project will be created: cd $TRAINING_PATH/drivingPetaLinux/lab 1-2-2. Create a new PetaLinux project: petalinux-create -t project --name petalnx_proj --template zynqMP 1-3-1 cd petalnx_proj 1-3-2. Import the hardware configuration. petalinux-config --get-hw-description=$TRAINING_PATH/CustEdIP/UED_zcu104.xsa --silentconfig 2-1-1. If you are not in the project directory, change the directory cd $TRAINING_PATH/drivingPetaLinux/lab/petalnx_proj 2-2-1. Launch petalinux-config petalinux-config 3-1-3. Build the petalinux petalinux-build 3-1-6. If you navigated away from the images directory, return to it by entering: cd $TRAINING_PATH/drivingPetaLinux/lab/petalnx_proj/images/linux ls -l -h 3-1-7. Create a boot image (BOOT.BIN) petalinux-package --boot --fsbl zynqmp_fsbl.elf --u-boot u-boot.elf --pmufw pmufw.elf --fpga system.bit 4-1-1. Ensure that you are in the PetaLinux project directory cd $TRAINING_PATH/drivingPetaLinux/lab/petalnx_proj 4-1-2. Create the directories necessary for using the prebuilt image: mkdir -p pre-built/linux/images 4-1-3. Copy the additional ELF files cp -r $TRAINING_PATH/drivingPetaLinux/support/images/* pre-built/linux/images 4-2-1. Boot Petalinux in QEMU: petalinux-boot --qemu --kernel OR petalinux-boot --qemu --prebuilt 3 4-3-1. Copy BOOT.BIN, Image, rootfs.cpio.gz.u-boot and boot.scr files to the SD card cp $TRAINING_PATH/drivingPetaLinux/support/images /media/Electra/boot