We're implementing an OTA update system with A/B partition scheme on Jetson Orin NX (NVIDIA BSP). Need to:
- Use UEFI environment variables to track active partition (similar to Android's update_engine)
- Access these variables from userspace during:
Boot process (initramfs/early-boot scripts)
Application runtime (update management service)
Specific questions:
- What tools/APIs are recommended for UEFI variable access in Ubuntu userspace?
efivar CLI tool usage examples
Direct access via /sys/firmware/efi/efivars
Programmatic access using libefivar
- How to ensure persistence of modified variables across reboots?
- What permissions/privileges are required (sudo vs. udev rules)?
- Any Orin-specific limitations for UEFI variable storage?