do_image_cpio: Function Failed - 2021.2 English

PetaLinux Tools Documentation: Reference Guide

Document ID
UG1144
Release Date
2021-10-27
Version
2021.2 English

CPIO format does not support sizes greater than 2 GB. Therefore, you cannot use INITRAMFS for larger sizes. The following steps describes the process for larger image sizes (greater than 2 GB).

  1. Change the root file system type to EXT4 (SD/eMMC/SATA/USB).
    $ petalinux-config

    Select Image Packaging Configuration > Root filesystem type > EXT4 (SD/eMMC/SATA/USB).

  2. Add the following lines in the <plnx-proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf.
    IMAGE_FSTYPES_remove = "cpio cpio.gz cpio.bz2 cpio.xz cpio.lzma cpio.lz4 
    cpio.gz.u-boot"
    IMAGE_FSTYPES_DEBUGFS_remove = "cpio cpio.gz cpio.bz2 cpio.xz cpio.lzma cpio.lz4 
    cpio.gz.u-boot"
  3. Build the project.
    $ petalinux-build
    Note: Unlike earlier, currently PetaLinux does not generate the global DTS file. Use the following command to generate the global DTS file:
    dtc -I dtb -O dts -o system.dts system.dtb
CAUTION:
Do not use the symlinked path to the project directories for any build operations, including simply "cd"ing into the directory.