<?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>i.MX ProcessorsのトピックRe: MFG Tools: eMMC partitioning for Android</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312447#M40908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have delved into this, but I have not found the reason of the additional ${seprate}.&lt;/P&gt;&lt;P&gt;But I tried to set the variable to 0 and the partitions and Android seems to be working with no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 17:14:45 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2014-05-13T17:14:45Z</dc:date>
    <item>
      <title>MFG Tools: eMMC partitioning for Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312445#M40906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm studing the process performed by MFG Tools to partition, format and installing the Android firmware on a eMMC device.&lt;/P&gt;&lt;P&gt;Looking at the mksdcard-android.sh script, I see the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;# call sfdisk to create partition table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;# get total card size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;seprate=40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;total_size=`sfdisk -s ${node}`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;total_size=`expr ${total_size} / 1024`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;boot_rom_sizeb=`expr ${BOOT_ROM_SIZE} + ${BOOTLOAD_RESERVE}`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;extend_size=`expr ${SYSTEM_ROM_SIZE} + ${CACHE_SIZE} + ${VENDER_SIZE} + ${MISC_SIZE} + ${seprate}`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data_size=`expr ${total_size} - ${boot_rom_sizeb} - ${RECOVERY_ROM_SIZE} - ${extend_size} + ${seprate}`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;# destroy the partition table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dd if=/dev/zero of=${node} bs=1024 count=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;# create partitions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sfdisk --force -uM ${node} &amp;lt;&amp;lt; EOF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${boot_rom_sizeb},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${RECOVERY_ROM_SIZE},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${extend_size},5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${data_size},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${SYSTEM_ROM_SIZE},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${CACHE_SIZE},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${VENDER_SIZE},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,${MISC_SIZE},83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;EOF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain the meaning the additional ${seprate} with size of 40MB, added to both extended and data partition?&lt;/P&gt;&lt;P&gt;Doing this way, the partitioning exceed the total size of storage device.&lt;/P&gt;&lt;P&gt;This is also reported by logs generated by the target when MFG Tools are partitioning the device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Disk /dev/mmcblk0: 238592 cylinders, 4 heads, 16 sectors/track&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sfdisk: ERROR: sector 0 does not have an msdos signature&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; /dev/mmcblk0: unrecognized partition table type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Old situation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;No partitions found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Warning: given size (6392) exceeds max allowable size (6352)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;New situation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Device Boot Start End MiB #blocks Id System&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p1 0+ 15 16- 16383+ 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p2 16 23 8 8192 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p3 24 1103 1080 1105920 5 Extended&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p4 1104 7495 6392 6545408 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p5 24+ 535 512- 524287+ 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p6 536+ 1047 512- 524287+ 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p7 1048+ 1055 8- 8191+ 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/mmcblk0p8 1056+ 1063 8- 8191+ 83 Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Warning: partition 4 extends past end of disk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Successfully wrote the new partition table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Re-reading the partition table ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; mmcblk0: p1 p2 p3 &amp;lt; p5 p6 p7 p8 &amp;gt; p4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;mmcblk0: p4 size 13090816 extends beyond EOD, truncated&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 09:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312445#M40906</guid>
      <dc:creator>carlobarbaro</dc:creator>
      <dc:date>2014-04-08T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: MFG Tools: eMMC partitioning for Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312446#M40907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your post, however please consider moving it to the right community place (e.g. &lt;A href="https://community.nxp.com/space/2004"&gt;i.MX Community &lt;/A&gt;) to get it visible for active members.&lt;/P&gt;&lt;P&gt;For details please see general advice &lt;A _jive_internal="true" data-containerid="2001" data-containertype="14" data-objectid="99909" data-objecttype="102" href="https://community.nxp.com/docs/DOC-99909"&gt;Where to post a Discussion?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for using Freescale Community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 12:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312446#M40907</guid>
      <dc:creator>Wlodek_D_</dc:creator>
      <dc:date>2014-04-08T12:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: MFG Tools: eMMC partitioning for Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312447#M40908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have delved into this, but I have not found the reason of the additional ${seprate}.&lt;/P&gt;&lt;P&gt;But I tried to set the variable to 0 and the partitions and Android seems to be working with no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 17:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-Tools-eMMC-partitioning-for-Android/m-p/312447#M40908</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-05-13T17:14:45Z</dc:date>
    </item>
  </channel>
</rss>

