From mboxrd@z Thu Jan 1 00:00:00 1970 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 A8235C636CB for ; Sat, 28 Jan 2023 22:01:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7446385767; Sat, 28 Jan 2023 23:01:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="NLJFYsvt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F06AD85767; Sat, 28 Jan 2023 23:01:24 +0100 (CET) Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 8BD738574E for ; Sat, 28 Jan 2023 23:01:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x129.google.com with SMTP id g15so3762724ild.3 for ; Sat, 28 Jan 2023 14:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ke9cELOB4rLK7d5dlSdALmlL+ynf1ScTfxnob75CCFE=; b=NLJFYsvtGurignVOSIt+DdkDPWB9C+QFJ1QltV7PLjcn+b3xcc/ONn+m4F5WZeED/h 5T5bZGa/0o6mubrjOs/H7hLRJvVpyPKnR/KrEA0ifOn3lcSxvYvkoA8k6UbHaRBV9Hts +s038QYFNLTKH3pQtTvTARlY5oWGeCfwfe6AY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ke9cELOB4rLK7d5dlSdALmlL+ynf1ScTfxnob75CCFE=; b=T6dEQvi5hr4JdOxOOFKW0mSPKsiCq516VCSh416P6/EWqGOCsCxknR166NhYZ0btm8 iQUcdpKVo05M01rftdpEKNkW5YsiaOX1YDWSsX+fQJ55zL+TAeBFDIPdElPVVxxAcKJ5 x6DF1LsJznXM8bZHxI8crE3y1OBZ4EUVDIu+zRn+4ptML8ttDa4pucqQlZVVPP1+Ydcp COce+zi5OZma+Ju6rVAvx0wDxc0ZAfNK6y5WvV3+PrUgaLduqDB5lzqK3DlL7fJeYryu bz+nmtsT9xwhwIVM1XrmOrh8hH8S4rmG9QVC8wX3b+mUfhNMZqTqejgPq3YN+jHvOQst potQ== X-Gm-Message-State: AO0yUKUvOOjOjls04OT2SwiB5GRovRg7WOiTkC/5D4TZPMdenM4k9JhN C5ED+x+fTgDxSDYRoox+qbaLsjD4A0pre2l6 X-Google-Smtp-Source: AK7set/qGYM7DivrnO+1+GCQt4+gkycVh/JuopT04hFSITj7JApTpr4dHo0Np9W7GQBODbnVMkyaqw== X-Received: by 2002:a92:c54f:0:b0:310:af8b:aaa2 with SMTP id a15-20020a92c54f000000b00310af8baaa2mr10690946ilj.15.1674943271003; Sat, 28 Jan 2023 14:01:11 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id f15-20020a056e0212af00b0030f1be2e051sm2525521ilr.39.2023.01.28.14.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 14:01:10 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Albert Aribaud , Ilias Apalodimas , Simon Glass , Andre Przywara , Philippe Reynes Subject: [PATCH 06/13] bootstd: Add some default filesystems and commands Date: Sat, 28 Jan 2023 15:00:21 -0700 Message-Id: <20230128220028.53575-7-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230128220028.53575-1-sjg@chromium.org> References: <20230128220028.53575-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 We need to support a basic set of filesystems for booting to work in most cases. Add these in via a new option, letting the board disable them individually (for space reasons) if desired. This enables the filesystem commands as well as the actual functionality, even though bootstd is quite happy to use ext4 without the ext4 command. Further work would be needed to disintangle this and reduce code size. Add several other options as well, providing sensible defaults. We cannot enable this by default, since it expands the size of many boards quite a lot. Signed-off-by: Simon Glass --- boot/Kconfig | 27 +++++++++++++++++++++++++++ configs/tools-only_defconfig | 1 + doc/develop/bootstd.rst | 4 ++++ 3 files changed, 32 insertions(+) diff --git a/boot/Kconfig b/boot/Kconfig index 98e194fc2b2..5f491625c82 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -406,6 +406,33 @@ config VPL_BOOTSTD if BOOTSTD +config BOOTSTD_DEFAULTS + bool "Select some common defaults for standard boot" + depends on BOOTSTD + imply USE_BOOTCOMMAND + # Bring in some defaults which are generally needed. Boards can drop + # these as needed to save code space. Bootstd does not generally require + # the commands themselves to be enabled, but this is how some of the + # functionality is controlled at present + imply CMD_EXT2 + imply CMD_EXT4 + imply CMD_FAT + imply CMD_FS_GENERIC + imply CMD_PART + imply CMD_DHCP if NET + imply CMD_MII if NET + imply CMD_PING if NET + imply CMD_PXE if NET + imply USB_STORAGE + imply SUPPORT_RAW_INITRD + imply ENV_VARS_UBOOT_CONFIG + imply EFI_PARTITION + imply ISO_PARTITION + help + These are not required but are commonly needed to support a good + selection of booting methods. Enable this to improve the capability + of U-Boot to boot various images. + config BOOTSTD_BOOTCOMMAND bool "Use bootstd to boot" default y if !DISTRO_DEFAULTS diff --git a/configs/tools-only_defconfig b/configs/tools-only_defconfig index 23e1f0e9dba..88a94ddd6b0 100644 --- a/configs/tools-only_defconfig +++ b/configs/tools-only_defconfig @@ -12,6 +12,7 @@ CONFIG_FIT_SIGNATURE=y # CONFIG_BOOTMETH_VBE is not set CONFIG_USE_BOOTCOMMAND=y CONFIG_BOOTCOMMAND="run distro_bootcmd" +# CONFIG_AVB_VERIFY is not set # CONFIG_CMD_BOOTD is not set # CONFIG_CMD_BOOTM is not set # CONFIG_CMD_ELF is not set diff --git a/doc/develop/bootstd.rst b/doc/develop/bootstd.rst index 281aabf74b2..dabe987c0dc 100644 --- a/doc/develop/bootstd.rst +++ b/doc/develop/bootstd.rst @@ -396,6 +396,10 @@ To enable all feature sof standard boot, use `CONFIG_BOOTSTD_FULL`. This includes the full set of commands, more error messages when things go wrong and bootmeth ordering with the bootmeths environment variable. +You should probably also enable `CONFIG_BOOTSTD_DEFAULTS`, which provides +several filesystem and network features (if `CONFIG_NET` is enabled) so that +a good selection of boot options is available. + Available bootmeth drivers -------------------------- -- 2.39.1.456.gfc5497dd1b-goog