Skip to content
Discussion options

You must be logged in to vote

Thank you, @hlyi — and I owe you a straight correction. You were right and I was wrong, twice, on the DRAM, and your reading of the tree is spot-on. Let me set the record straight and answer all five points from the code.

The root cause — and your "AI-generated / dead code" question

You found the real problem, so let me start there. The btcode bootloader is a cleanup/modernization of Realtek's original 2012 SDK bootloader. The DRAM bring-up was rewritten as hand-written assembly in start.S, and the old Realtek C path — start_c.c, with the SYS_HW_STRAP read, Calc_Dram_Size() and LookUp_MemTimingTable() — was meant to go. That cleanup was incomplete: start_c.c is still in the tree, compiled…

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hlyi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hlyi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants