[PATCH v2] cmd: bootmenu: permit to select bootmenu entry with a shortcut

Petr Štetiar ynezz at true.cz
Sun May 25 15:59:22 CEST 2025


Christian Marangi <ansuelsmth at gmail.com> [2025-05-25 15:43:58]:

Hi,

thanks for the quick fix!

> Permit to select a bootmenu entry with a key shortcut. This is
> especially useful in production or testing scenario to automate flashing
> procedure or testing procedure.
> 
> The boot entry are changed to append the shortcut key to it.
> 
> Example:
>       1. Run default boot command.
>       2. Boot system via TFTP.
>       3. Boot production system from NAND.
>       4. Boot recovery system from NAND.
>       5. Load production system via TFTP then write to NAND.
>       6. Load recovery system via TFTP then write to NAND.
>       7. Load BL31+U-Boot FIP via TFTP then write to NAND.
>       8. Load BL2 preloader via TFTP then write to NAND.
>       9. Reboot.
>       a. Reset all settings to factory defaults.
>       0. Exit
> 
> 0 is always reserved for Exit to console.
> On pressing the keyboard key 2, the bootmenu entry 2 is selected and
> executed.
> 
> Up to 34 key shortcut (0 excluded as reserved) are supported from 1-9
> and a-z.
> If a shortcut key not present in the bootmenu list is pressed, it is
> simply ignored and eventually the autoboot is interrupted.
> 
> Capital A-Z are converted to lower a-z and the related option is
> selected.
> 
> Suggested-by: Weijie Gao <weijie.gao at mediatek.com>
> Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
> ---
> Changes v2:
> - Fix spelling mistake
> - Fix case with '0'

Tested-by: Petr Štetiar <ynezz at true.cz>


More information about the U-Boot mailing list