Add PRESTEP1 DDR training step and fix boot timing#47
Merged
Conversation
- Add PRESTEP1 support: DDR training verification bytecode sent after DDRSTEP0. Required by hi3516av200 (and likely others) for DDR to actually initialize. - Make PRESTEP0/DDRSTEP0/PRESTEP1 TAIL frames non-fatal (av200 bootrom doesn't ACK them). - Add rehandshake after PRESTEP0 (av200 bootrom goes silent after executing PRESTEP0 code). - Increase HEAD frame timeout from 30ms to 150ms (av200 needs ~100ms after handshake before accepting frames). - Fix power-cycle session: flush serial buffer 1s after power-cycle to discard warm-reboot markers, preventing false handshake triggers. Tested on hi3516av200 hardware: full PRESTEP0→DDRSTEP0→PRESTEP1→SPL→ U-Boot transfer succeeds, U-Boot boots. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Test plan
uv run pytest tests/ -x -v --ignore=tests/fuzz— 326 passed🤖 Generated with Claude Code