Add device_board_set_boot_success in booting-done.service 24/269024/4
authorHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 6 Jan 2022 11:32:30 +0000 (20:32 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 6 Jan 2022 11:40:09 +0000 (20:40 +0900)
commit4c96e536e1f90b3ec3dbedaf591d6c7cdb95fb49
treea51b447b2c860eba737e20122b100fe5c0edb2bb
parent4139bdc40ca8a18ab02ee0dad739fbf50ee87074
Add device_board_set_boot_success in booting-done.service

/usr/bin/device_board_set_boot_success reports boot success to the bootloader.
If boot success is not reported for, e.g., 10-times booting in a row,
bootloader recovers the system.

-- Bootloader --
If (BOOT_SUCCESS flag is set) {
Clear the BOOT_SUCCESS flag
BOOT_FAIL_COUNT = 0
} Else {
If (++ BOOT_FAIL_COUNT > 10) {
BOOT_FAIL_COUNT = 0
Restore to the other partitions (e.g., b -> a)
Proceed to the recovery booting (ramdisk-recovery, bootmode="recovery")
          }
}

Proceed to the normal booting (ramdisk, bootmode="")

Change-Id: I581c5dbcf216806dfcff826bbdf7ca82dc944676
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
units/booting-done.service.in