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 5B940C433F5 for ; Thu, 20 Jan 2022 10:28:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD89D83325; Thu, 20 Jan 2022 11:28:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id DB1FE8338C; Thu, 20 Jan 2022 11:28:45 +0100 (CET) Received: from sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) (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 6B38B832CD for ; Thu, 20 Jan 2022 11:28:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mark.kettenis@xs4all.nl Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 4acfbf60; Thu, 20 Jan 2022 11:28:41 +0100 (CET) Date: Thu, 20 Jan 2022 11:28:41 +0100 (CET) From: Mark Kettenis To: Michael Walle Cc: sjg@chromium.org, daniel.schwierzeck@gmail.com, dennis@ausil.us, ilias.apalodimas@linaro.org, jaeckel-floss@eyet-services.de, lukas.auer@aisec.fraunhofer.de, michal.simek@xilinx.com, trini@konsulko.com, u-boot@lists.denx.de, xypron.glpk@gmx.de, michael@walle.cc In-Reply-To: <20220120083544.2964521-1-michael@walle.cc> (message from Michael Walle on Thu, 20 Jan 2022 09:35:44 +0100) Subject: Re: [PATCH v3 31/31] RFC: Switch rpi over to use bootstd References: <20220120083544.2964521-1-michael@walle.cc> Message-ID: 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.2 at phobos.denx.de X-Virus-Status: Clean > From: Michael Walle > Date: Thu, 20 Jan 2022 09:35:44 +0100 > > > The bootdevs have a natural priority, based on the assumed speed of > > the device, so the board would only need to intervene (with an env var > > or a devicetree property) when that is wrong. > > Does this make sense in general? The default boot order for a > board should depend on what is available on board (or on the > carrier board) and what is pluggable. I doubt there can be a sane > default, so almost all boards will have to define its own > boot order anyway. > > So it doesn't really matter how the general list is sorted, but > sorting by the speed of the interface sounds.. strange. From a security standpoint "removable" vs. "non-removable" is what really matters. You don't really want someone to plug a usb key or SD card into your device and accidentally boot from it. Also, changing the default boot order for an already supported device is probably going to cause problems. Something to keep in mind when devices get converted to the new mechanism.