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 DC55BC4332F for ; Mon, 17 Oct 2022 21:11:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8168C8456E; Mon, 17 Oct 2022 23:11:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.net header.i=@gmx.net header.b="LdgQIehN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BF79E84EAF; Mon, 17 Oct 2022 23:11:37 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F290184567 for ; Mon, 17 Oct 2022 23:11:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666041063; bh=l3CieiHLTikBpn4cB26kc9J2MghHHpsPhIVoKrQLEgY=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=LdgQIehNrYd6uKZ3u8Bay4w/PxA84vYcKE6JOsoUQ5ydjXnIPoL6ZVmxnpQSR+VFW EVgWQYzvr40oHYJaaWzqG7/YM/X7PpL8uRN9s9A5jyRb+8I63pPa+M5jG6HXHrfcbU e9MuQ2w6nUb2qQpmb+XPOCAg3MQ2EB5vGuXqaXp8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.94] ([84.118.157.2]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMGN2-1oSJkG38Pm-00JFmA; Mon, 17 Oct 2022 23:11:02 +0200 Message-ID: <42eea78f-dea8-c391-26f3-1cc32698a330@gmx.de> Date: Mon, 17 Oct 2022 23:10:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH 00/24] bootstd: Add a boot menu To: Simon Glass Cc: Anatolij Gustschin , Tom Rini , Andre Przywara , Andrew Davis , Andrew Scull , Artem Lapkin , Etienne Carriere , Igor Opaniuk , Ilias Apalodimas , Jaehoon Chung , Jan Kiszka , John Keeping , =?UTF-8?Q?Marek_Beh=c3=ban?= , Masahisa Kojima , Matthias Brugger , Ovidiu Panait , Patrick Delaunay , Paul Doelle , Philippe Reynes , Ramon Fried , Sean Anderson , Stefan Roese , Thomas Huth , u-boot@lists.denx.de References: <20221017203000.2207887-1-sjg@chromium.org> Content-Language: en-US From: Heinrich Schuchardt In-Reply-To: <20221017203000.2207887-1-sjg@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:/DxHPrm12/XRRnbJ7SwSlivdddn7tzx5P2DEGmurSsFnknmihl0 PHMcrUsDv5jRp+8/tfyvMTJwzRRRH+NHYuprbikH1S1D/VRScH/gMzVyJWlNbXw1EvUK/ln W21eq+FLmu1THyXDQx/5y57mAGgNtlTTC4PE226NjtWf2lO6Zq4anRfwXF9aD9OtBX3UJZY wYX5z9IbOkFYVUNFcfMrg== X-UI-Out-Filterresults: notjunk:1;V03:K0:tZxLyzBMLro=:WAectz4dQH5dA0b4eTCUPv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LrvAHUd2S8YKoojxXvdbA3PH51/GQ QhWjs4Ai5OXmSTEiUr/2p++9F562aA+bSsVRtBC6kKWVjy0Yql8Iv7LaEt1TYA7fAn25BDDmy si3Y0Q6iTRzhZlsdjQWpjukgrEX2n8GG1BDNoOh184f3K+dtHbpnpbpzXHvWFMSeG7YNceICi MHzBT5YsYDi590Qz0x8gO7tBGVIrwN6EtPhRp0+xiQHpncHNQghqPLOZfdrRIW9JZzxYpihRN B5RbjG3MBW+rSn4z3AjPA3nvhkDXfGoFld8IPELuFzVZtWtUWflOj+1BgTDJADc4zsmQzdPj3 x7DyZ534CU9gLEqQcjumDBfNyPacWuVW+wSaw1DSEYXMTfPe0r3HnDzf1wrmC7C92Yc3fWO7q 6+tLOOYjPCPyifHn0oH0bPTH9WLm9g16kD2TebMebc0jhhbvbgSfsBf81eq96MGYLwMTROoNW GL0DISOCqhofTHdxOy8mFB2JPSr8tQDbv6+OVFqlHfCwl 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.6 at phobos.denx.de X-Virus-Status: Clean On 10/17/22 22:29, Simon Glass wrote: > So far standard boot lacks a boot menu, although it is possible to creat= e > a rudimentary one using the existing 'bootmenu' command. > > Even then, this text-based menu offer only basic functionality and does > not take full advantage of the displays which are common on many devices= . > > This series provides a 'bootflow menu' command which allows the user to > select from the available bootflows. An attempt is made to show the name > of the available operating systems, by reading more information into the > bootflow. A logo can be read also, where supported, so that this can be > presented to the user when an option is highlighted. > > Full use is made of TrueType fonts, if enabled. For cases where only a > serial console is available, it falls back to a simple text-based menu. > > All of this is implementing using a new 'expo' construct, a collection o= f > scenes (like menu screens) which can be navigated by the user to view > information and select option. This is fairly general and should be able > to cope with a wider array of use cases, with less hacking of the menu > code, such as is currently needed for CMD_BOOTEFI_BOOTMGR. > > Of course it would be possible to enhance the existing menu rather than > creating a new setup. Instead it seems better to make the existing menu > use expo, if code space permits. It avoids the event-loop problem and > should be more extensible, given its loosely coupled components and use = of > IDs instead of pointers. Further motivation is provided in the > documentation. > > For now the CLI keypress-decoding code is split out to be used by the ne= w > menu. The key codes defined by menu.h are reused also. > > This is of course just a starting point. Some ideas for future work are > included in the documentation. Hello Simon, Linaro's implementation of a boot menu for UEFI booting showed that the current basis of bootmenu is inadequate for properly designing a GUI like user interface. With your patch set you try to overcome this. Your design document in patch 24 identifies a hierarchy of objects expo - scene - design element but otherwise remains rather sketchy to me. Before investing into code we should a more holistic design perspective. First thing we need to define is our requirements, e.g. ** Which input devices do we want to support in future ** - keyboard - mouse ** What type of GUI do we want to support ** - text terminal - graphical output ** Which design elements do we need ** - lists - trees - grids - menus - labels - buttons - drop down lists - combo boxes - bitmaps - screens (you call them scene) - transactions (you call them expo) ** How do we want to structure our GUI ** - Good practice is to clearly separate model, view, and controller. ** Which constraints do we have to observe? ** - How much is the code base allowed to grow? - Who will be the long term sponsor and maintainer? After having this rough cut overview we may start with a draft implementation and detail our design document. How do you plan to organize the design work? Best regards Heinrich