Petalinux Workflow

Very rambly, very notebook

Generate the XSA hardware file.

In your petalinux docker image, then petalinux-config --get-hw-description=/home/vivado/project/EBAZ4205_projects/chaff/ebaz4205_wrapper.xsa

petalinux-config -c rootfs and you can set usernames, install packages, the like

The FSBL is the first stage bootloader, This is some code that executes before Linux. It is important to regenerate every time you change clocks in your vivado block diagram, as it  can disable clocks and cause much hair pulling out. I deleted it from images/linux. To rebuild it, do petalinux-package --boot --fsbl zynq_fsbl.elf --fpga system.bit --u-boot u-boot.elf -o BOOT.BIN --force .

To get Vitis working, you'll need the previously created XSA file, as well as the sysroot. In petalinux_sd, you can run . petalinux-build --sdk This will take a while, but then you can do petalinux-package --sysroot

Another thing, make sure you select cortexa9t2hf-neon-xilinx-linux-gnueabi/ instead of the x64 target. The arm64 doesn't work. This is for the rootfs in vitis.