-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
nanopct6(-lts): switch to mainline A-TF; use mainline u-boot also for 'current' branch #8219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rpardini
commented
May 24, 2025
- keep vendor u-boot for vendor branch (with rk's BL31)
… 'current' branch - keep vendor u-boot for vendor branch (with rk's BL31)
WalkthroughThis change updates the NanoPC T6 board configuration script to ensure that mainline U-Boot and related settings are not applied when the "vendor" branch is selected. It introduces early return checks in several functions to skip mainline-specific configuration for the vendor branch, which uses an older U-Boot version. Function names are updated to remove the "branch_edge" suffix, and the U-Boot target map is adjusted to use a fixed BL31 filename. The logic in multiple functions is modified to enforce these exclusions, preserving distinct behaviors for vendor and mainline branches. Suggested labels
Suggested reviewers
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
config/boards/nanopct6.conf (1)
79-81: Remove redundant comment lines.The same comment is repeated three times unnecessarily, which is a code smell and reduces readability.
- # Append to the t6 u-boot dtsi file with stuff for enabling gadget/otg/peripheral mode - # Append to the t6 u-boot dtsi file with stuff for enabling gadget/otg/peripheral mode - # Append to the t6 u-boot dtsi file with stuff for enabling gadget/otg/peripheral mode
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
config/boards/nanopct6.conf(5 hunks)
🔇 Additional comments (6)
config/boards/nanopct6.conf (6)
33-40: LGTM: Proper function rename and mainline ATF integration.The function rename from
post_family_config_branch_edge__nanopct6_use_mainline_uboot()topost_family_config__nanopct6_use_mainline_uboot()correctly reflects that this now applies to multiple branches (current and edge). The early return for vendor branch and the switch toBOOT_SCENARIO="tpl-blob-atf-mainline"withprepare_boot_configuration()call properly implements the mainline A-TF integration as stated in the PR objectives.
48-48: LGTM: Fixed BL31 filename usage.The change from a variable blob path to the fixed
bl31.elffilename aligns with using mainline ATF and simplifies the build configuration.
64-66: LGTM: Consistent function rename and vendor branch exclusion.The function rename removes the "branch_edge" suffix consistently with other changes, and the early return for vendor branch ensures that vendor U-Boot continues to handle device tree detection itself.
70-70: LGTM: Vendor branch exclusion is appropriate.The early return for vendor branch correctly prevents mainline-specific U-Boot device tree modifications from being applied to the vendor branch.
98-98: LGTM: Vendor branch exclusion for mainline configurations.The early return correctly prevents mainline U-Boot environment configurations from being applied to the vendor branch, maintaining separation between vendor and mainline behaviors.
147-147: LGTM: Vendor branch exclusion for firmware environment tools.The early return appropriately excludes vendor branch from the firmware environment configuration, as vendor U-Boot likely has different environment storage requirements.
|
nanopct6-lts bootlog, with ATF 2.13.0 |
SuperKali
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can't test on non-LTS because i have to shutdown my production infrastructure, but when i will update it i will test
|
Could we simply switch to |
This board has a |
I thought about setting it here:
Because I think it would be useful that every 3588 board using |
We can do such move as its some time before next release. @efectn @amazingfate @SuperKali @prahal |
|
Yeah, but the reality is many boards override what's in rockchip64_common with hooks. It's mostly my fault, as I did the first example, but I gotta find time to rework a fez dozen boards with copypasta all over into a couple extensions before we can "one-shot" change them all. I've promised to do it enough times to be shameful, but cycles are sparse. |
|
OK, then we move this in now and move this wish on 2do. |
|
I've tried to mass add boards to mainline ATF and uboot in rockchip64 before, the reality is the Rockchip blobs are often masking complete and utter garbage from the board vendors l, and half the boards break when expected to act like something with half an hour of engineering put into their design. Only a word of caution. I still feel a move away from having family include definitions is preferable since it honestly gets more complicated than one config per board. |
|
@Tonymac32 yeah, this here T6 example has vendor uboot+rk bl31 for |