17 Commits

Author SHA1 Message Date
Ondrej Kubik
2f2b1ff2c2 bootloader/lk,include/lk: more typo fixing in the descriptions
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2022-08-24 16:33:21 +03:00
Ondrej Kubik
4863490140 bootloader/lk,include/lk: fix typo DEVICE_STATE_UNKNOW->DEVICE_STATE_UNKNOWN
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2022-08-08 16:27:42 +03:00
Ondrej Kubik
1db1cedacc bootloader/lk,include/lk: correct description of the device_lock_state variable
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2022-08-08 16:10:12 +03:00
Ondrej Kubik
b779cbc474 include/lk: fix typo in snappy_boot_v2.h
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2022-01-10 15:31:37 +00:00
Ondrej Kubik
691dbe35cf include/lk: update LK recovery environment definition to include device lock state used by bootloader
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2021-11-30 22:15:13 +00:00
Maciej Borzecki
c33df1719c include/lk: update LK recovery environment definition to include new fields
Update the recovery struct to include try_recovery_system and
recovery_system_status.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-03-03 08:36:15 +01:00
Ian Johnson
5f2e8f4b9d include/lk/snappy_boot_common.h: fix typo in define ..._run -> ..._RUN
Thanks to @kubiko for spotting this one too.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-25 11:09:57 -06:00
Ian Johnson
367f95579f snappy_boot_v2.h: apply rename of SNAP_BOOTSELECT_SIGNATURE_RUN to comments too
Thanks to @kubiko for spotting this

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-25 10:41:31 -06:00
Ian Johnson
95270eb495 include/lk/snappy_boot_common.h: add defines for recovery modes
Also rename SNAP_BOOTSELECT_RUN_SIGNATURE to SNAP_BOOTSELECT_SIGNATURE_RUN to
match SNAP_BOOTSELECT_SIGNATURE_RECOVERY and update comment to clarify that
SNAP_BOOTSELECT_SIGNATURE_RUN is the same as SNAP_BOOTSELECT_SIGNATURE.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-25 10:04:23 -06:00
Ian Johnson
33ff3ec8e1 bootloader/lkenv,include/lk: update to be consistent, use SNAP_RECOVERY_...
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-25 10:03:09 -06:00
Ian Johnson
e5b6da1dfb include/lk/snappy_boot_*.h: add additional defines for run/recovery signature
Also remove the TODO about what to set the version to, since we have resolved
this issue.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-24 15:57:34 -06:00
Ian Johnson
4513377be9 include/lk: add snappy_boot_v2.h and snappy_boot_common.h
These include files will be used by bootloader implementations which marshal/
unmarshal these structures from partitions to communicate bootenv from snapd
to the bootloader and vice-versa.

These structures could be included in the original V1 struct by taking advantage
of the extra padding in the struct, but this would complicate using the struct,
as bootloader implementations would need to be coded to validate that the right
keys were being used, etc. for one version or another.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-20 09:04:31 -06:00
Ian Johnson
98c08a0aa7 include/lk/snappy_boot_v1.h: fix typos + apply linter to file
This is the C/C++ linter bundled with VS Code.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-11-19 17:45:06 -06:00
Claudio Matsuoka
e63cf213bb many: fix typo in the word partition in comments
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
2020-09-02 20:13:07 -03:00
Ondrej Kubik
b9914c29c9 bootloader: lkenv: fix typos in lkenv structures
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2019-09-10 13:54:42 +01:00
Ondrej Kubik
ecc16c975c bootloader: lk: updating env structure
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2019-09-10 11:15:52 +01:00
Ondrej Kubik
381f5acc5f bootloader: move snappy_boot_v1.h to include/lk
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
2019-09-09 13:48:03 +01:00