-
Work in progress
-
Tool: Vitis 2021.2
- Install board files
XILINX_VIVADO
is path to the installation directory of Vivado
$ git clone https://github.com/krtkl/snickerdoodle-board-files.git \
${XILINX_VIVADO}/data/xhub/boards/XilinxBoardStore/boards/snickerdoodle-board-files
$ vivado -mode batch -source create_xsa.tcl
$ export PRJ=petalinux
$ petalinux-config -p ${PRJ}
# Make additional configuration if necessary
$ petalinux-config -p ${PRJ} -c u-boot
$ petalinux-config -p ${PRJ} -c kernel
$ petalinux-config -p ${PRJ} -c rootfs
# Start build
$ petalinux-build -p ${PRJ}
# Generate SDK (optional)
$ petalinux-build -p ${PRJ} --sdk
$ xsct create_pfm.tcl
$ petalinux-package -p ${PRJ} --boot --force \
--fsbl petalinux/images/linux/zynq_fsbl.elf \
--fpga petalinux/images/linux/system.bit \
--u-boot petalinux/images/linux/u-boot-dtb.elf
$ export PRJ=petalinux
$ petalinux-create -t project -n ${PRJ} --template zynq
$ petalinux-config -p ${PRJ} --get-hw-description=.
# Do some configuration
$ petalinux-config -p ${PRJ} -c kernel
$ petalinux-config -p ${PRJ} -c u-boot
$ petalinux-config -p ${PRJ} -c rootfs
# Show actual build time of Kernel & u-boot
$ petalinux-build -p ${PRJ} -x cleansstate
# Build project
$ petalinux-build -p ${PRJ}
# Generate SDK
$ petalinux-build -p ${PRJ} --sdk