<?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 Re: fsl-sdcard-partition.sh(android8.0) had bug in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788938#M122281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Diego.&lt;/P&gt;&lt;P&gt;I using follow command：&lt;BR /&gt;sudo ../../../../device/fsl/common/tools/fsl-sdcard-partition.sh -f imx6q -c 14 /dev/sdb.&lt;/P&gt;&lt;P&gt;now i use mfg tool to flash emmc. Don't need it now.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Crl6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2018 01:23:30 GMT</pubDate>
    <dc:creator>crl6crl6</dc:creator>
    <dc:date>2018-10-11T01:23:30Z</dc:date>
    <item>
      <title>fsl-sdcard-partition.sh(android8.0) had bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788936#M122279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;HI, All,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Anyone can help me?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P&gt;imx6_andriod8.0_source_code_1\device\fsl\common\tools\fsl-sdcard-partition.sh had bug.can't burn sdcard.&lt;BR /&gt;After&amp;nbsp;flash&amp;nbsp;uboot(u-boot-imx6q.imx) &lt;SPAN style="color: #51626f; border: 0px; font-weight: bold; font-size: 14px;"&gt;&lt;STRONG&gt;GPT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;had been destroy.&lt;/P&gt;&lt;P&gt;function make_partition&lt;BR /&gt;{&lt;BR /&gt; if [ ${card_size} -gt 0 ]; then&lt;BR /&gt; partition_file="partition-table-${card_size}GB.img"&lt;BR /&gt; fi&lt;BR /&gt; &lt;STRONG&gt;#${node}=/dev/sdb,vaild_gpt_size=17&lt;/STRONG&gt;&lt;BR /&gt; echo "make gpt partition for android: ${partition_file} node=${node}"&lt;BR /&gt; dd if=${partition_file} of=${node} bs=1k count=${vaild_gpt_size} conv=fsync&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function flash_android&lt;BR /&gt;{&lt;BR /&gt;if [ "${flash_images}" -eq "1" ]; then&lt;BR /&gt; bootloader_file="u-boot-${soc_name}.imx"&lt;BR /&gt; flash_partition boot&lt;BR /&gt; flash_partition recovery&lt;BR /&gt; simg2img ${systemimage_file} ${systemimage_raw_file}&lt;BR /&gt; flash_partition system&lt;BR /&gt; rm ${systemimage_raw_file}&lt;BR /&gt; simg2img ${vendor_file} ${vendor_raw_file}&lt;BR /&gt; flash_partition vendor&lt;BR /&gt; rm ${vendor_raw_file}&lt;BR /&gt; flash_partition vbmeta&lt;BR /&gt; echo "erase_partition: uboot : node=${node}"&lt;BR /&gt; echo "flash_partition: ${bootloader_file} ---&amp;gt; ${node}"&lt;BR /&gt; first_partition_offset=`gdisk -l ${node} | grep ' 1 ' | awk '{print $2}'`&lt;BR /&gt; # the unit of first_partition_offset is sector size which is 512 Byte.&lt;BR /&gt; count_bootloader=`expr ${first_partition_offset} / 2 - ${bootloader_offset}`&lt;BR /&gt; echo "the bootloader partition size: ${count_bootloader}"&lt;BR /&gt; &lt;STRONG&gt;#bootloader_offset=1, count_bootloader=8191,${node}=/dev/sdb&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;#as follows command destroy GPT&amp;nbsp;.&lt;/STRONG&gt;&lt;BR /&gt; dd if=/dev/zero of=${node} bs=1k seek=${bootloader_offset} conv=fsync count=${count_bootloader}&lt;BR /&gt; dd if=${bootloader_file} of=${node} bs=1k seek=${bootloader_offset} conv=fsync&lt;BR /&gt;fi&lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;related question：&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;A href="https://community.nxp.com/thread/484587"&gt;Android8 Filesystem not Mounted(To boot from the SD card)&lt;/A&gt;&amp;nbsp;(&lt;/P&gt;&lt;H1 style="color: #646464; border: 0px; font-weight: 200; font-size: 2rem;"&gt;Android8 Filesystem not Mounted(To boot from the SD card)&lt;/H1&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;crr6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2018 09:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788936#M122279</guid>
      <dc:creator>crl6crl6</dc:creator>
      <dc:date>2018-09-22T09:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: fsl-sdcard-partition.sh(android8.0) had bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788937#M122280</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 apologize for the late answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how are you using the fsl-sdcard-partition.sh scrip?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788937#M122280</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2018-10-10T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: fsl-sdcard-partition.sh(android8.0) had bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788938#M122281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Diego.&lt;/P&gt;&lt;P&gt;I using follow command：&lt;BR /&gt;sudo ../../../../device/fsl/common/tools/fsl-sdcard-partition.sh -f imx6q -c 14 /dev/sdb.&lt;/P&gt;&lt;P&gt;now i use mfg tool to flash emmc. Don't need it now.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Crl6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 01:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/fsl-sdcard-partition-sh-android8-0-had-bug/m-p/788938#M122281</guid>
      <dc:creator>crl6crl6</dc:creator>
      <dc:date>2018-10-11T01:23:30Z</dc:date>
    </item>
  </channel>
</rss>

