Tow-Boot / Tow-Boot

An opinionated distribution of U-Boot. — https://matrix.to/#/#Tow-Boot:matrix.org?via=matrix.org
https://tow-boot.org
MIT License
512 stars 139 forks source link

Add SUNXI_AMEND_DTB=1 to Sunxi devices #224

Open Strit opened 1 year ago

Strit commented 1 year ago

There seems to be some consensus about having TF-A built with SUNXI_AMEND_DTB=1 to get CPUIDLE functionality working, which should increase battery efficiency.

I couldn't see any indication that this is done on Tow-Boot, so I'd like to suggest it gets added.

Strit commented 1 year ago

Seems u-boot needs additional fixes to get the functionality actually working. We are investigating what that is.

AndreySV commented 7 months ago

Hopefully it will land in arm-trusted-firmware in v2.11 and will be enabled by default: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/22821/5

The final solution doesn't require any changes in u-boot. It requires that dtb is provided by u-boot, not by a distribution and this dtb is modified by tf-a during a boot. See discussion here:

https://patchwork.ozlabs.org/project/uboot/patch/20230904205430.1647654-1-andrej.skvortzov@gmail.com/