- Supported Linux OS for Petalinux 2024.1 (refer to UG1144)
- All required packages as listed in the Petalinux 2024.1 Release Notes
- Petalinux 2024.1 installation (refer to UG1144)
- Reference Design documentation for the hardware combination in use (module and baseboard combination)
- Successful Petalinux build as described in the BSP usage documentation
Download the BSP for the SD card boot mode from the available reference design BSPs in the release section of the respective github repository and build the project as described in the BSP usage documentation and SD boot mode documentation. The SD card image will be used to write the eMMC image into the eMMC memory on the module. If the ext4 partition is too small to fit the eMMC image, the ext4 partition on the SD card can be extended with tools like resize-part or gparted.
Follow these steps to build the eMMC image:
- Create the
BOOT.BINas described in the BSP usage documentation using the provided*_EMMC.bsp. - Use the
petalinux-package wiccommand to create an MMC image. The default image will be created in PETALINUX_PROJECT_FOLDER -> images -> linux -> petalinux-sdimage.wic with a size of 6GB. It is possible to change the generated image size by passing arguments via the--wksflag. Refer to UG1144 for details.
Follow these steps to program the eMMC flash with the image generated in the previous section:
- Copy the generated image to the SD card with
sudo cp petalinux-sdimage.wic <path-to-rootfs-on-SD-card>/home/petalinux/. - Unmount the SD card.
- Boot from the SD card as described in the respective reference design documentation (Section "Booting from the SD Card") using the default credentials Username: root, Password: root.
- The generated image should be in the
/home/petalinux/directory. Write the image to eMMC withdd if=petalinux-sdimage.wic of=/dev/mmcblk0. - Wait for completion. This step can take some time.
- After completion, you can use
shutdown nowto exit Linux. - Remove the SD card from the SD card slot.
- Unpower the board and boot from eMMC as described in the respective reference design documentation (Section Booting from the eMMC).