中文 | English
This repository is recommended to be used via the unirtos-cli demo workflow to ensure a consistent process for project creation, environment setup, and compilation.
Note: Once secure boot is enabled, it usually cannot be rolled back. Please use with caution.
This demo demonstrates secure boot (Secboot) feature management on UniRTOS, including enabling secure boot and periodically querying its state.
- Demonstrates enabling secure boot with
qosa_secboot_enable - Demonstrates querying secure boot enable state with
qosa_secboot_get_enable_state - Demonstrates periodic polling of secure boot status for runtime verification
- Development Preparation
- Install the Cross-Compilation Toolchain
- Install Python3
- Install git
- Install unirtos-cli:
pip install unirtos-cli
Once all the above tools are installed, verify the following commands are available:
python --version # Python3
git --version
unirtos --version # version 1.0.5 or above
unirtos-cli version # version 1.0.11 or aboveList available demos and versions:
unirtos-cli ls-demosCreate this demo project:
unirtos-cli new -r unirtos-secboot-demosTo specify a version:
unirtos-cli new -r unirtos-secboot-demos -v 1.0.0cd unirtos-secboot-demos-1.0.0
unirtos-cli env-setup
unirtos-cli build# Open the SDK menu configuration
unirtos-cli menuconfig
# Clean build artifacts
unirtos-cli cleanTechnical Community: https://forumschinese.quectel.com/c/66-category/66
Contributions are welcome. Please follow these guidelines when submitting:
- Run a basic validation before submitting: env-setup, build, clean.
- Use clear commit messages describing the purpose of the change, its scope of impact, and verification results.
- When adding new features or changing behavior, update the README and related documentation accordingly.
- Submit bug fixes and feature improvements via Issues or Pull Requests.