How to enable sparse image in android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable sparse image in android

How to enable sparse image in android

There are two format system image(ext4): raw and sparse. The raw image is  larger, you can mount it to ext4 directly(mount -t ext4 system.img system). The sparse image is supported lp5.0, it is a bit smaller. The below part will take IMX7D SDB board as example. You can change the setting according your platform hardware.

 

1 generate sparse image

 

In Lollipop 5.0 and 5.1, both raw image and sparse image will be generated by default.

sparse system image is located in: out/target/product/sabresd_7d/system_sparse.img

raw system image is located in:out/target/product/sabresd_7d/system.img

Below are the steps used in android build system to generate system.img

  • build out sparse image(-s means the building system image is sparse)

          make_ext4fs -s -T -1 -S out/target/product/sabresd_7d/root/file_contexts -l 374476800 -a system           out/target/product/sabresd_7d/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/sabresd_7d/system

  • transform sparse image to raw image

          simg2img out/target/product/sabresd_7d/system_sparse.img out/target/product/sabresd_7d/system.img

 

2 burn sparse image to sd/emmc

     There are two ways to program the sparse image into android boot storage

  • Transform the sparse image into raw image in host Linux PC. And use the commands dd commands to program the raw image into the boot storage.
  • Program the sparse image with MFG Tool in i.MX Android release package.

               Steps:

      • copy system_sparse.img to files/android/sabresd/.
      • copy simg2img binary (in simg2img.zip) to files/android/.
      • You also need update mfgtools-without-rootfs.tar\mfgtools\Profiles\Linux\OS Firmware\ucl2.xml

 

     diff --git a/Profiles/Linux/OS Firmware/ucl2.xml b/Profiles/Linux/OS Firmware/ucl2.xml      index 3b15ddd..3c3d2ae 100755      --- a/Profiles/Linux/OS Firmware/ucl2.xml      +++ b/Profiles/Linux/OS Firmware/ucl2.xml        @@ -621,8 +621,12 @@              <CMD state="Updater" type="push" body="$ mkfs.ext4 /dev/mmcblk%mmc%p6">Formatting cache partition</CMD>                <CMD state="Updater" type="push" body="$ mkfs.ext4 /dev/mmcblk%mmc%p7">Formatting device partition</CMD>      -       <CMD state="Updater" type="push" body="pipe dd of=/dev/mmcblk%mmc%p5 bs=512" file="files/android/sabresd/system.img">Sending and writting system.img</CMD>      -      +       <CMD state="Updater" type="push" body="send" file="files/android/simg2img" ifdev="MX7D">Sending simg2img</CMD>      +       <CMD state="Updater" type="push" body="$ cp $FILE /tmp/simg2img ">cp simg2img</CMD>      +       <CMD state="Updater" type="push" body="$ chmod  777 /tmp/simg2img ">chmod 777</CMD>      +       <CMD state="Updater" type="push" body="$  mount -o remount,size=512M rootfs /">change size of tmpfs</CMD>      +       <CMD state="Updater" type="push" body="send" file="files/android/sabresd/system_sparse.img" ifdev="MX7D">Sending system_sparse.img</CMD>      +       <CMD state="Updater" type="push" body="$ /tmp/simg2img $FILE /dev/mmcblk%mmc%p5">Sending and writting system_sparse.img</CMD>              <!-- Write userdata.img is optional, for some customer this is needed, but it's optional. -->              <!-- Also, userdata.img will have android unit test, you can use this to do some auto test. -->              <!--    <CMD state="Updater" type="push" onError="ignore" body="pipe dd of=/dev/mmcblk0p7" file="file/android/userdate.img"> Sending userdata.

 

3 Support sparse image in uboot(v2014.04)

     Cheery-pick sparse image related patches. Use write_sparse_image to burn sparse system image.

     For detail information, Please check the attached file(uboot(v2014.04)which support sparseimage.zip )

 

     The step of apply these patches:

  • cd myandroid/bootable/bootloader/uboot-imx/
  • copy uboot(v2014.04) which support sparseimage.zip to myandroid/bootable/bootloader/uboot-imx/

        unzip uboot(v2014.04) which support sparseimage.zip

  • git am 0001-add-header-for-Android-sparse-image-format.patch

        git am 0002-add-code-to-handle-Android-sparse-image-format.patch

        git am 0003-update-code-which-handles-Android-sparse-image-forma.patch

        git am 0004-cleanup-code-which-handles-the-Android-sparse-image-.patch

        git am 0005-implement-the-Android-sparse-image-format.patch

        git am 0006-aboot-fix-block-addressing-for-don-t-care-chunk-type.patch

        git am 0007-MA-6732-Add-sparse-image-flash-support-for-uboot-s-f.patch

 

 

    

 

The page will keep updating.

 

Reference:

     How to enable userdata.img and cache.img in lollipop

Attachments
Comments

Hello Sanshan Zhang,

When I building android(Lollipop 5.0.0.1) for imx6slevk board , system.img is not able to generate from system_sparse.img.

Following error is obtained:

Install system fs image: out/target/product/evk_6sl/system_sparse.img

out/target/product/evk_6sl/system_sparse.img+out/target/product/evk_6sl/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=481738752 blocksize=4224 total=403801046 reserve=4866048

if [ true = true ]; then \

        simg2img out/target/product/evk_6sl/system_sparse.img out/target/product/evk_6sl/system.img; \

        fi

/bin/bash: line 1: simg2img: command not found

make: *** [out/target/product/evk_6sl/system_sparse.img] Error 127

make: *** Deleting file `out/target/product/evk_6sl/system_sparse.img'

Is their any patches to apply which Support sparse image in android..

please help me sort out this issue...

Regards,

Kishore P

Hi kishore,

Does you have check whether /out/host/linux-x86/bin/simg2img exist?

If   it exists, you can check if the /out/host/linux-x86/bin/ is export to PATH.

Hello Sanshan Zhang,

  Thanks for reply, simg2img is exit in /out/host/linux-x86/bin path and it is exported to PATH also.

Any think we have to enable in the kernel extra other than default option given by freescale...?

>$PATH

bash: /usr/lib/jvm/java-7-openjdk-amd64/bin:/home/test/Android_Source/out/host/linux-x86/bin:/home/test/Android_Source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin:/home/test/Android_Source/prebuilts/gcc/linux-x86/:/home/test/Android_Source/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin:/home/test/Android_Source/development/scripts:/home/test/Android_Source/prebuilts/devtools/tools:/home/test/Android_Source/prebuilts/android-emulator/linux-x86_64:/home/test/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory

Regards,

Kishore P

If it exist and export it's path, i think you can try "simg2img -h". See what's the log.

Hello Sanshan,

   I replaced "simg2img" with "simg2img -h" , but results is same ,

out/target/product/evk_6sl/system_sparse.img+out/target/product/evk_6sl/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=481738752 blocksize=4224 total=403801046 reserve=4866048

if [ true = true ]; then \

        simg2img -h out/target/product/evk_6sl/system_sparse.img out/target/product/evk_6sl/system.img; \

        fi

/bin/bash: line 1: simg2img: command not found

make: *** [out/target/product/evk_6sl/system_sparse.img] Error 127

make: *** Deleting file `out/target/product/evk_6sl/system_sparse.img'

Regards,

Kishore P

Hello Sanshan,

  If we go for --help following output is showed

...:~/Android_Source$ simg2img --help

    Usage: simg2img <sparse_image_files> <raw_image_file>

But still /bin/bash: line 1: simg2img: command not found

error is got.

Regards,

Kishore P

%3CLINGO-SUB%20id%3D%22lingo-sub-1113192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThere%20are%20two%20format%20system%20image(ext4)%3A%20raw%20and%20sparse.%20The%20raw%20image%20is%26nbsp%3B%20larger%2C%20you%20can%20mount%20it%20to%20ext4%20directly(mount%20-t%20ext4%20system.img%20system).%20The%20sparse%20image%20is%20supported%20lp5.0%2C%20it%20is%20a%20bit%20smaller.%20The%20below%20part%20will%20take%20IMX7D%20SDB%20board%20as%20example.%20You%20can%20change%20the%20setting%20according%20your%20platform%20hardware.%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E1%20generate%20sparse%20image%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20font-family%3A%20Arial%2C%20sans-serif%3B%20color%3A%20%23303030%3B%22%3EIn%20Lollipop%205.0%20and%205.1%2C%20both%20raw%20image%20and%20sparse%20image%20will%20be%20generated%20by%20default.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Esparse%20system%20image%20is%20located%20in%3A%20out%2Ftarget%2Fproduct%2Fsabresd_7d%2Fsystem_sparse.img%3C%2FP%3E%3CP%3Eraw%20system%20image%20is%20located%20in%3Aout%2Ftarget%2Fproduct%2Fsabresd_7d%2Fsystem.img%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20font-family%3A%20Arial%2C%20sans-serif%3B%20color%3A%20%23303030%3B%22%3EBelow%20are%20the%20steps%20used%20in%20android%20build%20system%20to%20generate%20system.img%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3Ebuild%20out%20sparse%20image(-s%20means%20the%20building%20system%20image%20is%20sparse)%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20make_ext4fs%20-s%20-T%20-1%20-S%20out%2Ftarget%2Fproduct%2Fsabresd_7d%2Froot%2Ffile_contexts%20-l%20374476800%20-a%20system%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20out%2Ftarget%2Fproduct%2Fsabresd_7d%2Fobj%2FPACKAGING%2Fsystemimage_intermediates%2Fsystem.img%20out%2Ftarget%2Fproduct%2Fsabresd_7d%2Fsystem%3C%2FP%3E%3CUL%3E%3CLI%3Etransform%20sparse%20image%20to%20raw%20image%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20simg2img%20out%2Ftarget%2Fproduct%2Fsabresd_7d%2Fsystem_sparse.img%20out%2Ftarget%2Fproduct%2Fsabresd_7d%2Fsystem.img%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E2%20burn%20sparse%20image%20to%20sd%2Femmc%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23303030%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20font-family%3A%20Arial%2C%20sans-serif%3B%22%3EThere%20are%20two%20ways%20to%20program%20the%20sparse%20image%20into%20android%20boot%20storage%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CUL%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CLI%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20font-family%3A%20inherit%3B%20color%3A%20%23303030%3B%22%3ETransform%20the%20sparse%20image%20into%20raw%20image%20in%20host%20Linux%20PC.%20And%20use%20the%20commands%20dd%20commands%20to%20program%20the%20raw%20image%20into%20the%20boot%20storage.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20style%3D%22font-size%3A%2010.5pt%3B%20font-family%3A%20inherit%3B%20color%3A%20%23303030%3B%22%3EProgram%20the%20sparse%20image%20with%20MFG%20Tool%20in%20i.MX%20Android%20release%20package.%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Steps%3A%3C%2FP%3E%3CUL%3E%3CUL%3E%3CUL%3E%3CLI%3Ecopy%20system_sparse.img%20to%20files%2Fandroid%2Fsabresd%2F.%3C%2FLI%3E%3CLI%3Ecopy%20simg2img%20binary%20(in%20simg2img.zip)%20to%20files%2Fandroid%2F.%3C%2FLI%3E%3CLI%3EYou%20also%20need%20update%20mfgtools-without-rootfs.tar%5Cmfgtools%5CProfiles%5CLinux%5COS%20Firmware%5Cucl2.xml%3C%2FLI%3E%3C%2FUL%3E%3C%2FUL%3E%3C%2FUL%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22c%2B%2B%22%20name%3D%22code%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20diff%20--git%20a%2FProfiles%2FLinux%2FOS%20Firmware%2Fucl2.xml%20b%2FProfiles%2FLinux%2FOS%20Firmware%2Fucl2.xml%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20index%203b15ddd..3c3d2ae%20100755%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20a%2FProfiles%2FLinux%2FOS%20Firmware%2Fucl2.xml%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%2B%2B%20b%2FProfiles%2FLinux%2FOS%20Firmware%2Fucl2.xml%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%40%40%20-621%2C8%20%2B621%2C12%20%40%40%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22%24%20mkfs.ext4%20%2Fdev%2Fmmcblk%25mmc%25p6%22%3EFormatting%20cache%20partition%3C%2FCMD%3E%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22%24%20mkfs.ext4%20%2Fdev%2Fmmcblk%25mmc%25p7%22%3EFormatting%20device%20partition%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22pipe%20dd%20of%3D%2Fdev%2Fmmcblk%25mmc%25p5%20bs%3D512%22%20file%3D%22files%2Fandroid%2Fsabresd%2Fsystem.img%22%3ESending%20and%20writting%20system.img%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22send%22%20file%3D%22files%2Fandroid%2Fsimg2img%22%20ifdev%3D%22MX7D%22%3ESending%20simg2img%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22%24%20cp%20%24FILE%20%2Ftmp%2Fsimg2img%20%22%3Ecp%20simg2img%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22%24%20chmod%26nbsp%3B%20777%20%2Ftmp%2Fsimg2img%20%22%3Echmod%20777%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22%24%26nbsp%3B%20mount%20-o%20remount%2Csize%3D512M%20rootfs%20%2F%22%3Echange%20size%20of%20tmpfs%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22send%22%20file%3D%22files%2Fandroid%2Fsabresd%2Fsystem_sparse.img%22%20ifdev%3D%22MX7D%22%3ESending%20system_sparse.img%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20body%3D%22%24%20%2Ftmp%2Fsimg2img%20%24FILE%20%2Fdev%2Fmmcblk%25mmc%25p5%22%3ESending%20and%20writting%20system_sparse.img%3C%2FCMD%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C!--%20Write%20userdata.img%20is%20optional%2C%20for%20some%20customer%20this%20is%20needed%2C%20but%20it's%20optional.%20--%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C!--%20Also%2C%20userdata.img%20will%20have%20android%20unit%20test%2C%20you%20can%20use%20this%20to%20do%20some%20auto%20test.%20--%3E%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C!--%C2%A0%C2%A0%C2%A0%20%3CCMD%20state%3D%22Updater%22%20type%3D%22push%22%20onError%3D%22ignore%22%20body%3D%22pipe%20dd%20of%3D%2Fdev%2Fmmcblk0p7%22%20file%3D%22file%2Fandroid%2Fuserdate.img%22--%3E%20Sending%20userdata.%3C%2FPRE%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E3%20Support%20sparse%20image%20in%20uboot(v2014.04)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Cheery-pick%20sparse%20image%20related%20patches.%20Use%20write_sparse_image%20to%20burn%20sparse%20system%20image.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20For%20detail%20information%2C%20Please%20check%20the%20attached%20file(uboot(v2014.04)which%20support%20sparseimage.zip%20)%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20The%20step%20of%20apply%20these%20patches%3A%3C%2FP%3E%3CUL%3E%3CLI%3Ecd%20myandroid%2Fbootable%2Fbootloader%2Fuboot-imx%2F%3C%2FLI%3E%3CLI%3Ecopy%20uboot(v2014.04)%20which%20support%20sparseimage.zip%20to%20myandroid%2Fbootable%2Fbootloader%2Fuboot-imx%2F%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20unzip%20uboot(v2014.04)%20which%20support%20sparseimage.zip%3C%2FP%3E%3CUL%3E%3CLI%3Egit%20am%200001-add-header-for-Android-sparse-image-format.patch%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20git%20am%200002-add-code-to-handle-Android-sparse-image-format.patch%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20git%20am%200003-update-code-which-handles-Android-sparse-image-forma.patch%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20git%20am%200004-cleanup-code-which-handles-the-Android-sparse-image-.patch%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20git%20am%200005-implement-the-Android-sparse-image-format.patch%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20git%20am%200006-aboot-fix-block-addressing-for-don-t-care-chunk-type.patch%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20git%20am%200007-MA-6732-Add-sparse-image-flash-support-for-uboot-s-f.patch%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20page%20will%20keep%20updating.%3C%2FP%3E%3CP%20style%3D%22min-%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReference%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CA%20_jive_internal%3D%22true%22%20data-containerid%3D%222004%22%20data-containertype%3D%2214%22%20data-objectid%3D%22105198%22%20data-objecttype%3D%22102%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-105198%22%20target%3D%22_blank%22%3EHow%20to%20enable%20userdata.img%20and%20cache.img%20in%20lollipop%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113198%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113198%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Sanshan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20If%20we%20go%20for%20--help%20following%20output%20is%20showed%3C%2FP%3E%3CP%3E%3CSTRONG%3E...%3A~%2FAndroid_Source%24%20simg2img%20--help%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Usage%3A%20simg2img%20%3CSPARSE_IMAGE_FILES%3E%20%3CRAW_IMAGE_FILE%3E%3C%2FRAW_IMAGE_FILE%3E%3C%2FSPARSE_IMAGE_FILES%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBut%20still%20%3CSTRONG%3E%2Fbin%2Fbash%3A%20line%201%3A%20simg2img%3A%20command%20not%20found%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Eerror%20is%20got.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EKishore%20P%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113197%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113197%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Sanshan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%20I%20replaced%20%22simg2img%22%20with%20%22simg2img%20-h%22%20%2C%20but%20results%20is%20same%20%2C%20%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eout%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%2Bout%2Ftarget%2Fproduct%2Fevk_6sl%2Fobj%2FPACKAGING%2Frecovery_patch_intermediates%2Frecovery_from_boot.p%20maxsize%3D481738752%20blocksize%3D4224%20total%3D403801046%20reserve%3D4866048%3C%2FP%3E%3CP%3E%3CSTRONG%3Eif%20%5B%20true%20%3D%20true%20%5D%3B%20then%20%5C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20simg2img%20-h%20out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%20out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem.img%3B%20%5C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20fi%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%2Fbin%2Fbash%3A%20line%201%3A%20simg2img%3A%20command%20not%20found%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Emake%3A%20***%20%5Bout%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%5D%20Error%20127%3C%2FP%3E%3CP%3Emake%3A%20***%20Deleting%20file%20%60out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img'%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EKishore%20P%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113196%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113196%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20it%20exist%20and%20export%20it's%20path%2C%20i%20think%20you%20can%20try%20%22simg2img%20-h%22.%20See%20what's%20the%20log.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CSPAN%20class%3D%22replyToName%22%3ESanshan%20Zhang%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22replyToName%22%3E%26nbsp%3B%20Thanks%20for%20reply%2C%20%3CSTRONG%3Esimg2img%20is%20exit%20%3C%2FSTRONG%3Ein%20%3CSTRONG%3E%20%2Fout%2Fhost%2Flinux-x86%2Fbin%3C%2FSTRONG%3E%20path%20and%20it%20is%20exported%20to%20PATH%20also.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22replyToName%22%3EAny%20think%20we%20have%20to%20enable%20in%20the%20kernel%20%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20class%3D%22replyToName%22%3Eextra%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22replyToName%22%3E%20%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20class%3D%22replyToName%22%3Eother%20than%20default%20option%20given%20by%20freescale%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22replyToName%22%3E...%3F%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22replyToName%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26gt%3B%24PATH%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Ebash%3A%20%2Fusr%2Flib%2Fjvm%2Fjava-7-openjdk-amd64%2Fbin%3A%3CSTRONG%3E%2Fhome%2Ftest%2FAndroid_Source%2Fout%2Fhost%2Flinux-x86%2Fbin%3C%2FSTRONG%3E%3A%2Fhome%2Ftest%2FAndroid_Source%2Fprebuilts%2Fgcc%2Flinux-x86%2Farm%2Farm-linux-androideabi-4.8%2Fbin%3A%2Fhome%2Ftest%2FAndroid_Source%2Fprebuilts%2Fgcc%2Flinux-x86%2F%3A%2Fhome%2Ftest%2FAndroid_Source%2Fprebuilts%2Fgcc%2Flinux-x86%2Farm%2Farm-eabi-4.8%2Fbin%3A%2Fhome%2Ftest%2FAndroid_Source%2Fdevelopment%2Fscripts%3A%2Fhome%2Ftest%2FAndroid_Source%2Fprebuilts%2Fdevtools%2Ftools%3A%2Fhome%2Ftest%2FAndroid_Source%2Fprebuilts%2Fandroid-emulator%2Flinux-x86_64%3A%2Fhome%2Ftest%2Fbin%3A%2Fusr%2Flocal%2Fsbin%3A%2Fusr%2Flocal%2Fbin%3A%2Fusr%2Fsbin%3A%2Fusr%2Fbin%3A%2Fsbin%3A%2Fbin%3A%2Fusr%2Fgames%3A%2Fusr%2Flocal%2Fgames%3A%20No%20such%20file%20or%20directory%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EKishore%20P%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20kishore%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EDoes%20you%20have%20check%20whether%20%2Fout%2Fhost%2Flinux-x86%2Fbin%2Fsimg2img%20exist%3F%3C%2FP%3E%3CP%3EIf%26nbsp%3B%26nbsp%3B%20it%20exists%2C%20you%20can%20check%20if%20the%20%2Fout%2Fhost%2Flinux-x86%2Fbin%2F%20is%20export%20to%20PATH.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113193%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20enable%20sparse%20image%20in%20android%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113193%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Sanshan%20Zhang%2C%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3EWhen%20I%20building%20android(Lollipop%205.0.0.1)%20for%20imx6slevk%20board%20%2C%20system.img%20is%20not%20able%20to%20generate%20from%20%3CSPAN%20style%3D%22color%3A%20%2351626f%3B%20font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%22%3Esystem_sparse.img.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3EFollowing%20error%20is%20obtained%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3EInstall%20system%20fs%20image%3A%20out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3Eout%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%2Bout%2Ftarget%2Fproduct%2Fevk_6sl%2Fobj%2FPACKAGING%2Frecovery_patch_intermediates%2Frecovery_from_boot.p%20maxsize%3D481738752%20blocksize%3D4224%20total%3D403801046%20reserve%3D4866048%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3Eif%20%5B%20true%20%3D%20true%20%5D%3B%20then%20%5C%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20simg2img%20out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%20out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem.img%3B%20%5C%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20fi%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-style%3A%20inherit%3B%20font-family%3A%20inherit%3B%22%3E%2Fbin%2Fbash%3A%20line%201%3A%20simg2img%3A%20command%20not%20found%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-style%3A%20inherit%3B%20font-family%3A%20inherit%3B%22%3Emake%3A%20***%20%5Bout%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img%5D%20Error%20127%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-style%3A%20inherit%3B%20font-family%3A%20inherit%3B%22%3Emake%3A%20***%20Deleting%20file%20%60out%2Ftarget%2Fproduct%2Fevk_6sl%2Fsystem_sparse.img'%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3EIs%20their%20any%20patches%20to%20apply%20which%20%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%20font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3ESupport%20sparse%20image%20in%20android..%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3Eplease%20help%20me%20sort%20out%20this%20issue...%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3ERegards%2C%3C%2FP%3E%3CP%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20'helvetica%20neue'%2C%20verdana%2C%20sans-serif%3B%20color%3A%20%2351626f%3B%22%3EKishore%20P%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 02:21 AM
Updated by: