mirror of
https://github.com/linux-msm/qbootctl.git
synced 2026-02-25 13:13:44 -08:00
487a96f66322d04103f6a8504454ee905d034229
it also called strlcpy which only exists on musl and bionic, dropping it lets this build on glibc too.
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
- meson
- cmake
- linux-headers
Building
qbootctl uses the meson build system
meson build
meson compile -C build
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.
Description
Languages
C
99.4%
Meson
0.6%