Skip to content
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

rockchip64: fix OrangePi 4 LTS boot with BTF, bump uboot to 2024.10 #7887

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

paolosabatino
Copy link
Contributor

@paolosabatino paolosabatino commented Feb 27, 2025

Description

At last I found, after quite a lot of headaches, that the OrangePi4 LTS booting issues with BTF-enabled kernels was not due to old u-boot, relocation issues or overlapping segments. Instead it was the utterly crappy (but woking) DMC driver that, when BTF is enabled, becomes an utterly crappy non working driver.

I disabled it and - magically - everything is fixed now.

In the meantime, believing the issue was in u-boot, I bumped u-boot to v2024.10 with little to almost no pain.
Some considerations:

  • binman does a great job
  • BOOT_SCENARIO=binman is already available for rockchip64 targets, idbloader and u-boot.itb are built by u-boot/binman, without doing it "manually" in the armbian family include script
  • important is to use CONFIG_ROCKCHIP_EXTERNAL_TPL=y in u-boot config if the board wants the proprietary ddrbin, otherwise u-boot will use its own TPL as ddr initialization binary

GitHub issue reference:
Jira reference number AR-2618

How Has This Been Tested?

  • Built and tested a Debian Bookworm minimal image with current 6.12 kernel

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

@paolosabatino paolosabatino requested a review from a team February 27, 2025 21:03
@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... labels Feb 27, 2025
@paolosabatino paolosabatino merged commit 5ad769c into armbian:main Feb 28, 2025
10 checks passed
@paolosabatino paolosabatino deleted the opi4-uboot-2024.10 branch February 28, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review Patches Patches related to kernel, U-Boot, ... size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

2 participants