Skip to content

make rboot aware of lcm and allow recovery from unresponsive uploaded code

License

Notifications You must be signed in to change notification settings

HomeACcessoryKid/rboot4lcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTA Bootloader (rboot) source module and support files.

rboot is an open source bootloader by Richard Burton: https://github.com/raburton/rboot

Wrapper rboot4lcm to complement homeaccessorykid/life-cycle-manager

The objective of this repo is to make rboot recognize multiple power reboots in short time. If detected, either the user code or the lcm ota-main sector will be launched. The amount of power cycles will be conveyed to the booted code. Values 1-4 are for the normal user code.

Ota-main will be able to erase bad settings. See LCM for more details.
This provides a fallback at all times to recover from bad user code or to change the user repository. Most of the actual functionality will be made in the module rboot

To make rboot4lcm use
make clean all

To collect count in YOUR app, use this sample

#include <rboot-api.h>
int count=0;
rboot_rtc_data rtc;

if (rboot_get_rtc_data(&rtc)) count=rtc.temp_rom;

Original rboot instructions

Can be used to build an esp-open-rtos compatible rboot bootloader. Run 'make bootloader' in this directory to compile a new bootloader.

Compiling a new bootloader is optional, there's a prebuilt one in the "firmware_prebuilt" directory that will be used if no new bootloader was compiled.

It is also possible to use rboot from upstream verbatim, but *ensure that the RBOOT_BIG_FLASH option is enabled or images in slots other than 0 won't work correctly.

See the contents of the 'rboot' directory for more information on rboot.

About

make rboot aware of lcm and allow recovery from unresponsive uploaded code

Resources

License

Stars

Watchers

Forks

Packages

No packages published