====== SD card setup ======
* Use at least >=8 GB card
* Install and lunch ''gparted'' (in Debian Stretch use ''sudo gparted'' instead of ''gprated-pkexec'')
* Setup two partitions:
- BOOT (64MB (512 MiB), FAT32, bootable flag) with 4MB empty space ahead
- rootfs (rest, ext4)
{{:hw:zynq:linux:petalinux:sd_card.jpg?600|}}
* Copy filesystems:
- Mount the formatted card
- Petalinux 2018.3: Copy boot and kernel: (for ''boot_project_name'' see [[hw:zynq:linux:petalinux:boot_kernel|Boot and Kernel configure & build with PetaLinux without BSP (board support package)]])
cd /
sudo cp ./images/linux/BOOT.BIN ./images/linux/?mage* ./images/linux/?ystem.* ./images/linux/u-boot.bin ./images/linux/vmlinux /BOOT/
sync
// old: sudo cp ./images/linux/* /BOOT/
- Petalinux 2020.2: Copy boot and kernel: (for ''boot_project_name'' see [[hw:zynq:linux:petalinux:boot_kernel|Boot and Kernel configure & build with PetaLinux without BSP (board support package)]])
cd /
sudo cp ./images/linux/BOOT.BIN ./images/linux/?mage* ./images/linux/?ystem.* ./images/linux/u-boot.bin ./images/linux/vmlinux ./images/linux/boot.scr /BOOT/
sync
- Copy root filesystem:
cd
sudo cp -a rootfs/* /rootfs/
sync
- Umount ''BOOT'' and ''rootfs''