serial_enter_uboot
Reboots the device and interrupts autoboot to enter U-Boot, using configurable prompt matching and environment key verification to ensure successful entry.
Instructions
Enter U-Boot by rebooting the device and stopping autoboot. Detection rules (autoboot prompts, command prompt, verify env keys) are configurable via device config serial.uboot; falls back to built-in defaults. Two-layer strategy: prompt match first; if not matched within a short window, sends 'printenv' and verifies U-Boot env keys. Fails fast on kernel boot or verify timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Total timeout in seconds to wait for autoboot prompt (default: 60) | |
| session_id | Yes | The session ID returned by serial_open |