<?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: u-boot for Android can't find partitions from eMMC in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881710#M133679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found an old thread that appears to be a similar if not the same problem:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/471393"&gt;https://community.nxp.com/thread/471393&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's assumed answered but I didn't see a solution in that thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2019 17:37:16 GMT</pubDate>
    <dc:creator>dennis3</dc:creator>
    <dc:date>2019-03-22T17:37:16Z</dc:date>
    <item>
      <title>u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881709#M133678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script to set up the android file system (fsl-sdcard-partition.sh) includes the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) dd partition-table.img to card dev (/dev/sdN)&lt;/P&gt;&lt;P&gt;&amp;nbsp;note actual command has bs=1k count=${valid_gpt_size} where valid_gpt_size is set to 17 in my android 8 script. and the size of the imx is actually around 34K.&lt;/P&gt;&lt;P&gt;2) Formats/copies all the partition data.&lt;/P&gt;&lt;P&gt;3) dd u-boot.imx to /dev/sdN bs=1k seek=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, in Linux at least, the partitions disappear because 1k offset for u-boot overwrites part of the GPT table. &amp;nbsp;However, apparently this is OK because u-boot can read the backup GPT table at boot time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if I have my board set up to boot from the sdcard (sd3 in my case), android boots fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If however, I flash the images to my emmc card, everything seems to be correctly written to the emmc&amp;nbsp;but at boot time, u-boot complains that it can't find the boot partition. &amp;nbsp;I'm using a custom method of getting the data on the emmc storage (it's a custom board).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my question is.. do I need to enable something differently in the u-boot build to correctly work with emmc as opposed to the normal sd card boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd question,&amp;nbsp;I'm aware mfgtool can deploy over USB to emmc storage but as stated, I'm not using that approach. &amp;nbsp;If I were to use that approach, does mfgtool do something differently to the emmc setup that the normal sdcard setup script does not do? &amp;nbsp;(I'm not completely sure how to use the emmc boot partitions yet and don't know if this is causing part of the issue or not.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips on helping me get Android up and running from the emmc greatly appreciated. &amp;nbsp;If I use the sdcard, I can completely boot up with our custom LCD, touch panel and hardware so I'm pretty sure I just need to get u-boot to load android correctly from the emmc and the rest will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 17:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881709#M133678</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2019-03-22T17:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881710#M133679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found an old thread that appears to be a similar if not the same problem:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/471393"&gt;https://community.nxp.com/thread/471393&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's assumed answered but I didn't see a solution in that thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 17:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881710#M133679</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2019-03-22T17:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881711#M133680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use MBR instead of GPT for partitioning the device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 07:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881711#M133680</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2019-03-26T07:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881712#M133681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MBR can only have 4 primary partitions... or 3 and and extended w/ more partitions. &amp;nbsp;Can u-boot work with the primary/extended partitions? &amp;nbsp;Which Android partitions go in which partition scheme. &amp;nbsp; Does it matter? I guess I can experiment with this but it seem problematic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 13:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881712#M133681</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2019-03-26T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881713#M133682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not much luck with trying to create an MBR directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; mmc dev 2&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc2(part 0) is current device&lt;BR /&gt;=&amp;gt; mmc part&lt;/P&gt;&lt;P&gt;Partition Map for MMC device 2 -- Partition Type: DOS&lt;/P&gt;&lt;P&gt;Part Start Sector Num Sectors UUID Type&lt;BR /&gt; 1 2048 65536 5fb3f54b-01 83&lt;BR /&gt; 2 67584 65536 5fb3f54b-02 83&lt;BR /&gt; 3 133120 3145728 5fb3f54b-03 83&lt;BR /&gt; 4 3278848 3121152 5fb3f54b-04 05 Extd&lt;BR /&gt;bad MBR sector signature 0x0000&lt;BR /&gt;=&amp;gt; boota mmc2 &lt;BR /&gt;boota mmc2 &lt;BR /&gt;can't find partition: boot, dump the partition table&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;idx 0, ptn 0 name='gpt' start=0 len=2048&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;idx 1, ptn 0 name='bootloader' start=2 len=2046 // these are eMMC partitions&lt;/SPAN&gt;&lt;BR /&gt;idx 2, ptn 1 name='mmcsdc1' start=2048 len=65536&lt;BR /&gt;idx 3, ptn 2 name='mmcsdc2' start=67584 len=65536&lt;BR /&gt;idx 4, ptn 3 name='mmcsdc3' start=133120 len=3145728&lt;BR /&gt;boota: cannot find 'boot' partition&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can actually execute the default boot command differently and get it to start the kernel though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; boota mmc2 mmcsdc1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will find the kernel and start the android boot. &amp;nbsp;As the kernel boots and tries to find all the rest of the Android partitions it will still fail though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is as I see it, regardless of how I partition the emmc device, I always get the hardware partitions listed from the eMMC device (in red above) that seem to interfere with uboot finding the correct partitions for android. &amp;nbsp;How does one set uboot env parameters to find the correct partition table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 21:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881713#M133682</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2019-03-26T21:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881714#M133683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anyone else runs into this, the commands that mfgtool uses to create the partitions no an eMMC chip are slightly different than those that are in use by a regular SD card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) u-boot is written to the&amp;nbsp;built in mmcblkXboot0 instead of being written over the top of the GPT table at 1k offset.&lt;/P&gt;&lt;P&gt;2) boot0 partition can then be enabled to stream u-boot data to CPU at power on with mmc command that is included in the mmc-utils package.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt; dd if=u-boot.imx of=/dev/mmcblkXboot0 bs=1k seek=1&lt;/P&gt;&lt;P&gt;&amp;gt; mmc bootpart enable 1 1 /dev/mmcblkX&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Other than that, the image is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 01:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881714#M133683</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2019-04-10T01:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881715#M133684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis Muhlestein&lt;/P&gt;&lt;P&gt;I'm also facing same issue with eMMC booting, please suggest me if you have any input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eMMc flashing is done using fsl script, but issue is when booting up my custom board it's not able to mount partition like system, vendor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2020 16:42:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881715#M133684</guid>
      <dc:creator>balaarulsankar</dc:creator>
      <dc:date>2020-02-09T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881716#M133685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/balaarulsankar@gmail.com"&gt;balaarulsankar@gmail.com&lt;/A&gt;‌ if you can boot into u-boot at least and use the command prompt, you an use the mmc command to check/list your partitions. &amp;nbsp;If you used the commands listed above, your u-boot image won't overwrite your partition table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 18:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881716#M133685</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2020-02-10T18:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881717#M133686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dennis Muhlestein, Now I'm able to mount all partitions and boot my custom board is successful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 14:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/881717#M133686</guid>
      <dc:creator>balaarulsankar</dc:creator>
      <dc:date>2020-02-14T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot for Android can't find partitions from eMMC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/1855343#M223018</link>
      <description>&lt;P&gt;One can try a patch in u-boot for &lt;A href="https://patchwork.ozlabs.org/project/uboot/patch/20240422181733.179881-1-kishan.dudhatra@siliconsignals.io/" target="_blank" rel="noopener"&gt;https://patchwork.ozlabs.org/project/uboot/patch/20240422181733.179881-1-kishan.dudhatra@siliconsignals.io/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;from&amp;nbsp; &lt;A title="https://siliconsignals.io/" href="#top" target="_self"&gt;Silicon Signals Pvt. Ltd.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 06:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/u-boot-for-Android-can-t-find-partitions-from-eMMC/m-p/1855343#M223018</guid>
      <dc:creator>r_trivedi123</dc:creator>
      <dc:date>2024-04-26T06:07:50Z</dc:date>
    </item>
  </channel>
</rss>

