-
Notifications
You must be signed in to change notification settings - Fork 5.2k
mmc0: unexpected command 5 error #2003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The SDHOST interface - the one that drives the SD card - is unlikely to work with an SDIO card because it turns off the SD clock between bus transactions. |
OK, good to know! The other one (I have an MMC-HAT on the way), does it do SDIO? |
The interwebs says that yes, so I'm closing the issue. Thanks @pelwell for the prompt response. |
I'll give you a brief version of the whole story. The BCM2835 family of processors has two MMC/SD interfaces - The assignment of |
I see. If I can't get the card to work on i.MX 6, I'll come back to the Pi and try to make a dtbo for my use case. Thanks again, |
The standard |
(couldn't get my iMX6 board to underclock whereas the Pi3 is OK doing that with config.txt, so I'm back) While I don't have the MMC-HAT, I tried the following, with the intent of routing diff --git a/arch/arm/boot/dts/overlays/sdhost-overlay.dts b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
index de3d1b0a5e40..305272b377b5 100644
--- a/arch/arm/boot/dts/overlays/sdhost-overlay.dts
+++ b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
@@ -7 +7 @@
- compatible = "brcm,bcm2708";
+ compatible = "brcm,bcm2837", "brcm,bcm2836";
diff --git a/arch/arm/boot/dts/overlays/sdio-overlay.dts b/arch/arm/boot/dts/overlays/sdio-overlay.dts
index 215d5e3e8a8c..28ded260878e 100644
--- a/arch/arm/boot/dts/overlays/sdio-overlay.dts
+++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
@@ -4 +4 @@
-/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
+/* Enable SDIO from MMC interface via GPIOs 48-53. Includes sdhost overlay. */
@@ -7 +7 @@
- compatible = "brcm,bcm2708";
+ compatible = "brcm,bcm2837", "brcm,bcm2836";
@@ -25 +25 @@
- brcm,pins = <22 23 24 25 26 27>;
+ brcm,pins = <48 49 50 51 52 53>; but it looks like it's not doing anything (checked that Did I do anything wrong? |
(reopening the issue, as there should be a way to get SDIO in the SD-card slot) |
Try |
OK, I'll try to make it work and attach my dts. |
Cool, Note that |
Thanks for spotting the typo - I've fixed that now. Using Are you aware of the |
kernel: dwc_otg: Fixes for root port disconnect issues See: raspberrypi/linux#2010 kernel: BCM270X_DT: Tidy up mmc, sdhost, sdio overlays See: raspberrypi/linux#2003 firmware: platform: Move trait initialisation out of #ifdef'd function firmware: usb: Change USB PHY settings to make device mode work correctly firmware: dtoverlay: Update fixups when a node is renamed firmware: dtoverlay app: Add the -D (dry-run) option See: raspberrypi/linux#2002 firmware: dispserver: Adjust open/close refcount on application exit See: #778 firmware: filex: Optimise directory search of the root directory
kernel: dwc_otg: Fixes for root port disconnect issues See: raspberrypi/linux#2010 kernel: BCM270X_DT: Tidy up mmc, sdhost, sdio overlays See: raspberrypi/linux#2003 firmware: platform: Move trait initialisation out of #ifdef'd function firmware: usb: Change USB PHY settings to make device mode work correctly firmware: dtoverlay: Update fixups when a node is renamed firmware: dtoverlay app: Add the -D (dry-run) option See: raspberrypi/linux#2002 firmware: dispserver: Adjust open/close refcount on application exit See: raspberrypi/firmware#778 firmware: filex: Optimise directory search of the root directory
Uh oh!
There was an error while loading. Please reload this page.
I'm plugging in a Pi 3 main µSD-card slot one BRCM43340 Wifi SDIO module which is working fine on my ThinkPad's SD/SDIO slot.
There are MMC issues,
mmc0: unexpected command 5 error
fromdrivers/mmc/host/bcm2835-sdhost.c
(ping @pelwell) while the card is inserted.I also made the system boot by USB to rule out the possibility of hot-plugging issues, same thing.
Running v4.8.y or v4.9.y (32-bit), and I'll try to build and troubleshoot, see if I can see something, but since my goal is to work with the wifi board, I'll probably quickly end up plugging it to another SoC.
The text was updated successfully, but these errors were encountered: