-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Raspberry Pi Compute Module: sdhost on 22-27 #1536
Comments
Note that parameters/overrides only do something if they are applied. In the example above, the only way to remove the non-removable property would be using an explicit |
Ah yes, I realise that is a typo now, sorry, I was basing this somewhat on https://www.raspberrypi.org/forums/viewtopic.php?f=98&t=88781 and there it is brcm, but I didn't realise I ended up with bcrm. Is there anywhere that 22-27 is documented with ALT0 = sdhost? The peripheral guide gives it as reserved. I do recall finding some GitHub repo with complete docs for every alt function, but I cannot find it again. With regard to
The above seems to get further, no longer breaks eMMC but I am getting mmc0 errors, so the SD card doesn't show, as I say this may be due to bad signal integrity, I can try adding some series resistors but I don't really have any way to shorten the wires, I do have a decoupling capacitor on the SD card end already though. The log just repeats
|
Apart from the DTS files and overlays you mean? Possibly not.
Try adding "max-frequency = <5000000>;" (completely untested) - that seems to be a standard property supported by the MMC framework. |
I have constructed a different SD card breakout for the compute module, and can now get the SD card running with the overlay given above. Thanks @pelwell for your assistance. |
Were you able to lower the clock frequency below 41.7MHz? |
I have actually managed to get the external interfacing working just fine On Fri, 17 Jun 2016 at 20:06 tybach [email protected] wrote:
|
I was able to lower the clock frequency using the sdio_overclock override in the sdio device tree overlay. For some reason it does not work with the overclock_50 override. |
Hi All, I was able to get working SD1 interface with above overlay ( thanks to benpye and pelwell ) but there is one major issue that I noticed: Best Regards, |
Does it do the same thing if you use the built in overlay 'sdio'? I'm not using an sdcard on the SD1 interface and it is booting just fine. |
It is even worst - it cannot boot from eMMC either with card inserted or not inserted in SD1 Best Regards, |
My guess would be that the SD interface is coming up as mmc0 instead of eMMC, which must be relegated to mmc1. I'll have to look into what dictates the order, but it could be the order of nodes within the device tree. |
Pelwell, I was suspecting exactly the same :) I made a simple experiment by cloning the eMMC flash to the SD card and then inserted the card into SD1. And it boot successfully .... from the SD card. So now I need to figure out how to instruct the firmware to always boot from eMMC flash ( detect first ) Best Regards, |
Interested in this thread. @ivomilev, were you able to detect eMMC first? |
No, but in my case I am using the SD card as non-removable device and I changed the root partition location in cmdline.txt and in fstab to boot from eMMC flash (mmcblk1). But if I remove the SD card, the system will hang because the eMMC will become mmcblk0 again... |
Sorry for coming late to the party ..
Ahmet |
Hi all!
that is overlay is loaded. |
I am probably going to modify the kernel for my application and do On Thu, 14 Jul 2016, 09:41 Eugene Pomazov, [email protected] wrote:
|
@benpye thank you for the link! |
Closing due to lack of activity. Reopen if you feel this issue is still relevant. |
I am attempting to configure the compute module to expose the sdhost interface interface on GPIO22-27 on the compute module to interface with an SD card, my wiring is correct as I can get the external SD card to work with the mmc interface, but obviously this breaks the eMMC. My current device tree overlay is given below though this hangs the boot, as it seems neither the internal eMMC or the external SD card I have attatched work after applying the overlay, with
dtoverlay=sd1,overclock_50=5
The overlay is
cc: @pelwell
The text was updated successfully, but these errors were encountered: