mmc0 warning on SD card bootup of linux
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
add a comment |
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
add a comment |
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
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
linux debian embedded u-boot device-tree
edited 2 days ago
Rui F Ribeiro
39.2k1479130
39.2k1479130
asked 2 days ago
cajjed
186
186
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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