Skip to content

cc2: DDR52 eMMC baseline + debugfs diagnostics for cc1/cc2 - #396

Draft
pdscomp wants to merge 9 commits into
mainfrom
paul/c2-emmc
Draft

pdscomp wants to merge 9 commits into
mainfrom
paul/c2-emmc

Conversation

@pdscomp

@pdscomp pdscomp commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Bring the CC2 eMMC up in the mode that enumerates reliably on hardware (DDR52 @ 1.8 V, 52 MHz cap matching U-Boot) and add always-available-but-silent debug tooling: debugfs on both machines, auto-mounted at boot, with the CC2 dynamic-debug bootarg snippet parked in comments for easy re-enable.

The stock kernel DTS advertised HS200 @ 150 MHz, which failed tuning with -74 on the affected board and fell into repeated init attempts. U-Boot has always run 52 MHz DDR, so the cap aligns the kernel with the bootloader; measured actual card clock is 50 MHz (104 MHz module-clock request rounds to 100, divided by two for DDR). Verified live on hardware via /sys/kernel/debug/mmc0/ios: timing spec 8 (mmc DDR52), 1.80 V, 4-bit, actual clock 50000000 Hz.

File Change
recipes-kernel/linux/linux-mainline/elegoo-centauri-carbon2.dts eMMC: DDR52 @ 52 MHz (drop HS200/150 MHz), stock-matched pin bias/drive
recipes-kernel/linux/linux-mainline/cc2-mmc-debug.cfg CC2 kernel: CONFIG_DYNAMIC_DEBUG + CONFIG_DEBUG_FS
recipes-kernel/linux/linux-mainline/cc1-debugfs.cfg CC1 kernel: CONFIG_DEBUG_FS only
recipes-kernel/linux/linux-mainline_%.bbappend machine-scoped cfg appends (isolation verified via bitbake -e)
recipes-core/base-files/files/centauri-carbon-{1,2}/fstab auto-mount debugfs; non-fatal if unavailable
images/files/centauri-carbon-2/sw-description clean bootargs; debug variant preserved in libconfig comments

Verification: bitbake cosmos green for both machines locally (CC2 6937 tasks, CC1 6991); per-machine .config asserts; DTB checked with fdtget; SWU 2.01.01.05 flashed to CC2 over A/B and booted — Klippy plus all four MCUs healthy, /data rw, zero eMMC errors in dmesg. No test suite exists for this layer; hardware flash is the integration check.

@pdscomp
pdscomp deployed to approval-given October 10, 2026 05:34 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown

✅ Build Artifacts

Branch: paul/c2-emmc
Build: aa66aa1 (merge into sims/c2-image-creator)

Artifact Size
centauri-2 Elegoo OTA 113.02 MB
centauri-carbon-2 Elegoo OTA 113.02 MB
centauri-carbon-2 Firmware 90.12 MB
centauri-carbon-1 Firmware 90.08 MB

View workflow run

@pdscomp
pdscomp changed the base branch from sims/c2-image-creator to main October 10, 2026 14:09
@pdscomp
pdscomp deployed to approval-given October 10, 2026 14:22 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown

✅ Build Artifacts

Branch: paul/c2-emmc
Build: ddc62aa (merge into main)

Artifact Size
centauri-carbon-1 Firmware 90.09 MB
centauri-carbon-2 USB U-Boot 0.67 MB
centauri-carbon-2 USB Image 81.53 MB
centauri-carbon-2 Elegoo OTA 112.68 MB
centauri-2 Elegoo OTA 112.68 MB
centauri-carbon-2 Firmware 89.77 MB

View workflow run

This branch was successfully deployed

1 active deployment
approval-given — ddc62aa7 Deployed Oct 10, 2026 by pdscomp via approve #789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants