Create a potential production release for the
PetaLinux (20.0) project using pure repository source. .
(optional) Clear out all the superfluous files from the project area (non-tracked files).
steve@Desktop:~/swuk_tutorial$ cd zedboard_linux/os/petalinux
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ git clean -fdx
(optional) Clear out the transfer area.
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ rm -rf /tftpboot/*
Double check GIT status.
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ git status -u
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Build/rebuild PetaLinux.
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ swuk_petalinux-build
Note: A fresh build of
PetaLinux takes a long time to complete and can be prone to failure due to internet downloads. If the build process fails, firstly check the GIT status & difftool for any noddy file changes, restore these file changes and then execute the build command again until it finally completes.
Package PetaLinux to produce the boot image
BOOT.BIN, this will include the first stage boot loader
zynq_fsbl.elf, the programmable logic
system.bit, the Linux boot loader
u-boot.elf and the device tree blob
system.dtb.
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ petalinux-package --boot --force --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/system.bit --uboot images/linux/u-boot.elf
Archive the generated files for safe keeping. These files are not held in the repository as they can be recreated from source.
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ mkdir -p ~/Documents/swuk_tutorial/petalinux/v20.0
steve@Desktop:~/swuk_tutorial/zedboard_linux/os/petalinux$ cp /tftpboot/{BOOT.BIN,boot.scr,image.ub} ~/Documents/swuk_tutorial/petalinux/v20.0