A port of the Qualcomm Android bootctrl HAL for musl/glibc userspace.
Go to file
Caleb Connolly 55612452e0
its ALIIIIIIVE
not yet properly tested, but it seems to mostly work just fine. Slot
switching and marking boot as successful at least just work!
2022-06-04 04:42:40 +01:00
.gitignore its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
gpt-utils.cpp its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
gpt-utils.h initial commit 2021-10-09 23:16:20 +01:00
meson.build its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
qbootctl.cpp its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
README.md its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
ufs-bsg.cpp its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
ufs-bsg.h its ALIIIIIIVE 2022-06-04 04:42:40 +01:00
utils.h its ALIIIIIIVE 2022-06-04 04:42:40 +01:00

Qualcomm bootctl HAL for Linux

This HAL was pulled from AOSP source code and bastardised to build and run on a musl/glibc system. This may or may not render any hardware you run it on unusable, you have been warned.

Dependencies

  • zlib-dev

Usage

qbootctl: qcom bootctrl HAL port for Linux
-------------------------------------------
qbootctl [-c|-m|-s|-u|-b|-n|-x] [SLOT]

    <no args>        dump slot info (default)
    -h               this help text
    -c               get the current slot
    -b SLOT          check if SLOT is marked as bootable
    -n SLOT          check if SLOT is marked as successful
    -x [SLOT]        get the slot suffix for SLOT (default: current)
    -s SLOT          set to active slot to SLOT
    -m [SLOT]        mark a boot as successful (default: current)
    -u [SLOT]        mark SLOT as unbootable (default: current)

Debugging

Set DEBUG to 1 in utils.h to enable debug logging.