This page will go over how to boot linux-xlnx with Ubuntu rootfs for 2019.1 release. The same steps work with 2019.2 release as well.
I. Required boot artifacts
To create an SD card image and boot Ubuntu we need the following artifacts:
- Ubuntu rootfs
II. how to get the boot artifacts
- boot.bin, Image, system.dtb can be taken from petalinux bsp [https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842250/PetaLinux]
- extract the petalinux bsp after downloading it from here https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html
- source the petalinux tool and run petalinux-config command. This will launch a menuconfig GUI using this select the following:
- Image Packaging configuration →Root filesystem type→ Initrd
- after choosing initrd, save the changes and exit
- run petalinux-build command to generate the new kernel image type and populate it under images directory
- The ubuntu rootfs can be taken from ubuntu-base-14.04.2-core-arm64.tar.gz
III. Create an SD card
The sd card will require two partitions, FAT boot partition and EXT4 root partition. To create these partitions follow the steps from https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842385/How+to+format+SD+card+for+SD+boot
- mount the newly partitioned sd card.
- copy BOOT.BIN, boot.scr, Image and system.dtb to boot partition of sd card.
- extract the downloaded ubuntu rootfs using tar command to the root partition of sd card.
Place the sd card on target and boot the board.
The above steps have been used to boot the boards for zcu102-zynqmp and Ultra96-zynqmp.
Reference boot log for ZCU102 can be found here.