11 Replies Latest reply on Jul 21, 2017 2:53 PM by Intel Corporation

    SD card not mounted after boot

    niels_p

      Hello,

      My system is the Intel Joule x570 with the Expansion Board and an installed ubuntu 16.04, provided by intel (version 4.4.0-1000-joule).

      The problem is, that after booting, the inserted SD card is not mounted automatically. Taking a first glance at the kernel log, it seems that the following error might be the crucial one: mmc0: error -110 whilst initialising SD card.

       

      The error occurs regardless of the used SD card. Also checking the sd card (using fsck) on a different computer and inserting them right before boot did fix the problem.

       

      Is there any fix or workaround for this problem? Thanks in advance for any help.

       

      Regards,

      Niels

       

       

       

      A short abstract of the kernel log. The full kernel log is attached to this post, too.

      [2.949559] sdhci: Secure Digital Host Controller Interface driver

      [2.949565] sdhci: Copyright(c) Pierre Ossman

      [2.952014] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:1aca] (rev c)

      [2.953297] sdhci-pci 0000:00:1b.0: No vmmc regulator found

      [2.953301] sdhci-pci 0000:00:1b.0: No vqmmc regulator found

      [2.956752] mmc0: SDHCI controller on PCI [0000:00:1b.0] using ADMA 64-bit

      [2.974000] sdhci-pci 0000:00:1c.0: SDHCI controller found [8086:1acc] (rev c)

      [2.975287] sdhci-pci 0000:00:1c.0: No vmmc regulator found

      [2.975291] sdhci-pci 0000:00:1c.0: No vqmmc regulator found

      [2.978838] mmc1: SDHCI controller on PCI [0000:00:1c.0] using ADMA 64-bit

      [2.982020] Setting dangerous option preliminary_hw_support - tainting kernel

      [2.993498] sdhci-pci 0000:00:1e.0: SDHCI controller found [8086:1ad0] (rev c)

      [2.994700] sdhci-pci 0000:00:1e.0: No vmmc regulator found

      [2.994703] sdhci-pci 0000:00:1e.0: No vqmmc regulator found

      [2.997993] mmc2: SDHCI controller on PCI [0000:00:1e.0] using ADMA 64-bit

      [3.045440] usb 1-2: new high-speed USB device number 2 using xhci_hcd

      [3.168826] mmc0: error -110 whilst initialising SD card

      ...

      [7.240312] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
        • 1. Re: SD card not mounted after boot
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi niels_p,

           

          Thanks for your interest in the Intel Joule Platform.

           

          I'm sorry to hear that you are having problems with your SD card. Now I have a couple of questions, before we start looking for a solution to your issue:

           

          1) Was your issue solved when you use the command fsck?
          2) Which guide did you follow? I would recommend to follow this guide Intel Joule | Developer , also check this thread Re: Installing Ubuntu on Intel Joule 570x  and follow the recommendations given by the users.

           

          I will be waiting for your reply, have a nice day!

           

          Best Regards,
          -Jose.

          • 2. Re: SD card not mounted after boot
            niels_p

            Hello Jose,

             

            (1) I ran fsck before and after rebooting and it did not mention any error. However, the error 'Volume was not properly unmounted. Some data may be corrupt. Please run fsck' still can be found the kernel log.

             

            (2) I followed the instructions for 'Alternative install: Ubuntu Desktop 16.04 LTS'. Apart from the SD card issue, the system runs as expected.

             

            I just found a related topic, where the same issue was mentioned: Ubuntu/Other Linux distros not properly recognising external SD?

            To me, the problem described by McCool is the same I encounter. Unfortunately, no solution was given.

            • 3. Re: SD card not mounted after boot
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi niels_p,

               

              Reading through the thread Ubuntu/Other Linux distros not properly recognising external SD? , I see that this is an issue with Ubuntu not of the Intel Joule, I would encourage you to contact the Ubuntu Community, they might be able to better assist with this issue.

               

              Ubuntu Community: https://developer.ubuntu.com/en/community/

               

              Also, I saw McCool posts and he said that there is a workaround to this issue: "However, the SD card is just not recognized at boot.  If I pop it out and push it back in, it is however recognized and mounted". Additionally, he recommends to use the command lsblk like this: "Then you can clearly see this behaviour (reboot, run lsblk... no card..., then pop the card out and push it back it, run lsblk... there it is!)".

               

              Hope you find this information useful, have a nice day!
               
              Best Regards,
              -Jose P.

              • 4. Re: SD card not mounted after boot
                niels_p

                Dear Jose,

                 

                after purchasing a further Intel Joule, installing the latest BIOS (FW 1H3) together with the Ref-OS-IoT version 1705, the very same error is still valid.

                That is, after boot procedure, SD cards are not mounted and the error in the syslog still is mmc0: error -110 whilst initialising SD card.

                 

                Only by popping the card out and in again, the card can be used, which is clearly no solution at all, if the joule is for example covered.

                 

                Furthermore, the issue is clearly not limited to Ubuntu.

                 

                 

                Regards,

                Niels

                • 5. Re: SD card not mounted after boot
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Hi Niels,

                  That's weird, I just tested it in my Joule and it detects the SD card in /dev/ after the reboot. Just to be sure, have you test it with different SD cards?

                  Could you also provide us the "dmesg" file to check it?

                  We will be waiting for your reply.

                  Have a nice day.

                  Regards,
                  Leonardo R.

                  • 6. Re: SD card not mounted after boot
                    Nathan_Hui

                    I can replicate.

                     

                    Board is Intel Joule 570x on development expansion board, running Ref-os-iot version 1.0+snapshot-20170622.

                     

                    Steps to replicate:

                    1. Insert SD card
                    2. Shut down Joule
                    3. Pull DC Power
                    4. Reapply DC Power
                    5. Check dmesg | grep mmc0.  Dmesg should report error -110 whilst initializing SD Card

                    Same steps to replicate on Ubuntu.

                     

                    This problem not always present.  If you do a reboot without removing power, the system has no problem recognizing the device.  To replicate:

                    1. Clean boot the Joule with no SD card inserted
                    2. Insert SD Card
                    3. Reboot the Joule from command line
                    4. Check /dev and dmesg.  /dev/ should have mmcblk0 and whatever partitions are on disk, and dmesg should report detecting the SD card.
                    • 7. Re: SD card not mounted after boot
                      Intel Corporation
                      This message was posted on behalf of Intel Corporation

                      Hi Nathan_Hui,

                      Thanks for your interest in the Intel® Joule™ Platform.

                      Please let me replicate this issue, we will contact you back as soon as we have some useful information.

                      Have a nice day!

                      Best Regards,
                      -Jose P.
                       

                      • 8. Re: SD card not mounted after boot
                        Intel Corporation
                        This message was posted on behalf of Intel Corporation

                        Hi Nathan_Hui,

                         

                        I just replicate the issue with the  Ref-os-iot version 1.0+snapshot-20170622. Unfortunately, I didn't get any errors, please see the image below:

                         

                        sd card joule.PNG

                         

                        Have you tried to change SD cards?

                         

                        Hope you find this information useful, have a nice day!

                         

                        Best Regards,
                        -Jose P.

                        • 9. Re: SD card not mounted after boot
                          Nathan_Hui

                          Yes, I have tried multiple SD cards.  I did notice, though, that your SD card is at a different address.  Mine always say "new high speed SDHC card at address aaaa".  I wonder if this is the issue?

                          • 10. Re: SD card not mounted after boot
                            Intel Corporation
                            This message was posted on behalf of Intel Corporation

                            Hi Nathan_Hui,

                            Please let me investigate more and we will get back to you as soon as we have some relevant information.

                            Have a nice day!

                            Best Regards,
                            -Jose P.

                            • 11. Re: SD card not mounted after boot
                              Intel Corporation
                              This message was posted on behalf of Intel Corporation

                              Hi Nathan_Hui,

                              Are there any other specific steps that you took in order to get this issue? You mention that your SD card address is "aaaa" is this the case with all the SD cards that you have tested?

                              We will be waiting for your reply, have a great day!

                              Best Regards,
                              -Jose P.