Download latest petalinux installer from amd/xilinx: https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html Install instructions: https://docs.xilinx.com/r/en-US/ug1144-petalinux-tools-reference-guide/Installing-the-PetaLinux-Tool Install gawk, xterm, texinfo: apt-get install gawk xterm texinfo Run installer setup: sbruno@hattie:~/unm/class/ece525/petalinux$ ~/Downloads/petalinux-v2022.1-04191534-installer.run --dir /home/sbruno/unm/class/ece525/petalinux/2022.1 Source settings in your shell and create project source petalinux/2022.1/settings.sh petalinux-create -t project -n ece525_zybo -s Zybo-Z7-10-Petalinux-2022-1.bsp Set SD Card in kernel config: petalinux-config -p ece525_zybo Image Packaging Configuration -> Root FileSystem Type -> EXT4 (SD/eMMC/SATA/USB) Set mountroot to the correct partition on the mmc device vim ./project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi bootargs = "console=ttyPS0,115200 earlyprintk uio_pdrv_genirq.of_id=generic-uio root=/dev/mmcblk0p2 rw rootwait"; Set sqllite in base config: petalinux-config -p ece525_zybo -c rootfs Filesystem Packages -> libs -> sqlite3: select all options petalinux-build -p ece525_zybo Force a build of the boot.bin file petalinux-package --boot --force --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/system.bit --u-boot images/linux/u-boot.elf [INFO] Sourcing buildtools INFO: Getting system flash information... INFO: File in BOOT BIN: "/home/sbruno/unm/class/ece525/ece525_zybo/images/linux/zynq_fsbl.elf" INFO: File in BOOT BIN: "/home/sbruno/unm/class/ece525/ece525_zybo/images/linux/system.bit" INFO: File in BOOT BIN: "/home/sbruno/unm/class/ece525/ece525_zybo/images/linux/u-boot.elf" INFO: File in BOOT BIN: "/home/sbruno/unm/class/ece525/ece525_zybo/images/linux/system.dtb" INFO: Generating zynq binary package BOOT.BIN... ****** Xilinx Bootgen v2022.1 **** Build date : Mar 30 2022-09:29:13 ** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved. [WARNING]: Partition zynq_fsbl.elf.0 range is overlapped with partition system.bit.0 memory range [INFO] : Bootimage generated successfully INFO: Binary is ready. ---- Setup SD Card: $ sudo fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.37.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x3c14b827. Command (m for help): p Disk /dev/mmcblk0: 7.36 GiB, 7904165888 bytes, 15437824 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x3c14b827 Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-15437823, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-15437823, default 15437823): +256M Created a new partition 1 of type 'Linux' and of size 256 MiB. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): First sector (526336-15437823, default 526336): Last sector, +/-sectors or +/-size{K,M,G,T,P} (526336-15437823, default 15437823): Created a new partition 2 of type 'Linux' and of size 7.1 GiB. Command (m for help): p Disk /dev/mmcblk0: 7.36 GiB, 7904165888 bytes, 15437824 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x3c14b827 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 2048 526335 524288 256M 83 Linux /dev/mmcblk0p2 526336 15437823 14911488 7.1G 83 Linux Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. $ sudo mkdosfs /dev/mmcblk0p1 mkfs.fat 4.2 (2021-01-31) ---- $ cd ece525_zybo $ sudo mount /dev/sdd1 /mnt $ sudo cp images/linux/BOOT.BIN images/linux/boot.scr images/linux/image.ub /mnt/ $ sudo umount /mnt $ sudo dd if=images/linux/rootfs.ext4 of=/dev/sdd2 bs=1M 270+1 records in 270+1 records out 283859968 bytes (284 MB, 271 MiB) copied, 28.5283 s, 10.0 MB/s $ sudo resize2fs /dev/sdd2 resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /dev/sdd2 to 14301696 (1k) blocks. The filesystem on /dev/sdd2 is now 14301696 (1k) blocks long.