-
Notifications
You must be signed in to change notification settings - Fork 0
ZedBoard PetaLinux Bootstrap
zwabbit edited this page Jun 27, 2021
·
3 revisions
Bootstrapping a custom PetaLinux image requires performing the following steps.
The following prerequisites are assumed.
- Vivado 2020.2 installed
- PetaLinux 2020.2 installed
- BSPs installed in PetaLinux directory
- Ubuntu 18.08 LTS host system
- Directory structure as follows:
- workspace
- vivado_workspace
- vitis_workspace
- petalinux_workspace
- workspace
- Generate bitfile and export hardware configuration (including the bitfile). This will generate an XSA file along with the bitfile.
- Create PetaLinux project. Once created, CD into the created project.
petalinux-create --type project --source <BSP_PATH>/avnet-digilent-zedboard-v2020.2-final.bsp --name <PROJECT_NAME>
- Import hardware configuration.
petalinux-config --get-hw-description <PATH_TO_XSA_DIR>/<XSA_NAME>
- Configure the root filesystem to include what packages you may need.
petalinux-config -c rootfs
It is recommended to include the dropbear and openssh-sftp-server at the very least. - Build project.
petalinux-build
In the past the first-stage bootloader was compiled separately using the Xilinx SDK. Now it is built by the PetaLinux toolchain. - Package results. The first-stage bootloader should be located inside of the build images directory.
petalinux-package --boot --fsbl <PATH_TO_IMAGE_DIR>/<FSBL_NAME> --fpga <PATH_TO_BITFILE_DIR>/<BITFILE_NAME> --u-boot
- Copy the following files onto the first FAT32 partition of an SD card to get it to boot.
- BOOT.BIN
- image.ub
- boot.scr
- By default the serial port is configured at 115200 baud.