do_image_cpio: Function Failed - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
Release Date
2020.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 <proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf.
    IMAGE_FSTYPES_remove = "cpio cpio.gz cpio.bz2 cpio.xz cpio.lzma cpio.lz4 
    IMAGE_FSTYPES_DEBUGFS_remove = "cpio cpio.gz cpio.bz2 cpio.xz cpio.lzma cpio.lz4 
  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
Do not use the symlinked path to the project directories for any build operations, including simply "cd"ing into the directory.