Jump to content

[Armbian build PR] - rk322x: fixes uboot v2024.01 interoperability with vendor kernel


Recommended Posts

Posted

Description

Uboot v2024.01 leaves HDMI/VOP and USB ports in a state that is not liked by vendor kernel tools (eg. the Multitool), thus making their usage difficult or impossible.

These patches will assert the resets for HDMI, VOP and USB ports and deassert them on uboot exit, so the kernel (any kernel) will find them in active and "clean" state.

Nerd note: the USB nodes in uboot device tree do not have the reset properties. Adding the reset properties makes the USB ports undetectable to the kernel because uboot - on purpose - leaves the devices with the reset asserted. To let the kernel detect the ports, you have to add the reset properties in the kernel device tree too, so the kernel is able to deassert them. A more complete device tree is not always to be a good thing, for uboot at least.

Jira reference number AR-2349

How Has This Been Tested?

  • [x] Compiled uboot via armbian tools
  • [x] Tested produced uboot on various live systems
  • [x] Tested uboot in conjuction with tools using vendor kernel (multitool)

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines