This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
hw:zynq:linux:petalinux:sdcard [2019/03/20 15:50] jakub.moron created |
hw:zynq:linux:petalinux:sdcard [2021/04/21 16:48] (current) jakub.moron |
||
---|---|---|---|
Line 6: | Line 6: | ||
- BOOT (64MB (512 MiB), FAT32, bootable flag) with 4MB empty space ahead | - BOOT (64MB (512 MiB), FAT32, bootable flag) with 4MB empty space ahead | ||
- rootfs (rest, ext4) | - 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)]]) <code> | ||
+ | cd <boot_project_path>/<boot_project_name> | ||
+ | sudo cp ./images/linux/BOOT.BIN ./images/linux/?mage* ./images/linux/?ystem.* ./images/linux/u-boot.bin ./images/linux/vmlinux <sd_card_mount_point>/BOOT/ | ||
+ | sync | ||
+ | |||
+ | // old: sudo cp ./images/linux/* <sd_card_mount_point>/BOOT/ | ||
+ | </code> | ||
+ | - 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)]]) <code> | ||
+ | cd <boot_project_path>/<boot_project_name> | ||
+ | sudo cp ./images/linux/BOOT.BIN ./images/linux/?mage* ./images/linux/?ystem.* ./images/linux/u-boot.bin ./images/linux/vmlinux ./images/linux/boot.scr <sd_card_mount_point>/BOOT/ | ||
+ | sync | ||
+ | </code> | ||
+ | |||
+ | - Copy root filesystem: <code> | ||
+ | cd <rootfs_path> | ||
+ | sudo cp -a rootfs/* <sd_card_mount_point>/rootfs/ | ||
+ | sync | ||
+ | </code> | ||
+ | - Umount ''BOOT'' and ''rootfs'' | ||
+ |