0

I want to do OTA (Over The Air) updates in my Raspberry Pi. I have seen a lot of services on the internet like mender.io, but they are all quite expensive. Is there any easy/less expensive way to do OTA updates in my RPI? For example, I have 2 partitons in my RPI. In one partition my current OS is running, and now I download the updated OS and would like to install it on 2nd partition. If the installation gets completed without any problem then the bootloader will boot from this partition next time.

Can somebody guide me how can this be achievable?

13
  • This would be a feature of the operating system itself. Since most or all of the linux distros commonly used on the Pi have it intrinsically (eg. on Raspbian apt update; apt upgrade), it's not clear what you are looking for...
    – goldilocks
    Commented Feb 3, 2020 at 15:49
  • do you know what does OTA means? whoever would know the answer knows really well what i am asking here. I dont get it why people close the post without even asking..
    – Hsn
    Commented Feb 4, 2020 at 16:09
  • 3
    Again, the idea of OTA updates that store a full copy of a firmware in a partition and then boot from that is for cases where the device only runs one piece of code (microcontroller). For two reasons. 1) it cant update its code while running. 2) it needs to be able to fall back in the event of an incomplete download or corrupt data. Again this is all handled by apt-get and other package managers so just go ahead and automate them.
    – Chad G
    Commented Feb 5, 2020 at 22:29
  • 1
    That's part of what the package manager does. It's certainly not perfect, but you don't really think it is just plain dumb do you? That stuff has been around for 20 years and is used in probably the broadest context that any software could be, meaning, apt has been deployed everywhere for a long time. You should try to learn about that first, before you assume it doesn't cover most of what you want. After that, you should investigate automated configuration managers such as chef or puppet, and conventional, efficient methods of incremental backup such as rsync...
    – goldilocks
    Commented Feb 6, 2020 at 15:12
  • 3
    Hawkbit + rauc (or) swupdate might be a solution
    – Fl0v0
    Commented Feb 12, 2020 at 16:46

1 Answer 1

0

Use Hawkbit as a deploy server.

And rauc (or) swupdate as a client on RaspberryPi side.

(I've converted @Fl0v0 comment to answer and added links)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.