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

remote update firmware #33

Open
pat1 opened this issue Sep 28, 2015 · 3 comments
Open

remote update firmware #33

pat1 opened this issue Sep 28, 2015 · 3 comments

Comments

@pat1
Copy link
Member

pat1 commented Sep 28, 2015

should be great the possibility to upgrade the firmware from a remote site.
brain storm on it:
a specific protocol to write firmware to a SD card
reboot
use this or somethings like this to unpgrade firmware from SD:
https://github.com/thseiler/embedded/tree/master/avr/2boots/

@dcast78
Copy link
Contributor

dcast78 commented Apr 28, 2016

Brainstorming ideas...

For a remote upgrade it's useful to use two firmware images (eg: two files on sdcard).

  • Tested firmware for secure boot
  • New firmware for upgrade
    If new firmware fail to boot (triggered by watchdog restart?) the bootloader automatically revert to old tested software.
    When the new firmware it's ok, with a commit new file becomes tested.
    Wen rollback occour diagnostic log aid to investigate the problem if possible memorize it to sdcard file.

@pat1
Copy link
Member Author

pat1 commented Apr 29, 2016

I firmware modificati dovrebbero andare qui:
https://github.com/r-map/rmap/tree/master/arduino/sketchbook/hardware/Microduino/avr/bootloaders

2boots pare un bootloader un po' vecchio.
Lo stato dell'arte parrebbe essere optiboot:
https://github.com/arduino/Arduino/tree/master/hardware/arduino/avr/bootloaders

Una versione modificata di optiboot è:
https://github.com/Rodot/Gamebuino/tree/master/hardware/gamebuino/bootloaders/gamebuino_boot
http://gamebuino.com/wiki/index.php?title=Bootloader
probabilmente è da qui che bisogna partire ...

@pat1
Copy link
Member Author

pat1 commented Apr 29, 2016

link utili per i pn da utilizzare su microduino per ISP:
https://www.arduino.cc/en/Tutorial/ArduinoISP
http://www.instructables.com/id/Adding-ICSP-header-to-your-ArduinoAVR-board/step2/Finding-the-pins-to-connect-to/
https://wiki.microduino.cc/index.php/Microduino_Upin27_Pinout_Summary

quindi su microduino i pin sarebbero:
miso -> D11
mosi -> D12
sck -> D13
rst -> RST

@pat1 pat1 added this to the Stima GSM http report mode milestone Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants