From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=jeremy.linton@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 3CF4E223DB78E for ; Fri, 9 Feb 2018 07:46:46 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 039721435; Fri, 9 Feb 2018 07:52:32 -0800 (PST) Received: from [192.168.100.241] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB2153F487; Fri, 9 Feb 2018 07:52:31 -0800 (PST) To: Haojian Zhuang , edk2-devel-01 , Linaro UEFI Mailman List References: From: Jeremy Linton Message-ID: <6466d400-93d3-9594-c527-0f941d41e312@arm.com> Date: Fri, 9 Feb 2018 09:52:30 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Linaro-uefi] [issue] Arrow key can't be read on tty terminal in release build X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 15:46:47 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hi, On 02/07/2018 09:50 AM, Haojian Zhuang wrote: > Hi all, > > 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). > > Best Regards > Haojian > _______________________________________________ > Linaro-uefi mailing list > Linaro-uefi@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/linaro-uefi >