Skip to content
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

SdHost: bogus LastBlock when using eMMC #19

Open
andreiw opened this issue Jul 11, 2020 · 0 comments
Open

SdHost: bogus LastBlock when using eMMC #19

andreiw opened this issue Jul 11, 2020 · 0 comments

Comments

@andreiw
Copy link
Member

andreiw commented Jul 11, 2020

Symptom for this is no fs0 while dblk seemingly works. "Connect -r" on a DEBUG build will complain about partition end being beyond LastBlock. The LastBlock value is bogus and incorrect for media, meaning that the ECSD data (CMD8) is coming back incorrectly, and it is an SdHost bug (does not affect when Arasan is used).

It doesn't affect CM3 due to sheer luck (the bogus value is large enough), but seen with other eMMC media on Pi 2 / Pi 3 via SD slot.

I've tried ensuring the data FIFO is empty before starting a command. It is. I also don't know how much data is actually available in the FIFO once CMD8 completes, so that's worth checking, although it's a little strange overall. Normal read/write I/O is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant