Giter Site home page Giter Site logo

Comments (4)

algernon avatar algernon commented on May 30, 2024 1

This sounds like a very good idea to me, I like it. I'll look into it, thanks!

from chrysalis-firmware-bundle.

algernon avatar algernon commented on May 30, 2024

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.

from chrysalis-firmware-bundle.

jwillikers avatar jwillikers commented on May 30, 2024

I'm pretty interested in learning about how it works, so I'm also interested in helping out.

from chrysalis-firmware-bundle.

algernon avatar algernon commented on May 30, 2024

From what I can tell, we'll need to do two different things to make this possible:

  1. We'll need to register as a hardware vendor on LVFS, and figure out how the release process works there.
  2. We'll need to write a plugin for fwupd to handle our update procedures, like the EEPROM backup & restore stuff.

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.

from chrysalis-firmware-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.