Coder Social home page Coder Social logo

Pre/Post upgrade hooks about nerves_hub HOT 6 CLOSED

ConnorRigby avatar ConnorRigby commented on July 30, 2024
Pre/Post upgrade hooks

from nerves_hub.

Comments (6)

fhunleth avatar fhunleth commented on July 30, 2024

The intention is that this is executed one time after the reboot that applies the Nerves firmware update?

Why not check the peripheral firmware versions on each boot and upgrade/downgrade if necessary?

from nerves_hub.

ConnorRigby avatar ConnorRigby commented on July 30, 2024

The intention is that this is executed one time after the reboot that applies the Nerves firmware update?

Yeah i thought it would be easy to have a registration of modules or a single module in uboot_env along with their results.

Why not check the peripheral firmware versions on each boot and upgrade/downgrade if necessary?

Any in my particular project, i use avrdude which is beyond unstable. It's basically a diceroll if it works at all. and "checking" the version requires using Circuits.UART to open it, which further complicates running avrdude for some reason. It's easier to just flash it to a known required version upon an upgrade.

from nerves_hub.

ConnorRigby avatar ConnorRigby commented on July 30, 2024

If this is something we don't want to support, i'm fine with implementing it in band of my application. I thought it might be useful to have baked into nerves_hub though.

from nerves_hub.

fhunleth avatar fhunleth commented on July 30, 2024

You could write the version number to the file after a successful avr_dude run.

from nerves_hub.

fhunleth avatar fhunleth commented on July 30, 2024

I've been burned by multi-part or bundled firmware updates. My problem is debugging what happens when one part gets out-of-sync. There needs to be some infrastructure around making the update all or none, and then it also has to handle a Nerves firmware update that succeeds but then is reverted. It feels complicated.

If this were redone to always check at boot rather than being a one-time hook, then I'd be more ok. I suspect that the value-add would be less, though.

from nerves_hub.

ConnorRigby avatar ConnorRigby commented on July 30, 2024

Yeah i have also been constantly burned by multi-part updates. Maybe i just need to come up with a different or better way of managing my upgrades. Feel free to close if you don't think we should support this feature. (i'm pretty much okay with not supporting it)

from nerves_hub.

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.