-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature request: Distribute firmware updates via fwupd? #27
Comments
This sounds like a very good idea to me, I like it. I'll look into it, thanks! |
FWIW, I will be looking into this in the not too distant future, mostly exploring what needs to be done, if it is even feasible. I'll document my findings here, but I will very likely not take it further than the research stage. We'll have a reasonable set of tasks at that point, however, and I'll happily review patches. |
I'm pretty interested in learning about how it works, so I'm also interested in helping out. |
From what I can tell, we'll need to do two different things to make this possible:
I'm not sure how the plugins are organized in fwupd, but we'll need a way to follow the same logic Chrysalis does: structured EEPROM backup, reboot to bootloader, flash (multiple protocols supported here: DFU for the Model100, and others for the Keyboardio Atreus/Model01, and another for the ErgoDox EZ and OG Atreus, and another for Splitography), reconnect, erase eeprom, reconnect again, restore eeprom. fwupd is written in C. The process requires multiple reboots of the device, one of them requiring a reboot into bootloader mode, which requires the user to hold a key, so the process cannot be fully automated. This sounds like a recipe for disaster to me. The flashing process is proving to be quite fragile even in a higher level language, I do not see it working out well when written in C. If we were just flashing, that could work, the DFU plugin already exists, so we'd only need to bolt on a plugin that helps us do the reboot into bootloader mode. But just flashing, without the eeprom save & restore dance, the update would do more harm than good. |
It would be really cool if firmware updates were available for Keyboardio's keyboards via fwupd on Linux.
That would make it really easy to get the latest updates on Linux, since
fwupd
is pretty well integrated in most desktop Linux distributions out-of-box.Users could update by checking for updates with
fwupd
or a higher-level tool like GNOME Firmware, which can provide necessary instructions for the update, such as holding a particular combination of keys when initiating the update.Since I'm so happy with the defaults of my Keyboardio keyboards, I don't often need the advanced features of Chrysalis. I usually just set my preferred keyboard layout once, and then only use Chrysalis for firmware updates.
I know that System76 does this for their Launch keyboard, as described here.
The text was updated successfully, but these errors were encountered: