<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to generate userdata.img and flashing into eMMC? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351605#M48902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Our project is based on i.MX6 Sololite EVK with&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; IMX6_JB43_110_ANDROID_SOURCE_BSP, as we all know, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;system.img, recovery.img, boot.img and u-boot.bin are the 4 image files that will be generated for SD card/eMMC flashing. In this project, we need to integrate some customized APKs which should be pre-installed but should be able removed/updated by end user after product delivery. Which means they cannot be installed as system APPs in /system/app folder but User APPs in /data/app folder. However, we don't know how to generate the userdata.img neither the way to flash it into eMMC together with other 4 files, although we have the APKs put in myandroid/out/target/product/evk_6sl&lt;SPAN style="color: #000000;"&gt;/data/app folder. Appreciate any suggestion/comment. Thanks in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;-tftu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 12:15:16 GMT</pubDate>
    <dc:creator>tftu</dc:creator>
    <dc:date>2015-01-16T12:15:16Z</dc:date>
    <item>
      <title>How to generate userdata.img and flashing into eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351605#M48902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Our project is based on i.MX6 Sololite EVK with&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; IMX6_JB43_110_ANDROID_SOURCE_BSP, as we all know, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;system.img, recovery.img, boot.img and u-boot.bin are the 4 image files that will be generated for SD card/eMMC flashing. In this project, we need to integrate some customized APKs which should be pre-installed but should be able removed/updated by end user after product delivery. Which means they cannot be installed as system APPs in /system/app folder but User APPs in /data/app folder. However, we don't know how to generate the userdata.img neither the way to flash it into eMMC together with other 4 files, although we have the APKs put in myandroid/out/target/product/evk_6sl&lt;SPAN style="color: #000000;"&gt;/data/app folder. Appreciate any suggestion/comment. Thanks in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;-tftu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351605#M48902</guid>
      <dc:creator>tftu</dc:creator>
      <dc:date>2015-01-16T12:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate userdata.img and flashing into eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351606#M48903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We finally found the way by tracing the Makefile, BOARD_USERDATAIMAGE_PARTITION_SIZE should be set in BoardConfigCommon.mk and then userdata.img will be generated with other image files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, after we enable the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;userdata.img section in MfgTool's ucl2.xml and change to below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" onError="ignore" body="pipe dd of=/dev/mmcblk0p4" file="file/android/userdata.img"&amp;gt; Sending userdata.img(optional) &amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we tried to run &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MfgTool2.exe, we got below error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DLL version: 2.2.3&lt;/P&gt;&lt;P&gt;Wednesday, January 28, 2015 17:20:41&amp;nbsp;&amp;nbsp; Start new logging&lt;/P&gt;&lt;P&gt;ModuleID[2] LevelID[1]: Push command--file Z:\Mfgtool_Sololite\Profiles\MX6SL Linux Update\OS Firmware\file\android\userdata.img failed to open.errcode is 3&lt;/P&gt;&lt;P&gt;ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use 4G eMMC, and have tried&amp;nbsp; "BOARD_USERDATAIMAGE_PARTITION_SIZE := 2684354560" and "BOARD_USERDATAIMAGE_PARTITION_SIZE := 293601280" &lt;SPAN style="font-size: 13.3333330154419px;"&gt;(the APK file size is less than 20MB), but both got the same error. And we have double checked the file name and location, nothing wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 09:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351606#M48903</guid>
      <dc:creator>tftu</dc:creator>
      <dc:date>2015-01-28T09:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate userdata.img and flashing into eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351607#M48904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha! There are so many default mistakes in freescale's MfgTool ucl2.xml, we fixed the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;userdate.img"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(should be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;userdata.img&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt; and "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;mmcblk0p7"(should be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;mmcblk0p4&lt;/SPAN&gt;), but was forgetting to check the path name : &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"FILE/android/..." (should be "files").&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now it works like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-tftu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 10:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351607#M48904</guid>
      <dc:creator>tftu</dc:creator>
      <dc:date>2015-01-28T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate userdata.img and flashing into eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351608#M48905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your feedback Tsung-Fang!, and for posting the solution for it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 18:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351608#M48905</guid>
      <dc:creator>SergioSolis</dc:creator>
      <dc:date>2015-02-19T18:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate userdata.img and flashing into eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351609#M48906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;A href="https://community.nxp.com/people/tftu"&gt;tftu&lt;/A&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is my patch enable userdate.img cache.img.&lt;/P&gt;&lt;P&gt;The builded out image is sparse image. So The mfgtool can't burn in sparse image.&lt;/P&gt;&lt;P&gt;You need simg2img to convert sparse image to raw image.&amp;nbsp; &lt;STRONG&gt;userdata_raw.img is the what mfgtool need.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;~/lp5.1_sabresd_7d_4_20/out/target/product/sabresd_7d# ../../../host/linux-x86/bin/simg2img userdata.img ./userdata_raw.img&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/imx7/BoardConfigCommon.mk b/imx7/BoardConfigCommon.mk&lt;/P&gt;&lt;P&gt;index 14e4881..c207727 100644&lt;/P&gt;&lt;P&gt;--- a/imx7/BoardConfigCommon.mk&lt;/P&gt;&lt;P&gt;+++ b/imx7/BoardConfigCommon.mk&lt;/P&gt;&lt;P&gt;@@ -61,7 +61,11 @@ BOARD_BOOTIMAGE_PARTITION_SIZE :=&amp;nbsp; 16777216&lt;/P&gt;&lt;P&gt; BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BOARD_SYSTEMIMAGE_PARTITION_SIZE := 377487360&lt;/P&gt;&lt;P&gt;+BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800&lt;/P&gt;&lt;P&gt;+TARGET_USERIMAGES_USE_EXT4 := true&lt;/P&gt;&lt;P&gt;+BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016&lt;/P&gt;&lt;P&gt;+BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4&lt;/P&gt;&lt;P&gt; BOARD_FLASH_BLOCK_SIZE := 4096&lt;/P&gt;&lt;P&gt; TARGET_RECOVERY_UI_LIB := librecovery_ui_imx&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;+TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true&lt;/P&gt;&lt;P&gt; -include device/google/gapps/gapps_config.mk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351609#M48906</guid>
      <dc:creator>sanshanzhang</dc:creator>
      <dc:date>2015-05-22T10:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate userdata.img and flashing into eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351610#M48907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I follow above steps to reload userdata.img to eMMC, &amp;nbsp;but after that, my size of /data partition will also less or&amp;nbsp;equal "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BOARD_USERDATAIMAGE_PARTITION_SIZE"; &amp;nbsp;if the value is 256MB or 1GB, the /data partition will also 256Mb or 1GB. I can't use r&lt;/SPAN&gt;emaining or whole size of eMMC. Anyone have same issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;P&gt;David Wu&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;FORM enctype="application/x-www-form-urlencoded" name="text_form"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/FORM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 08:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-userdata-img-and-flashing-into-eMMC/m-p/351610#M48907</guid>
      <dc:creator>david5icp</dc:creator>
      <dc:date>2017-02-11T08:52:54Z</dc:date>
    </item>
  </channel>
</rss>

