Creating a bootable SD card requires an SD card reader operational under Linux to format and access the Linux partition of the card. If you do not have SD card access under Linux then copying the bootloader and mounting the root filesystem on SD/MMC card will not be possible.
Pre-built images are available on PHYTEC's Artifactory. If you have built your own images, then the images are located in: <YOCTO_DIR>/build/arago-tmp-external-linaro-toolchain/deploy/images/<MACHINE>/
In this document, YOCTO_DIR refers to your base Yocto directory, YOCTO_IMAGE refers to the built Yocto image target, and MACHINE refers to the machine target for which the image was built. |
When using this script, it will ask if you want to create 2 or 3 partitions. Press 2. Further, when it asks if you would like to continue press N. |
Once the SD card has been formatted, you may update the kernel, root filesystem, and U-Boot individually. For reference, the following steps are targeting the standard phyCORE-AM57xx kit SOM, PCM-057-41300111I.
If you are using a non-kit SOM, please see the Yocto Machine Configuration Table section of the latest AM57xx BSP release notes to determine which files to use. |
If modifying the root filesystem, remove the existing:
sudo rm -rf /media/<user>/rootfs/* |
Load the new filesystem to the SD Card.
sudo tar -Jxf <YOCTO_IMAGE>-<MACHINE>.tar.xz -C /media/<user>/rootfs && sync |
If you do not need to update your Linux kernel or device tree images, this step can be skipped. The root file system already contains a kernel and default dtb files in its boot directory. |
Remove the existing Linux kernel and device tree images.
sudo rm /media/<user>/rootfs/boot/zImage sudo rm /media/<user>/rootfs/boot/devicetree-zImage-am572x-phycore-rdk-41300111i.dtb |
Load the new Linux kernel and device tree images to the SD Card. Note that u-boot expects the kernel to be named zImage and the standard SOM dtb file to be named am572x-phycore-rdk-41300111i.dtb:
sudo cp zImage /media/<user>/rootfs/boot/zImage && sync sudo cp zImage-am572x-phycore-rdk-41300111i.dtb /media/<user>/rootfs/boot/am572x-phycore-rdk-41300111i.dtb && sync |
Remove the existing U-Boot and MLO images:
rm /media/<user>/boot/u-boot.img rm /media/<user>/boot/MLO |
Copy the new images to the SD Card:
cp u-boot.img /media/<user>/boot/u-boot.img && sync cp MLO /media/<user>/boot/MLO && sync |