On 02/07/2018 09:50 AM, Haojian Zhuang wrote:
I have an issue on tty terminal. I setup PL011 serial console as the
tty terminal on HiKey platform. When it's built in debug mode, arrow
key works well. When it's built in release mode, arrow key can't work.
For example, DOWN key is gotten in terminal with "~[B" value in debug
build. DOWN key is gotten in terminal with "~" value in release build.
These values are fetched by GetOneKeyFromSerial().
But I can't find any difference on PL011 serial driver between debug
and release mode.
Do you have any idea on this?
Just to add an additional data point.
I see arrow key issue on the hikey as well as the ARM models. The
problem seems to have shown up sometime late last year and happens in my
case when the machine directly boots into distro provided grub.
Strangely, exiting to the BDS and then starting the boot from the BDS
seems to clear up the problem and the arrow keys work (or pressing
escape and going to the BDS first, either way poping up the BDS menus
seem to work around the issue).
Linaro-uefi mailing list
edk2-devel mailing list