<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5178</bug_id>
          
          <creation_ts>2013-09-13 08:33:16 +0000</creation_ts>
          <short_desc>sabresd boot failure with preferred provider linux-fslc</short_desc>
          <delta_ts>2014-05-27 16:50:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-fsl-arm</component>
          <version>1.4.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Lewis">nick.lewis</reporter>
          <assigned_to name="Daiane">angolini</assigned_to>
          <cc>angolini</cc>
    
    <cc>otavio</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36656</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-13 08:33:16 +0000</bug_when>
    <thetext>When booting core-image-minimal-imx6qsabresd.sdcard that has preferred providers linux-fslc and u-boot-fslc the kernel waits for the wrong mmcroot. It looks for /dev/mmcblk1p2 instead of /dev/mmcblk0p2.

The bug affects Dylan but not Master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36707</commentid>
    <comment_count>1</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-09-13 15:24:06 +0000</bug_when>
    <thetext>Thanks for reporting this issue. Do you know when we fixed this in mainline kernel? I think it&apos;d be good to backport it to Dylan kernel branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36709</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-13 16:01:24 +0000</bug_when>
    <thetext>Not sure but it might be 0001-mx6qsabre_common-uEnv.txt-bootz-n-fixes.patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36773</commentid>
    <comment_count>3</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-17 10:45:51 +0000</bug_when>
    <thetext>Sorry - scrub all that - the bug does seem to affect Master too

Steps to reproduce

 - repo init with the master of fsl-community-bsp-platform and setup environment
 - add PREFERRED_PROVIDER_virtual/kernel = &quot;linux-fslc&quot; and PREFERRED_PROVIDER_virtual/bootloader = &quot;u-boot-fslc&quot; to the local.conf
 - bitbake core-image-minimal
 - dd onto an sdcard
 - boot in an mx6sabresd board</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36776</commentid>
    <comment_count>4</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-17 11:11:35 +0000</bug_when>
    <thetext>This temporary patch resolved the problem for me:

--- tmp/work/imx6qsabresd-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/include/configs/mx6sabresd.h.bak	2013-09-16 16:56:13.106857912 +0100
+++ tmp/work/imx6qsabresd-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/include/configs/mx6sabresd.h	2013-09-17 11:51:17.963975426 +0100
@@ -15,7 +15,7 @@
 #define CONFIG_MACH_TYPE	3980
 #define CONFIG_MXC_UART_BASE	UART1_BASE
 #define CONFIG_CONSOLE_DEV		&quot;ttymxc0&quot;
-#define CONFIG_MMCROOT			&quot;/dev/mmcblk1p2&quot;
+#define CONFIG_MMCROOT			&quot;/dev/mmcblk0p2&quot;
 #define CONFIG_DEFAULT_FDT_FILE	&quot;imx6q-sabresd.dtb&quot;
 #define PHYS_SDRAM_SIZE		(1u * 1024 * 1024 * 1024)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36784</commentid>
    <comment_count>5</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-09-17 13:21:25 +0000</bug_when>
    <thetext>Using this patch, most probably break FSL kernel usage. Can you confirm it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36787</commentid>
    <comment_count>6</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-09-17 13:49:58 +0000</bug_when>
    <thetext>Fabio has been able to reproduce it. Setting it for him.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36790</commentid>
    <comment_count>7</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-17 13:54:01 +0000</bug_when>
    <thetext>By &apos;FSL kernel&apos; do you mean with PREFERRED_PROVIDER_virtual/kernel=&quot;linux-imx&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36793</commentid>
    <comment_count>8</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-17 13:59:00 +0000</bug_when>
    <thetext>A workaround is to insert another sd card containing anything into SD2. This SD card is ignored by uboot and early kernel boot but is loaded first by the SDHCI controllers at mmcblk0 meaning that the card in SD3 does become mmcblk1 as currently configured for the mmcroot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36796</commentid>
    <comment_count>9</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-17 14:25:57 +0000</bug_when>
    <thetext>This thread discusses a similar problem and includes solutions

Devicetree: Initialization order of mmc block devices</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36800</commentid>
    <comment_count>10</comment_count>
    <who name="Fabio Estevam">festevam</who>
    <bug_when>2013-09-17 15:21:45 +0000</bug_when>
    <thetext>Nick, thanks for the link.

Could you please try the suggestion from:
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-July/111022.html ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36821</commentid>
    <comment_count>11</comment_count>
    <who name="Fabio Estevam">festevam</who>
    <bug_when>2013-09-17 17:43:05 +0000</bug_when>
    <thetext>Ok, I managed to manually apply Dirk&apos;s proposal patch and it seems that this is the way to fix this issue. Now I can mount the rootfs with the original U-boot.

I will start a thread in the linux-mmc list about this.

I also think that we should fix this in the mmc core instead of sdhc-imx driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36855</commentid>
    <comment_count>12</comment_count>
      <attachid>1516</attachid>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-18 10:32:06 +0000</bug_when>
    <thetext>Created attachment 1516
Ported Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36857</commentid>
    <comment_count>13</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-18 10:33:23 +0000</bug_when>
    <thetext>I have also tried the ported patch and it works for me both with and without SD cards in other slots</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36858</commentid>
    <comment_count>14</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-18 10:41:41 +0000</bug_when>
    <thetext>It would be nice if aliases could be defined only for those sd slots that need a fixed device id e.g. containing rootfs. Could the driver first probe for those requiring fixed aliases and then probe again for the rest? At the moment the find_next_zero_bit would silently allocate the wrong device index in these cases leading to unexpected and possibly insecure behaviour (e.g. using malicious rootfs)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36871</commentid>
    <comment_count>15</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-18 13:19:59 +0000</bug_when>
    <thetext>Part of your patch at linux-mmc looks a bit dangerous

+        if (ret &gt;= 0)
+            host-&gt;mmc-&gt;devidx = ret;


How about instead using

+        host-&gt;mmc-&gt;devidx = ret ? ret : 0;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36872</commentid>
    <comment_count>16</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-18 13:23:20 +0000</bug_when>
    <thetext>Nope I am an idiot


+        if (ret &gt;= 0)
+            host-&gt;mmc-&gt;devidx = ret;
+        else
+            host-&gt;mmc-&gt;devidx = 0;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36873</commentid>
    <comment_count>17</comment_count>
    <who name="Fabio Estevam">festevam</who>
    <bug_when>2013-09-18 13:26:51 +0000</bug_when>
    <thetext>Nick, what do you think about this approach?
http://marc.info/?l=linux-mmc&amp;m=134423822729031</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36874</commentid>
    <comment_count>18</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-09-18 13:50:15 +0000</bug_when>
    <thetext>I worry that there may be cases where a host supports more than one device. It would need in depth checking to fully understand the implications

Also this change may obsolete all the md-&gt;name_idx stuff which I guess would need to be removed in any final version of the patch. I am unclear about the impact or otherwise of subname

Aparently the alias approach is used for serial ports so may be best to be consistent</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37314</commentid>
    <comment_count>19</comment_count>
    <who name="Fabio Estevam">festevam</who>
    <bug_when>2013-09-28 22:45:42 +0000</bug_when>
    <thetext>With the two patches below we should be able to run both 3.0.35 and 3.11 with no issues:

From 584ee6fb95edc73b1e16ad02e4d86a444376d688 Mon Sep 17 00:00:00 2001
From: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Date: Sat, 28 Sep 2013 18:46:18 -0300
Subject: [PATCH] ARM: mach-mx6: board-mx6q_sabresd: Register SDHC3 first

On sabresd boards we boot from SDHC3, so let&apos;s register it as mmc0.

Currently eMMC is mmc0 and mmc1 can be SDHC3 or SDHC2 (if present).

Registering SDHC3 is safer as we can always find the rootfs.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
---
 arch/arm/mach-mx6/board-mx6q_sabresd.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c
index 3f9a845..4e6b323 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -1847,12 +1847,9 @@ static void __init mx6_sabresd_board_init(void)
 
 	imx6q_add_pm_imx(0, &amp;mx6q_sabresd_pm_data);
 
-	/* Move sd4 to first because sd4 connect to emmc.
-	   Mfgtools want emmc is mmcblk0 and other sd card is mmcblk1.
-	*/
+	imx6q_add_sdhci_usdhc_imx(2, &amp;mx6q_sabresd_sd3_data);
 	imx6q_add_sdhci_usdhc_imx(3, &amp;mx6q_sabresd_sd4_data);
 	imx6q_add_sdhci_usdhc_imx(1, &amp;mx6q_sabresd_sd2_data);
-	imx6q_add_sdhci_usdhc_imx(2, &amp;mx6q_sabresd_sd3_data);
 	imx_add_viv_gpu(&amp;imx6_gpu_data, &amp;imx6q_gpu_pdata);
 	imx6q_sabresd_init_usb();
 	/* SATA is not supported by MX6DL/Solo */
-- 
1.8.1.2


From b180194e61c4a2eab83cff00b501d7c5cff7eeba Mon Sep 17 00:00:00 2001
From: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Date: Sat, 28 Sep 2013 18:52:40 -0300
Subject: [PATCH] mx6sabresd: Use mmcblk0 for CONFIG_MMCROOT

Using mmcblk0 for CONFIG_MMCROOT, so that the rootfs can be found on both
FSL 3.0.35 as well as in mainline kernel.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
---
 include/configs/mx6sabresd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h
index a3dd74a..c740986 100644
--- a/include/configs/mx6sabresd.h
+++ b/include/configs/mx6sabresd.h
@@ -15,7 +15,7 @@
 #define CONFIG_MACH_TYPE	3980
 #define CONFIG_MXC_UART_BASE	UART1_BASE
 #define CONFIG_CONSOLE_DEV		&quot;ttymxc0&quot;
-#define CONFIG_MMCROOT			&quot;/dev/mmcblk1p2&quot;
+#define CONFIG_MMCROOT			&quot;/dev/mmcblk0p2&quot;
 #define CONFIG_DEFAULT_FDT_FILE	&quot;imx6q-sabresd.dtb&quot;
 #define PHYS_SDRAM_SIZE		(1u * 1024 * 1024 * 1024)
 
-- 
1.8.1.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37783</commentid>
    <comment_count>20</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-10-09 14:13:08 +0000</bug_when>
    <thetext>Applied following changes:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/commit/?id=eda8fb05ad0edcd831dab6c59f75962fcc7bae02
http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/commit/?id=e2feee421e3c4050649edf0c44693e62e6c68d2e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37786</commentid>
    <comment_count>21</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-10-09 15:34:41 +0000</bug_when>
    <thetext>Does there also need to be

-#define CONFIG_MMCROOT			&quot;/dev/mmcblk1p2&quot;
+#define CONFIG_MMCROOT			&quot;/dev/mmcblk0p2&quot;

in u-boot-fslc?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37788</commentid>
    <comment_count>22</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-10-09 16:09:12 +0000</bug_when>
    <thetext>Yes; this is part of the fix.

It also changed the linux-imx recipe to use same order as mainline kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37793</commentid>
    <comment_count>23</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-10-10 08:42:34 +0000</bug_when>
    <thetext>I am a bit confused why there is no change to the u-boot-imx recipe

Will the following local conf work?

PREFERRED_PROVIDER_virtual/kernel = &quot;linux-imx&quot; PREFERRED_PROVIDER_virtual/bootloader = &quot;u-boot-imx&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37823</commentid>
    <comment_count>24</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-10-11 00:31:36 +0000</bug_when>
    <thetext>You&apos;re right.

u-boot-imx should need same fix.

Can you make a patch for it Nick?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37835</commentid>
    <comment_count>25</comment_count>
    <who name="Nick Lewis">nick.lewis</who>
    <bug_when>2013-10-11 10:54:23 +0000</bug_when>
    <thetext>Otavio

I am out of my depth here. u-boot-imx already seems to have a patch mx69_sabresd-Change-default-environment-to-work-eith.patch with the line

+ &quot;mmcroot=/dev/mmcblk0p2 rw\0&quot; \

but running the u-boot-imx/linux-imx sdcard image i see on the console

Waiting for root device /dev/mmcblk1p2...

Nick</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43606</commentid>
    <comment_count>26</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2014-05-27 16:50:26 +0000</bug_when>
    <thetext>Just tested with daisy</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1516</attachid>
            <date>2013-09-18 10:32:06 +0000</date>
            <delta_ts>2013-09-18 10:32:06 +0000</delta_ts>
            <desc>Ported Patch</desc>
            <filename>devidx.patch</filename>
            <type>application/octet-stream</type>
            <size>3397</size>
            <attacher name="Nick Lewis">nick.lewis</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2FyY2gvYXJtL2Jvb3QvZHRzL2lteDZxLXNhYnJlc2QuZHRzIGIvYXJjaC9h
cm0vYm9vdC9kdHMvaW14NnEtc2FicmVzZC5kdHMKaW5kZXggMDAzODIyOC4uYzNmYjY3NiAxMDA2
NDQKLS0tIGEvYXJjaC9hcm0vYm9vdC9kdH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