This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hw:zynq:linux:petalinux:sdcard [2019/03/28 16:21] jakub.moron |
hw:zynq:linux:petalinux:sdcard [2021/04/21 16:48] (current) jakub.moron |
||
---|---|---|---|
Line 11: | Line 11: | ||
* Copy filesystems: | * Copy filesystems: | ||
- Mount the formatted card | - Mount the formatted card | ||
- | - 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> | + | - 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> | cd <boot_project_path>/<boot_project_name> | ||
- | sudo cp ./images/linux/* <sd_card_mount_point>/BOOT/ | + | 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 | sync | ||
+ | |||
+ | // old: sudo cp ./images/linux/* <sd_card_mount_point>/BOOT/ | ||
</code> | </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> | - Copy root filesystem: <code> | ||
cd <rootfs_path> | cd <rootfs_path> | ||
Line 21: | Line 29: | ||
sync | sync | ||
</code> | </code> | ||
- | - Copy kernel modules into rootfs: <code> | ||
- | cd <boot_project_path>/<boot_project_name> | ||
- | sudo tar xvfp build/tmp/deploy/images/plnx-zynq7/modules--4.14-xilinx-v2018.3+git0+eeab73d120-r0-plnx-zynq7-20190328133706.tgz -C <sd_card_mount_point>/rootfs/ | ||
- | sync | ||
- | </code> \\ \\ | ||
- | ** AFTER STARTING THE ROOTFILESYSTEM A "depmod" HAVE TO BE CALLED -> MOVE THIS TO ROOTFS PREPARATION ** | ||
- Umount ''BOOT'' and ''rootfs'' | - Umount ''BOOT'' and ''rootfs'' | ||