bsp: allwinner: fix RT-Smart boot on D1 - #11714
Open
lanceharvie wants to merge 4 commits into
Open
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
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.
Problem
The Allwinner D1 RT-Smart BSP retained stale startup, MMU, serial, and storage integration code which prevented successful operation on real D1/C906 hardware.
Problems included an obsolete MMU initialization path and kernel address assumptions, allocation before heap initialization, duplicate BSS and UART initialization, Serial V1 configuration, an incorrect console device and baud default, and missing D1 SDMMC partition integration.
Resolution
Validation
The functional bring-up was tested on real Allwinner D1 / T-Head C906 hardware in the Sipeed Lichee RV 86 Panel class and reached an interactive RT-Smart shell:
Runtime testing covered scheduler operation, system ticks, thread sleep/wakeup, UART0 console, SDMMC block access, ROMFS/devfs, lwIP initialization, and kernel heap/page allocation.
The master-based series builds successfully with the RT-Thread RISC-V musl toolchain:
The hardware-validated prototype was based on RT-Thread v5.0.2. This current-master adaptation still requires a final board regression using firmware with the corrected T-Head CLINT devicetree binding; that firmware change is separate from this RT-Thread series.