From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::232; helo=mail-wm0-x232.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 267F621F0DA69 for ; Wed, 7 Feb 2018 07:47:18 -0800 (PST) Received: by mail-wm0-x232.google.com with SMTP id f3so4244431wmc.1 for ; Wed, 07 Feb 2018 07:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5FiIFb6/vYMWnVwm5u5AMCKphg2VFLuZ0eGOvxbgPRw=; b=i47Vziard+UCC5MjbFkgM+4j3Tm6AKOHN2SURppMNp572JsuKNGa88icA9DnxmYzz3 OSrYI9mm0GjKU/eMQT/vctnAn6xHBqmM0/5HyBTwBQWznsyRjRzh4L2Q+R4GV5PHWeyW GxK5fTIBTYl/zyZunTVzdEhiVEFccffUjHN/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5FiIFb6/vYMWnVwm5u5AMCKphg2VFLuZ0eGOvxbgPRw=; b=SnW2HwzgQHvTxlJu3Oqmyb30ZTNlepB47WBdHdVByJ2VXdsJgKNpou2DPTdFN9ipsz KyZKnQ7lpX8nfd2lzNptNLQxbLT6bMRsYqWJV+UzoCJUUf0OYRWoICGQ+VyRVLAOXlsA nsoL/0kfD3B4Bo9kFC6bBTdJ//r5ht6i0VGT7/Ix69KCb+sNngWUHwgLZhdqtXMdyRtn C09gXioXo2ATz2SqtGpSPCl/E3S0SnhAxNQsAO1hcxjNs1E0FxfPgFCSjLObwW3HwetC 2dFUKe8NL8kzFHlC4OoR9Jr8vJ+I8TwUMnSgdtz5Lrb8WzksvmHroMdvM03PA8N8tbAt ismA== X-Gm-Message-State: APf1xPDgGoRV9prcXsyxO/kucp2Rpzn8qPaYDCqvyAw9hoKBO0owIJn8 6Tp9G3+QZ4B2/a3H1+cGMupD1Q== X-Google-Smtp-Source: AH8x227n6S7I+S6SZL3YY+x/RZwNHpOw8f1SlNj7HFZW2Ww8v5ZqzCULYjD0xG+RKJF6mCojMqVIdg== X-Received: by 10.28.183.8 with SMTP id h8mr5265538wmf.72.1518018781438; Wed, 07 Feb 2018 07:53:01 -0800 (PST) Received: from [105.150.40.12] ([105.150.40.12]) by smtp.gmail.com with ESMTPSA id v5sm2102445wra.94.2018.02.07.07.53.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 07:53:00 -0800 (PST) Mime-Version: 1.0 (1.0) From: Ard Biesheuvel X-Mailer: iPhone Mail (15C202) In-Reply-To: Date: Wed, 7 Feb 2018 15:52:59 +0000 Cc: edk2-devel-01 , Linaro UEFI Mailman List , Leif Lindholm Message-Id: <78656541-A557-41BE-A302-0CB8F9CAAA5B@linaro.org> References: To: Haojian Zhuang Subject: Re: [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: Wed, 07 Feb 2018 15:47:19 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > On 7 Feb 2018, at 15:50, 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? > > You need to set the FIFO depth to 16 iirc