Skip to content

Comments

aarch64 support: efi stub and devicetree selection#722

Merged
zdykstra merged 1 commit intomasterfrom
podunk-platform-support
Mar 11, 2025
Merged

aarch64 support: efi stub and devicetree selection#722
zdykstra merged 1 commit intomasterfrom
podunk-platform-support

Conversation

@zdykstra
Copy link
Member

@zdykstra zdykstra commented Feb 5, 2025

generate-zbm now understands the EFI.DeviceTree key. This key can contain one of three possible values:

  1. /absolute/path/%{kernel}/to/device-tree-file.dtb
  2. /absolute/path/to/device-tree-file.dtb
  3. partial/path/device-tree-file.dtb

If found, %{kernel} is replaced with the kernel version being built in to the EFI asset. Partial paths are appended to /boot/dtbs/dtb-$kernel/, a well-known path for device tree files used by Void Linux.

Inside ZFSBootMenu, the org.zfsbootmenu:devicetree property is read. The values of this property are handled in the same order/priority as EFI.DeviceTree.

Documentation will be written and appended to this PR once the overall design of this support is accepted.

@zdykstra zdykstra force-pushed the podunk-platform-support branch 8 times, most recently from 4b60c5c to 0ec4a20 Compare February 5, 2025 22:31
@zdykstra
Copy link
Member Author

zdykstra commented Feb 5, 2025

Go go gadget force push

@zdykstra zdykstra force-pushed the podunk-platform-support branch 2 times, most recently from b64815c to cccb2b0 Compare February 6, 2025 00:50
Copy link
Member

@ahesford ahesford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works exactly as I'd expect. I offer only some trivial comments, take or leave them as you like.

We need documentation on the config.yaml options and the ZFS property.

Copy link
Member

@classabbyamp classabbyamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worked for me, pending docs ofc

@zdykstra zdykstra force-pushed the podunk-platform-support branch 2 times, most recently from 4a91f62 to cb699bc Compare March 11, 2025 01:30
@ahesford
Copy link
Member

In the fixup, I reworded the docs to replace sample paths with generic prose. If you think this improves clarity, squash it; if not, just stick with your original.

generate-zbm now understands the EFI.DeviceTree key. This key can
contain one of three possible values:

1) /absolute/path/%{kernel}/to/device-tree-file.dtb
2) /absolute/path/to/device-tree-file.dtb
3) partial/path/device-tree-file.dtb

Inside ZFSBootMenu, the org.zfsbootmenu:devicetree property is read. The
value of this property are handled in the same order/priority as
EFI.DeviceTree.

This has been tested on a Lenovo x13s running Void Linux.
@zdykstra zdykstra force-pushed the podunk-platform-support branch from 6933d78 to 6a5ada6 Compare March 11, 2025 03:00
@zdykstra zdykstra merged commit 9ed49ad into master Mar 11, 2025
2 checks passed
@zdykstra zdykstra deleted the podunk-platform-support branch March 11, 2025 03:01
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