- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.7k
mvebu: bootscript fixes & enhancements #8189
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
| """ WalkthroughThe changes enhance the  Assessment against linked issues
 Possibly related PRs
 Suggested labels
 Suggested reviewers
 Tip ⚡️ Faster reviews with caching
 Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
 🚧 Files skipped from review as they are similar to previous changes (1)
 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 ( | 
| Trying to work towards applying the same fixes to  | 
| @djurny Wanna help covering this board officially? https://www.armbian.com/update-data/ Those are directions: https://docs.armbian.com/User-Guide_Board-Support-Rules/#standard-support Also you can prepare release images if you want: | 
armbian#8178 - Add switch to turn avoidance on/off - Increment base address before alignment to resolve the oboe - oboe observed in U-Boot v2021.04 and in particular with DT loading
- Check all load actions - Add optional early exit with explanation in case a load fails
- Added FDT resize/trim to allow big DT and overlays and still use configured load addresses in case `setexpr` not available - Moved FDT resize and next load address alignment - Added filename information to load instructions - Moved all "global" variable determinations to the top of the bootscript
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.
LGTM, tested, works.
Description
configured load addresses in case
setexprnot availablebootscript
GitHub issue reference: 8178
Jira reference number AR-2680
Documentation summary for feature / change
If documentation entry is predicted, please provide key elements for further implementation into main documentation and set label to "Needs Documentation". You are welcome to open a PR to documentation or you can leave following information for technical writer:
overlap oboe avoidance
[Bug]: U-Boot load address calculation bug and DT overlap oobe
In U-Boot v2021.04 the
bootm_find_images()function has an oboe when checking for overlap. To avoid this, a setting was added to simply add1to the load address during alignment.The overlap avoidance is enabled per default, but it can be disabled by adding
align_overlap_oboe_avoidance=offto armbianEnv.txt.ease boot issue troubleshooting
Stop processing the bootscript whenever a situation arises that cannot be recovered from.
The bootscript will continue even when certain mandatory/required things fail to process. To speed up advancin to the next
bootmeth[od], add early exits in these situations. Such as, if device tree cannot be loaded, if device tree cannot be restored after an overlay failed to apply, when kernel image fails to load, initial ramdisk fails to load.The early exit is enabled per default, but can be disabled by adding
exit_on_critical_errors=offto armbianEnv.txt.How Has This Been Tested?
Test A
Good weather tested updated
boot.scron25.5.0-trunk.435.Test B
Changed DT filename to test DT load failure on
25.5.0-trunk.435.Checklist:
Warnings have been added to
boot-mvebu.cmdto ease boot issue investigation.