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 BA5D4EB64DA for ; Sat, 24 Jun 2023 20:20:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5EC88865FD; Sat, 24 Jun 2023 22:20:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="lk+h5oCq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C3B4A86442; Sat, 24 Jun 2023 22:20:33 +0200 (CEST) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D37B1865C4 for ; Sat, 24 Jun 2023 22:20:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-76243a787a7so198683485a.2 for ; Sat, 24 Jun 2023 13:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1687638018; x=1690230018; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IfmigYWY8vm6Dv+z82MKHQqVaskWSNebSqZI0R5ZTsg=; b=lk+h5oCqgFKIT5JclIqWSOq10x8lvdxceKWiTc4Hk2e6O5efgcUpObitc7Tkp4F4vR nzSCrCgDFy6PkctA3+RaujmwnNcfPHQ/Jc7yWhkvJpxpHXTvcrW+4zVtuzgcvvk+2oIh 5ZTtliV017nAP/EMVLN2k/aRgcDnZWj/iQgzk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687638018; x=1690230018; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IfmigYWY8vm6Dv+z82MKHQqVaskWSNebSqZI0R5ZTsg=; b=jxVMMlG26em/k9rkiXiih4vhs2Mf/kRGyT+l3iYXng1JPVjdO1kHCsuAnr3GqBN6Oz Fif0cz9u9RThj6wC/sXcUavrLE433qTbmGs8olclr38yJgaB/vJ8eiPSIZlP0rG9GnJs MlAnrY2lznltx8luOER9vu45/SOA+75UxwkQl8nYlbTb+Z7/VsRiRHvFRuzOK5yyXwRb fhVW1usgBlOwdzmlx00dieKgZ0pYG6jws1Tpv2R3+eSr1gkgitxWS8VOOoOtROQZJHtU esBgvtCCIKgwT5hX3Pu5DkYvJLYaL8041axxcVV3/zSvMnd7gxS6GHQRK3fy+ey31KoP JoQQ== X-Gm-Message-State: AC+VfDzvgpx/sIkxmN9efPNcmA+snx7GAW9TYSAXWCdn31ORh9z8m+Gj abSgccW4A25xogsakM86v9I4XwcydE2OnVwX/EwWFg== X-Google-Smtp-Source: ACHHUZ4bQCaIDAp7mN030+a5m3sQQI3hc9UTWa2lH4hjgke390WckVKYduisDwEAW27eQGQQLLNrZQ== X-Received: by 2002:a25:a2c8:0:b0:c10:627b:3017 with SMTP id c8-20020a25a2c8000000b00c10627b3017mr2900900ybn.42.1687626313919; Sat, 24 Jun 2023 10:05:13 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-da61-6355-3777-b00c.res6.spectrum.com. [2603:6081:7b00:6400:da61:6355:3777:b00c]) by smtp.gmail.com with ESMTPSA id a126-20020a254d84000000b00be45a29d440sm409534ybb.12.2023.06.24.10.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jun 2023 10:05:13 -0700 (PDT) Date: Sat, 24 Jun 2023 13:05:11 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Heinrich Schuchardt , Simon Glass , U-Boot Mailing List , Mark Kettenis , Frank Wunderlich , Ilias Apalodimas , Masahisa Kojima , Stefan Roese Subject: Re: [PATCH] menu: Re-enable the ANSI codes Message-ID: <20230624170511.GY3931582@bill-the-cat> References: <20230612201434.861700-1-sjg@chromium.org> <20230612202247.cqo4wbrlc7ckbdpj@pali> <20230612213318.4hum2bn3bwoe4n3v@pali> <20230615165621.humixhmo4pgxzisi@pali> <20230624090113.oim7rnn57xdxir64@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MJnbEE76WozpV3My" Content-Disposition: inline In-Reply-To: <20230624090113.oim7rnn57xdxir64@pali> X-Clacks-Overhead: GNU Terry Pratchett 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 --MJnbEE76WozpV3My Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 24, 2023 at 11:01:13AM +0200, Pali Roh=E1r wrote: > On Saturday 17 June 2023 22:28:24 Heinrich Schuchardt wrote: > > On 6/17/23 12:48, Simon Glass wrote: > > > Hi Pali, > > >=20 > > > On Thu, 15 Jun 2023 at 17:56, Pali Roh=E1r wrote: > > > >=20 > > > > On Thursday 15 June 2023 13:34:09 Simon Glass wrote: > > > > > Hi Pali, > > > > >=20 > > > > > On Mon, 12 Jun 2023 at 22:33, Pali Roh=E1r wrot= e: > > > > > >=20 > > > > > > On Monday 12 June 2023 22:17:48 Simon Glass wrote: > > > > > > > Hi Pali, > > > > > > >=20 > > > > > > > On Mon, 12 Jun 2023 at 21:22, Pali Roh=E1r = wrote: > > > > > > > >=20 > > > > > > > > On Monday 12 June 2023 21:14:32 Simon Glass wrote: > > > > > > > > > The intent here was to allow ANSI codes to be disabled, s= ince it was > > > > > > > > > proving impoosible to test operation of the menu code whe= n it kept moving > > > > > > > > > the cursor. Unfortunately this ended up in the patch. > > > > > > > > >=20 > > > > > > > > > Correct this by enabling ANSI again. > > > > > > > > >=20 > > > > > > > > > Signed-off-by: Simon Glass > > > > > > > > > Reported-by: Pali Roh=E1r > > > > > > > > > Reported-by: Mark Kettenis > > > > > > > > > Reported-by: Frank Wunderlich > > > > > > > > > Fixes: 32bab0eae51b ("menu: Make use of CLI character pro= cessing") > > > > > > > > > --- > > > > > > > > >=20 > > > > > > > > > common/menu.c | 2 +- > > > > > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > >=20 > > > > > > > > > diff --git a/common/menu.c b/common/menu.c > > > > > > > > > index 94514177e4e9..b55cf7b99967 100644 > > > > > > > > > --- a/common/menu.c > > > > > > > > > +++ b/common/menu.c > > > > > > > > > @@ -15,7 +15,7 @@ > > > > > > > > >=20 > > > > > > > > > #include "menu.h" > > > > > > > > >=20 > > > > > > > > > -#define ansi 0 > > > > > > > > > +#define ansi 1 > > > > > > > > >=20 > > > > > > > > > /* > > > > > > > > > * Internally, each item in a menu is represented by a = struct menu_item. > > > > > > > > > -- > > > > > > > > > 2.41.0.162.gfafddb0af9-goog > > > > > > > > >=20 > > > > > > > >=20 > > > > > > > > Hello, I have tested this change but bootmenu still does no= t work. There > > > > > > > > is still same issue which I reported month ago. When I pres= s DOWN key > > > > > > > > then bootmenu immediately quit instead of moving into the n= ext entry. > > > > > > >=20 > > > > > > > Thanks for testing this. > > > > > > >=20 > > > > > > > Is there a way for me to test this with sandbox? Or does your= Nokia > > > > > > > test check it? > > > > > >=20 > > > > > > I guess that bootmenu command could work in sandbox. But I have= not > > > > > > tried it. > > > > > >=20 > > > > > > Nokia CI test does not try any terminal, keyboard or VGA intera= ction, so > > > > > > broken rendering or broken keyboard input is not caught by CI. > > > > > >=20 > > > > > > But it is possible to test it manually. See U-Boot documentatio= n how to > > > > > > run Nokia u-boot image in qemu. Bootmenu is automatically start= ed. > > > > > > https://u-boot.readthedocs.io/en/latest/board/nokia/rx51.html#r= un-in-qemu > > > > >=20 > > > > > I tried to follow this but got stuck here: > > > > >=20 > > > > > ./configure --enable-system --target-list=3Darm-softmmu --disable= -werror > > > > >=20 > > > > > ERROR: Cannot use 'python', Python 2.4 or later is required. > > > > > Note that Python 3 or later is not yet supported. > > > > > Use --python=3D/path/to/python to specify a supported Pyt= hon. > > > > >=20 > > > > > Python 2 has been deprecated for years and I think it was removed= recently. >=20 > So install all required dependencies? It is really stupid argument to > say that _I have removed X from my PC_ and then _I cannot compile Y > because it depends on X_. We're not talking about adding some random but modern dependency. We're talking about adding a language that every person responsible for it says to not use and migrate away from. This is Heinrich's point. > > Our Docker image uses Ubuntu 22.04 (Jammy). Ubuntu 22.10 (Kinetic) was > > the last Ubuntu release providing Python 2.7. So when upgrading our > > Docker image next year we will have to quit emulating that 14 year old > > device. >=20 > Why to quit? Why you cannot compile and install required dependency? We'll have to quit because Python 2.7 won't be available from the distribution. And no, we don't want to add building Python 2.7 to the list of things our container does. I don't even know that Python 2.7 will compile with the gcc and related that will ship in the host. And that's without repeating what I said above about Python 2.7 being a dead and do not use language. > Also was not the whole purpose of using containers to make easier of > using different languages in different versions and also different > software? No, the point of containers here is to give everyone a common and reproducible base environment. We don't want to have to have a special container just for this one test case, which is what it's looking like would end up being a solution. > Also what is the problem with 14 year old device and software? It is > _working_. Or are you saying that you do not want to support _working_ > device just because it is _old_? What is the logic here? It only works so long as everything else is still available that it requires. Which is starting to not be the case in the near future. It would be better for everyone is this platform was part of modern QEMU instead. > > > > Ach :-( Is not there some configure option to disable python? > > >=20 > > > I don't know, but the qemu you are using seems to be 10 years old? > >=20 > > The Nokia N900 support never existed in upstream QEMU. Is is only in a > > Linaro repository that has not been update since 2015. (No clue why our > > CI uses the 2013 version and not the 2015 one.) >=20 > We are using the latest version which contains working n900 emulator. It > is written also in the u-boot documentation. Is it on anyones TODO list to move this emulation to a modern release? > > I anybody cares about N900 being used in U-Boot's CI he should rework > > the N900 patch from the Linaro QEMU archive and get it integrated into > > upstream QEMU. >=20 > Why? Emulator was already written and it is _working_. Why to invest new > time for writing a new emulator? >=20 > I think you completely missed the point here. U-Boot is being test in > this emulator to ensure that changes in u-boot does not break something. > In the past it already caught issues which were not uncovered by any > people review and neither by any other CI tests. Also for things which > are not n900-related. I think you're missing the point which is that it will very soon be much harder to support this emulator in CI due to it not being actively maintained. > > > > In U-Boot CI is qemu compiling without issues (but variant without = GUI). > > >=20 > > > You mean that it still uses python 2? But for how much longer? > > >=20 > > > I don't think it is reasonable to base a test on an old version of qe= mu. >=20 > Why not? U-Boot should work on any compatible hardware, so also on older > qemu version. >=20 > Released hardware is _not_ being changed, so any software testing should > use also older emulators, which are bound to the release date of > hardware to better match hardware testing. It'll become a problem when we cannot build the emulator anymore. --=20 Tom --MJnbEE76WozpV3My Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSXIkcACgkQFHw5/5Y0 tyy14gv/Q/Nw9ccVgQV7JKShfNtq/5P2bPQLY+bloIjwcTOWQclQRD1DWgrag0XB VXEasYzuSaC5u7zJ+8fi43paR9iGKoHcXDdWpCzPMKdavkCqsi06+VMSW/ACPXaz KMsGHaaxdDNf3CNp0R0vcNK1o8KBfQNDp6Or8uzuL3I+/la6Z3VGf/11dqawVAfh VCUz+X6QQ+55mbxnBpu2D409b5IHLP1mW0Zq1f4TbKshmpat4kc3B25osEA/+qxF 5jHpK1eW6dQezvLIct1kIE/iK50AyUoX4s4C4FUS4lyUJ0wOc+BOGrW6LXFjxudf IBMKsmGeiY12gF/WKmJqR9YuMd4mZjh1GR+WWx8L8rOhyDUl+yj3a2ZkEEDrlPp/ ZMn4atAJ0HURRLxeibpO04o2jxw9CZMIVYzIsWKml8WAHKVxMIpL5Xz9vXYT/dLV ZoASUcvhNNG17ti2zYu3t7t2oijnhdOoivQ9wUc6n56y9ule8vS0eSTzeDPBbF0P DdGxQFKp =FgIR -----END PGP SIGNATURE----- --MJnbEE76WozpV3My--