HomeACcessoryKid / LCMdev

Development space for the next generation of Life-Cycle-Manager - NOT STABLE
Apache License 2.0
1 stars 0 forks source link

Configuration word to tune boot loader #4

Closed HomeACcessoryKid closed 4 years ago

HomeACcessoryKid commented 4 years ago

The current bootloader counts the amount of short power cycles The current logic is this 1-2 boot usercode 3-5 boot ota-main 6+ clear sysparam and boot ota-main

Plan is to make 9+ clear sysparam, set lcm_beta=y an boot ota-main

However, we could imagine an encoding of a small bit of the rboot config sector to make these numbers and events custom mappable

Which other events could you imagine would be worth mapping?

HomeACcessoryKid commented 4 years ago

Currently I have arrived at version 1.2.2 of LCMdev The solution evolved nicely such that the boot loader does much less and only conveys the count using the RTC rtc.temp_rom value. Then LCM itself does the logic and the user code is allowed the values from 1-4

The reason to jump with 3 at a time is to reduce the user miscounting and triggering something else than intended

HomeACcessoryKid commented 4 years ago

the final conclusion here is the sysparam ota_count_step. See the readme for the explanation