Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5840C7EE22 for ; Sun, 7 May 2023 21:19:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 28C0D846C1; Sun, 7 May 2023 23:19:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="oxW0QviI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB918846D1; Sun, 7 May 2023 23:19:29 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 50C438468E for ; Sun, 7 May 2023 23:19:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D43F161208; Sun, 7 May 2023 21:19:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25CF6C4339C; Sun, 7 May 2023 21:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683494365; bh=snb+CcF0hY65Ctq+PJ5wpuBdggrpBao5zISFDZC2LKw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=oxW0QviIcBhGwV9HkRVg1Dyn6B8uz8N1qUyioIFxv5vbpyxFO4dkYFJBBG/qvfSbU xpI2Qbdg/BRZV5B4MyHsLeLlfcni/TLrS2ZlEoY9ghKGcu/Z+Nayb1NlCqNpqd/M5x pEN0JUENAyw7KKLjAkZt09s7x15GcLG97EYJEkS0tzgPekY13xqp9gR4SNZuRIvFXr vSKjcm4u4ZsLzu1SSCf7nAjCY23B+DnwaCRCFHNJD9LG54QPVD6hVOnMRKCsvvtMe7 RFeZzAhphDQY2wCYcl2yDTBkgMUzVRbB6n4LQ+UeQmFauaauDIkDHiDPFZ2sNrpU2a wjUGeWFRDQljA== Received: by pali.im (Postfix) id 452CA7FC; Sun, 7 May 2023 23:19:22 +0200 (CEST) Date: Sun, 7 May 2023 23:19:22 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Simon Glass , Tom Rini , u-boot@lists.denx.de Subject: Re: U-Boot Bootmenu's autoboot rendering is broken Message-ID: <20230507211922.56ggv2oosvwqoiul@pali> References: <20230507210845.7mpkikeotrwme6yu@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230507210845.7mpkikeotrwme6yu@pali> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Sunday 07 May 2023 23:08:45 Pali Rohár wrote: > If you run bootmenu in U-Boot it will print following output: > > *** U-Boot Boot Menu *** > > Attached kernel > Internal eMMC > External SD card > U-Boot boot order > U-Boot consoleHit any key to stop autoboot: 30 Hit any key to stop autoboot: 29 Hit any key to stop autoboot: 28 > > It happens on both serial output and VGA video output, so it is not > related to video output driver or interpreting of ANSI sequence. > > Last entry is being overwritten by "Hit any key to stop autoboot" and > then every one second is new text appended after this last entry with > updated countdown. This is broken... I run git bisect and the result is: > > 32bab0eae51b55898d1e2804e6614d9143840581 is the first bad commit > commit 32bab0eae51b55898d1e2804e6614d9143840581 > Author: Simon Glass > Date: Fri Jan 6 08:52:26 2023 -0600 > > menu: Make use of CLI character processing > > Avoid duplicating some of the escape-sequence processing here and use the > CLI function instead. > > Signed-off-by: Simon Glass > > :040000 040000 62275c330c72e251d79fd3f867f8c3e44a6d8f32 3933deacc7661348a31e73822341b4b262bec382 M cmd > :040000 040000 49ba8a914e6bd3f0438db86d290af226a1eb1272 1cce113f49b3ecbb1acf6d56fa0bc8f279cf5794 M common > :040000 040000 021b5af8bf4e8f1226b93e63f4cd9f2e581a9659 2eb10232c77e0c4fa78677b059db3c5990c2799a M include > > Simon, could you look at this issue? It can be simple reproduced just by > calling "bootmenu" command. Not only autoboot countdown and last boot entry is broken but also keys UP and DOWN and broken on _terminal_. When I do not press any key on terminal for 3 seconds then pressing DOWN quits bootmenu. Git bisect found same above commit. Maybe added "case '\e':" in above commit into /* ^C was pressed */ branch cause it?