<?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: imx sdcard post-boot weirdism in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629405#M95565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never saw such issue before. It seems you are getting secure storage of eMMC mapped on /dev/mmcblk1 instead of /dev/mmcblk2 when expected mmcblk1 (SD card) is not present.&lt;BR /&gt;Please check if there is something regarding to SD card or some other media in /etc/fstab file, Possibly there is some misconfiguration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 07:23:43 GMT</pubDate>
    <dc:creator>b36401</dc:creator>
    <dc:date>2017-03-29T07:23:43Z</dc:date>
    <item>
      <title>imx sdcard post-boot weirdism</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629404#M95564</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 have a very strange issue with mounting a sdcard if the board has been booted without one inserted. The board is an imx7 custom board based of the sabresd7 development board and running &amp;nbsp;4.1.32 Yocto Krogoth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sdcard regarding this issue is only used for AV media files once booting is finished. The board itself boots off NV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue:&lt;/P&gt;&lt;P&gt;1) If the media sdcard is inserted before booting the board everything is fine. After the booting has completed scripts mount the sdcard onto /media/sdcard - everything works and runs fine. I can insert various cards with varying media and ls /media/sdcard will list the media accordingly per card. Whether I manually mount or fstabs mount all is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)This is where things misbehave. If the AV media sdcard is left out during boot then after booting any of the previous &amp;nbsp;cards "appear" to mount and umount same as before. BUT irrespective of the media file on the sdcard&lt;/P&gt;&lt;P&gt;&amp;nbsp;ls /media/sdcard &lt;STRONG&gt;always returns imx7.dtb and zImage&lt;/STRONG&gt;. These two files clearly are not on the card. Every card has been formatted with only a single partition containing the AV media.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is interesting are the results from fdisk -l &amp;nbsp;( before mounting the card after boot/login ) If the card is inserted before booting then fdisk -l will show the card as: &amp;nbsp;&lt;/P&gt;&lt;P&gt;Disk /dev/mmcblk1: 127.8 GB, 127865454592 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 15545 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Boot &amp;nbsp; &amp;nbsp;Start &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Id &amp;nbsp; &amp;nbsp; System&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/dev/mmcblk1p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15546 &amp;nbsp; &amp;nbsp; &amp;nbsp;124852224 &amp;nbsp; &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp; HPFS/NTFS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the sdcard is not inserted before and during the boot process, but after booting has completed then inserted, &amp;nbsp;fdisk -l returns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disk /dev/mmcblk2rpmb: 127.8 GB, 127865454592 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 15545 cylinders&lt;BR /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Device &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Boot &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Id &amp;nbsp; &amp;nbsp; &amp;nbsp;System&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/dev/mmcblk1p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 65 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c &amp;nbsp; &amp;nbsp; &amp;nbsp; Win95 FAT32 (LBA)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/dev/mmcblk1p2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 93 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6080 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;376832 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;83 &amp;nbsp; &amp;nbsp; &amp;nbsp;Linux&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two tests above are using the exact same sdcard for each scenario but clearly the results are wildly different. &amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter how many cards or the number of times the media sdcards are mounted and umounted after booting without a card, the "ls /medial/sdcard" is always the same =&amp;gt;&lt;SPAN&gt; imx7.dtb and zImage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could this be a device tree issue when booting with an empty sdcard slot? Is the driver making a few assumptions and somehow linking over to the zImage and dtb files which are obviously on the board somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:14:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629404#M95564</guid>
      <dc:creator>edwardtyrrell</dc:creator>
      <dc:date>2017-03-28T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: imx sdcard post-boot weirdism</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629405#M95565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never saw such issue before. It seems you are getting secure storage of eMMC mapped on /dev/mmcblk1 instead of /dev/mmcblk2 when expected mmcblk1 (SD card) is not present.&lt;BR /&gt;Please check if there is something regarding to SD card or some other media in /etc/fstab file, Possibly there is some misconfiguration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 07:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629405#M95565</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2017-03-29T07:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: imx sdcard post-boot weirdism</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629406#M95566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor, thanks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I have commented out the line /etc/fstab which auto mounts, it makes no difference. I think as you that it must be getting remapped but how? Here's a paste of my device tree if you can see any clues:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;usdhc2 {&lt;BR /&gt; pinctrl-names = "default";&amp;nbsp;&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc2&amp;gt;;&lt;BR /&gt;cd-gpios = &amp;lt;&amp;amp;gpio5 9 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; wp-gpios = &amp;lt;&amp;amp;gpio5 10 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt; bus-width = &amp;lt;4&amp;gt;;&lt;BR /&gt; removable;&lt;BR /&gt;// no-1-8-v;&lt;BR /&gt;// vmmc-supply = &amp;lt;&amp;amp;reg_sd2_vmmc&amp;gt;;&lt;BR /&gt; enable-sdio-wakeup;&lt;BR /&gt; keep-power-in-suspend;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 13:09:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx-sdcard-post-boot-weirdism/m-p/629406#M95566</guid>
      <dc:creator>edwardtyrrell</dc:creator>
      <dc:date>2017-03-29T13:09:48Z</dc:date>
    </item>
  </channel>
</rss>

