Repository navigation
fix DDR52 writes on Centauri 2 MMC8GB eMMC - #479
Draft
0xD34DC0DE wants to merge 1 commit into
Draft
0xD34DC0DE wants to merge 1 commit into
0xD34DC0DE wants to merge 1 commit into
Conversation
0xD34DC0DE
requested a deployment
to
approval-needed
November 15, 2026 10:43 — with
GitHub Actions
Waiting
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some Centauri 2 boards ship an eMMC (MMC8GB, mfr 0x32/OEM 0x0101) that fails on DDR52 writes with CRC status errors, so COSMOS cannot boot past PREINIT.
Stock firmware runs the same chip at DDR52 50 MHz.
This PR adds a sunxi-mmc patch with opt-in DT properties that reproduce the stock Allwinner BSP setup and enables them for mmc2 on the C2/CC2 DTS:
Various combination of these settings change where tested to narrow it down to only the necessary changes.
Also, max-frequency is set to 50 MHz andmmc-hs200-1_8v is dropped since the chip rejects HS200 and stock never uses it.
Sample delay values where stress tested and the working window appears to start at 12 and instability starts when going over 56.
Dumps from another affected printer's device tree showed 24 as the sample delay chosen by the U-Boot boot time sample delay timing for that particular printer.
For now, this fix assumes 36 as a safe value for the sample delay (aiming for the center of the valid sample delay window).
Further tests are required to confirm that this value can be hardcoded without requiring the same boot time DL tuning that stock fw's U-Boot performs.
Additionaly, this fix needs to be tested on the non-affected eMMC version of the board to confirm its working correctly and that no eMMC version detection logic is necessary.
No prints where attempted yet with a build of this fw (updates to come for that part)