Skip to content
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

Coreboot configuration #231

Open
cassidyjames opened this issue Aug 18, 2021 · 1 comment
Open

Coreboot configuration #231

cassidyjames opened this issue Aug 18, 2021 · 1 comment

Comments

@cassidyjames
Copy link
Contributor

cassidyjames commented Aug 18, 2021

Problem

Requested by @Sean-StarLabs

Proposal

One thing I'd really like to do, so every base is covered, is put some way of changing coreboot settings into switchboard, maybe next to the fwupd integration.

This was my "5-minute" approach:
https://github.com/StarLabsLtd/coreboot-configurator

Technically, it's a relatively easy job, and it could be written in bash in a minute or so, to work with any coreboot setup. Something like:

Check if /sys/devices/virtual/dmi/id/bios_vendor == "coreboot"
Get possible settings with nvramtool -a
For each setting, get the possible options with nvramtool -e $setting
Give these options to the use, if they change, write them with nvramtool -w $setting=$option

Prior Art

We have firmware updates here, and this feels at least tangential.

@cassidyjames
Copy link
Contributor Author

cassidyjames commented Aug 18, 2021

For an example of what is configurable:

https://github.com/StarLabsLtd/coreboot/blob/master/src/mainboard/starlabs/labtop/cmos.default

This looks to be things you'd usually see in a BIOS menu, and @Sean-StarLabs pointed out they require a reboot to apply as well. So there's some design work to decide if and how to integrate them.

The reason for configuring Coreboot in session is that Coreboot does not have a menu to configure these from the boot side—so those machines need a way to configure them in the OS. An option is to ship a separate Coreboot configurator app thing, but it would feel more integrated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

1 participant