# Pack the image Source: [https://docs.qualcomm.com/doc/80-88500-5/topic/packing.html](https://docs.qualcomm.com/doc/80-88500-5/topic/packing.html) Note: Not supported on the Linux Embedded systems. For packing on the host system, use sysroot from Yocto and `system.img`. ## Use sysroot from Yocto Get the original packing command from `uimage.bbclass`. The usage of `make_ext4fs` is shown in the following code: make_ext4fs -s -l ${SYSTEM_SIZE_EXT4} -C ${WORKDIR}/rootfs-fsconfig.conf -B ${DEPLOY_DIR_IMAGE}/system.map ${IMAGE_EXT4_SELINUX_OPTIONS} -b 4096 ${DEPLO Y_DIR_IMAGE}/${SYSTEMIMAGE_TARGET} ${IMAGE_ROOTFS}Copy to clipboard To use `make_ext4fs` generated by Yocto, see the following example: /build-qti-distro-Ubuntu-debug/tmp-glibc/work/qrb5165_rb5-oe-linux/qti-Ubuntu-robotics-image/1.0-r0/recipe-sysroot-native/usr/bin/make_ext4fs -s -l 33554432000 -C /build-qti-distro-Ubuntu-debug/tmp-glibc/work/qrb5165_rb5-oe-linux/qti-Ubuntu-robotics-image/1.0-r0/rootfs-fsconfig.conf -B /build-qti-distro-Ubuntu-debug/tmp-glibc/deploy/images/qrb5165-rb5/system.map ${IMAGE_EXT4_SELINUX_OPTIONS} -b 4096 qti-Ubuntu-robotics-image-qrb5165-rb5-sysfs-new.ext4 Copy to clipboard ## Use system.img 1. To repack the sysroot, run the following command: sudo make_ext4fs -s -l 33554432000 -b 4096 sysfs.ext4 Copy to clipboard For example: `sudo make_ext4fs -s -l 33554432000 -b 4096 sysfs.ext4 data` 2. To check if the `system.img` output is an Android sparse image, run the following command: file sysfs.ext4 sysfs.ext4: Android sparse image, version: 1.0, Total of 8192000 4096-byte output blocks in 12234 input chunksCopy to clipboard **Parent Topic:** [Develop with cross-compiler](https://docs.qualcomm.com/doc/80-88500-5/topic/develop_device_with_cross-compiler.html) Last Published: Nov 25, 2025 [Previous Topic prepare\_sysroot.dita](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/prepare_sysroot.md) [Next Topic Develop using RB5 platform](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/develop_the_device_using_qualcomm_robotics_rb5_platform.md)