serial_enter_uboot
Reboots the target device and halts autoboot to enter the U-Boot prompt, using configurable prompt detection with a printenv fallback to verify U-Boot environment and fail fast on timeout.
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 |