-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeviceTree Support #369
Comments
So, I want to support devicetree better for nixos, outside of extlinux. I don't want to touch grub (perl), I don't want to touch something that feels bespoke and doesn't work for non-iso scenarios (iso-image grub), I don't want to touch systemd-boot (python). I'd much rather invest in bootspec + lanzaboote:
I realize that using lanzaboote for the ISO is a bit weird, since normally you'd install -> provision -> sign -> load key -> turn on enforcing. But also, it's no worse than the existing setup, and could lead to a reduction of duplication in nixpkgs (if there was appetite for standardizing on lanzaboote). I could certainly use some advice/guidance/help on this. I'm willing to throw some money at it, too, if there are interested folks. |
So, I think the issue here is going to be signing the DTB. The other issue will be (as we talked briefly about on matrix) choosing the right DTB during boot. Right now this problem has been kind of punted, and all the systemd stuff just assumes you have the correct DTB chosen ahead of time, before signing even. But I think we could use something similar to @RaitoBezarius's work on using addons for |
For now, I'm going to hack the systemd-boot-builder.py and limp along with that for now. I'm still interested in this, though, if someone wants to shepherd me (probably not for a month or so), or if I can fund someone to do it. Thanks for the thoughts @ElvishJerricco. (Also, I'm fine with punting on the harder part of selecting the DTB from firmware, that seems like a much bigger thing than just some hard-coded |
Until we have TPM support on the X1E the case for using secure boot isn't very strong, but once we have that I might be motivated to have a crack at this, and see if I can get a PoC working. |
Hi.
I'm playing with Snapdragon X Elite support, though I don't have applicable hardware for another couple of weeks.
I have an ISO generated with the custom kernel, but I had to commit some sins to try and maybe make the installer Grub (maybe) work:
hardware.deviceTree
properly${kernelPkg]/${deviceTree.name}
which I'm hoping will just work.To me, lanzaboote is a chance to iterate on this, out-of-tree from nixpkgs, and I'd prefer to use lanzaboote on all of my machines anyway.
From what I can tell, lanzaboote happily compiled for aarch64-linux, but I doubt it has support for device-tree.
Questions:
I'm naively thinking that the lanzaboote module would just look at
config.hardware.deviceTree.{enable,name}
and then add the appropriate line to the generation's boot cfg file/entry.The text was updated successfully, but these errors were encountered: