mmc0 warning on SD card bootup of linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I get the following warning on debian linux (kernel 4.18.8) bootup of my microchip sama5d3 board:



mmc0: unrecognised SCR structure version 4
mmc0: error -22 whilst initialising SD card


after spewing this about 30 times I get the following and the linux boot completes



mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new SDHC card at address 0007
mmcblk0: mmc0:0007 SD4GB 3.71 GiB


I have tried several different SD cards and get the same result, with the only variation being the version number.



I found the following online https://groups.google.com/forum/#!topic/beagleboard/A4zfNvyMmVI:




SCR is a register defined by MMC/SD standard, and the data should be
read by the data bus, instead of the cmd bus as most predefined
registers do. The omap_hsmmc_request function of the TI HSMMC driver
tries to read in the SCR data by DMA, and this always returns garbage.
Sometimes the SCR check gets passed, because the garbage data happens
to be a valid SCR data




The linux kernel just checks to see if the SCR version is not 0, if so it produces the error.



My dts file for mmc0 is as follows:



 mmc0: mmc@f0000000 
pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3>;
status = "okay";
slot@0
reg = <0>;
bus-width = <8>;
;
;









share|improve this question




























    0















    I get the following warning on debian linux (kernel 4.18.8) bootup of my microchip sama5d3 board:



    mmc0: unrecognised SCR structure version 4
    mmc0: error -22 whilst initialising SD card


    after spewing this about 30 times I get the following and the linux boot completes



    mmc0: host does not support reading read-only switch, assuming write-enable
    mmc0: new SDHC card at address 0007
    mmcblk0: mmc0:0007 SD4GB 3.71 GiB


    I have tried several different SD cards and get the same result, with the only variation being the version number.



    I found the following online https://groups.google.com/forum/#!topic/beagleboard/A4zfNvyMmVI:




    SCR is a register defined by MMC/SD standard, and the data should be
    read by the data bus, instead of the cmd bus as most predefined
    registers do. The omap_hsmmc_request function of the TI HSMMC driver
    tries to read in the SCR data by DMA, and this always returns garbage.
    Sometimes the SCR check gets passed, because the garbage data happens
    to be a valid SCR data




    The linux kernel just checks to see if the SCR version is not 0, if so it produces the error.



    My dts file for mmc0 is as follows:



     mmc0: mmc@f0000000 
    pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3>;
    status = "okay";
    slot@0
    reg = <0>;
    bus-width = <8>;
    ;
    ;









    share|improve this question


























      0












      0








      0








      I get the following warning on debian linux (kernel 4.18.8) bootup of my microchip sama5d3 board:



      mmc0: unrecognised SCR structure version 4
      mmc0: error -22 whilst initialising SD card


      after spewing this about 30 times I get the following and the linux boot completes



      mmc0: host does not support reading read-only switch, assuming write-enable
      mmc0: new SDHC card at address 0007
      mmcblk0: mmc0:0007 SD4GB 3.71 GiB


      I have tried several different SD cards and get the same result, with the only variation being the version number.



      I found the following online https://groups.google.com/forum/#!topic/beagleboard/A4zfNvyMmVI:




      SCR is a register defined by MMC/SD standard, and the data should be
      read by the data bus, instead of the cmd bus as most predefined
      registers do. The omap_hsmmc_request function of the TI HSMMC driver
      tries to read in the SCR data by DMA, and this always returns garbage.
      Sometimes the SCR check gets passed, because the garbage data happens
      to be a valid SCR data




      The linux kernel just checks to see if the SCR version is not 0, if so it produces the error.



      My dts file for mmc0 is as follows:



       mmc0: mmc@f0000000 
      pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3>;
      status = "okay";
      slot@0
      reg = <0>;
      bus-width = <8>;
      ;
      ;









      share|improve this question
















      I get the following warning on debian linux (kernel 4.18.8) bootup of my microchip sama5d3 board:



      mmc0: unrecognised SCR structure version 4
      mmc0: error -22 whilst initialising SD card


      after spewing this about 30 times I get the following and the linux boot completes



      mmc0: host does not support reading read-only switch, assuming write-enable
      mmc0: new SDHC card at address 0007
      mmcblk0: mmc0:0007 SD4GB 3.71 GiB


      I have tried several different SD cards and get the same result, with the only variation being the version number.



      I found the following online https://groups.google.com/forum/#!topic/beagleboard/A4zfNvyMmVI:




      SCR is a register defined by MMC/SD standard, and the data should be
      read by the data bus, instead of the cmd bus as most predefined
      registers do. The omap_hsmmc_request function of the TI HSMMC driver
      tries to read in the SCR data by DMA, and this always returns garbage.
      Sometimes the SCR check gets passed, because the garbage data happens
      to be a valid SCR data




      The linux kernel just checks to see if the SCR version is not 0, if so it produces the error.



      My dts file for mmc0 is as follows:



       mmc0: mmc@f0000000 
      pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3>;
      status = "okay";
      slot@0
      reg = <0>;
      bus-width = <8>;
      ;
      ;






      linux debian embedded u-boot device-tree






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 5 at 1:37









      Rui F Ribeiro

      39.5k1479133




      39.5k1479133










      asked Jan 5 at 1:13









      cajjedcajjed

      187




      187




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492611%2fmmc0-warning-on-sd-card-bootup-of-linux%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492611%2fmmc0-warning-on-sd-card-bootup-of-linux%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay