]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: initialize console size late
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 14 Jun 2022 06:02:03 +0000 (08:02 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 19 Jun 2022 13:53:09 +0000 (15:53 +0200)
commit7f77763a0501da2b5ec142ca61f558a51b48fdd9
treebe48c4913994853278537ab895d4cfc42a4bf231
parentdedf86e0deddf59a70562b70860d8e55d12c0161
efi_loader: initialize console size late

If CONFIG_VIDEO_DM=n we query the display size from the serial console.
Especially when using a remote console the response can be so late that
it interferes with autoboot.

Only query the console size when running an EFI binary.

Add debug output showing the determined console size.

Reported-by: Fabio Estevam <festevam@gmail.com>
Fixes: 585e1519a1e8 ("efi_loader: split efi_init_obj_list() into two stages")
Fixes: 3da94f1971c7 ("efi_loader: disk: a helper function to create efi_disk objects from udevice")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Fabio Estevam <festevam@denx.de>
Tested-by: Heiko Thiery <heiko.thiery@gmail.com>
include/efi_loader.h
lib/efi_loader/efi_console.c
lib/efi_loader/efi_setup.c