Skip to content

Conversation

@starnight
Copy link
Contributor

@starnight starnight commented Nov 6, 2025

Going to use RPi linux kernel from rpi OSTree branch on RPi devices to have better hardware support. Then, the system should use the device tree from the RPi kernel and composed by the RPi firmware.

Because, there is already the RPi kernel, install the device tree blobs and overlays from the OSTree deployment into boot partition directly, instead of those original prepared dtbs. To include more RPi devices' device tree blobs and overlays, enlarge the boot partition size to 512 MB, just like RPi OS image.

Then, make u-boot pass the device tree composed by RPi firmware to kernel. Other arm64 platforms keep use the device tree deployed by OSTree commit directly.

https://app.asana.com/1/1203676861188277/project/1211061530470838/task/1211622697341771
https://app.asana.com/1/1203676861188277/project/1211061530470838/task/1211725762061813

@starnight starnight requested a review from dsd November 6, 2025 09:39
@starnight
Copy link
Contributor Author

This is blocked on https://github.com/endlessm/eos-build/pull/1576. So, I convert it to draft.

@starnight starnight marked this pull request as draft November 6, 2025 09:40
Going to use RPi linux kernel from rpi OSTree branch on RPi devices to
have better hardware support. Then, the system should use the device
tree from the RPi kernel and composed by the RPi firmware.

Because, there is already the RPi kernel, install the device tree blobs
and overlays from the OSTree deployment into boot partition directly,
instead of those original prepared dtbs. To include more RPi devices'
device tree blobs and overlays, enlarge the boot partition size to 512
MB, just like RPi OS image.

https://app.asana.com/1/1203676861188277/project/1211061530470838/task/1211622697341771
RPi firmware composes the device tree with overlays. Not only the single
device tree blob. So, teach u-boot pass the device tree composed by RPi
firmware to kernel. Other arm64 platforms keep use the device tree
deployed by OSTree commit directly.

https://app.asana.com/1/1203676861188277/project/1211061530470838/task/1211725762061813
RPi firmware coworks with device tree to decide the CMA size
automatically. Then, kernel allocates the CMA memory. So, there is no
need to insert the customized cma argument into the boot command.

https://app.asana.com/1/1203676861188277/project/1211061530470838/task/1211645002178218
@starnight starnight force-pushed the rpi-uses-rpi-ostree branch from 2dcf440 to ebd233b Compare November 6, 2025 10:13
@starnight starnight marked this pull request as ready for review November 14, 2025 08:39
@dsd dsd merged commit ebd233b into master Nov 17, 2025
2 checks passed
@dsd dsd deleted the rpi-uses-rpi-ostree branch November 17, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants