U-Boot v2022.07-rc2 regression: Bootmenu is completely broken

Pali Rohár pali at kernel.org
Mon May 23 21:27:37 CEST 2022


Hello!

U-Boot Bootmenu in git master branch is completely broken and does not
work. You can test it e.g. in qemu version of nokia n900 (see rx51.rst).

Bootmenu just prints garbage on both serial console and VGA video
output and no option works.

  *** U-Boot Boot Menu ***

      A
      I
      E
      U
      U


  Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit

I bisected this issue and problem is in:

  a3d0aa87acbec4b983f54c24a6e7fd8e9e7b9728 is the first bad commit
  commit a3d0aa87acbec4b983f54c24a6e7fd8e9e7b9728
  Author: Masahisa Kojima <masahisa.kojima at linaro.org>
  Date:   Thu Apr 28 17:09:41 2022 +0900

      bootmenu: update bootmenu_entry structure

      This is a preparation for succeeding addition of uefi boot
      and distro boot menu entries into bootmenu.
      The bootmenu_entry title is updated to u16 string because
      uefi use u16 string. This commit also factors out the function
      to prepare the entries generated by "bootmenu_x" U-Boot environment
      variable.

      Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>
      Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

  :040000 040000 37c91714b049be307521831c0470b3b6c8af2407 b3e865073a46108cccbf4dc0b401789ef0b05a2e M      cmd

Before that commit Bootmenu works fine and on serial console prints:

  *** U-Boot Boot Menu ***

      Attached kernel
      Internal eMMC
      External SD card
      U-Boot boot order
      U-Boot console


  Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit


Could you please look at it and fix it?


More information about the U-Boot mailing list