Page MenuHomeFreeBSD

FDT overlays support for ubdlr
ClosedPublic

Authored by gonzo on Jul 24 2015, 4:54 AM.

Details

Summary

Add support for DTB overlays to ubldr:

  • Add handler for fdt_overlays variable to ubldr.

"fdt_overlays" is coma-separated list of overlay files. ubldr would try to load files one by one from /boot/dtb/ and right before final DTB fixup it would try to apply them to current FDT blob. Variable can be either u-boot env variable or loader env variable.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

gonzo updated this revision to Diff 7245.Jul 24 2015, 4:54 AM
gonzo retitled this revision from to FDT overlays support for ubdlr.
gonzo updated this object.
gonzo edited the test plan for this revision. (Show Details)
gonzo added reviewers: andrew, ian.
gonzo set the repository for this revision to rS FreeBSD src repository.
gonzo added a subscriber: ARM.
imp added a comment.Jul 24 2015, 5:28 AM

Are these changes from upstream dtc?

gonzo added a comment.Jul 24 2015, 5:37 AM
In D3180#63461, @imp wrote:

Are these changes from upstream dtc?

Not from official tree as far as I understand. I merged this patch:
https://github.com/RobertCNelson/dtc/commit/dd6a0533e846e8d5e690a618fa35cc15a6103efb

gonzo added a reviewer: imp.Jul 24 2015, 5:37 AM
imp edited edge metadata.Jul 24 2015, 1:36 PM
In D3180#63462, @gonzo wrote:
In D3180#63461, @imp wrote:

Are these changes from upstream dtc?

Not from official tree as far as I understand. I merged this patch:
https://github.com/RobertCNelson/dtc/commit/dd6a0533e846e8d5e690a618fa35cc15a6103efb

We need to be careful integrating it. We don't want to create a permanent fork...

This is really cool and needful stuff, though, so I'm torn.

Even if the overlay isn't standard it would be nice to commit the ubldr support.
And maybe provide a ports/pkg for the non-standard dtc ?

gonzo updated this revision to Diff 14903.Apr 5 2016, 6:17 PM
gonzo updated this object.
gonzo edited edge metadata.

Remove dtc patch as non-standard, leave only ubldr part. It still can be used with vendor-provided .dtb/.dtbo files

This revision was automatically updated to reflect the committed changes.