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 ECF5CC4332F for ; Thu, 13 Oct 2022 12:31:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CF5FB84F4D; Thu, 13 Oct 2022 14:30:48 +0200 (CEST) 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="OgahHv1N"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 35A1884F48; Thu, 13 Oct 2022 14:30:26 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 AB6FC84F36 for ; Thu, 13 Oct 2022 14:30:15 +0200 (CEST) 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-io1-xd2f.google.com with SMTP id b79so1012425iof.5 for ; Thu, 13 Oct 2022 05:30:15 -0700 (PDT) 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=tG7dc6yS5Y+C2p7wiRK3nBlEy/ZvnXVt1MVfDbcvang=; b=OgahHv1NyTZg0MeN7+eB2GzFlPDyC1lYfCKyzagQQX9SHIU6v8BDCktfBlAWUxO+sF XiNhZXkZYvhGPLNksHmWF8eRoRyfAUgUp49tcTu600l/LfNMO6a0Y/6NpNgJJYPVjZZJ 9tDNgWik5I5ecTmUZWnnrriRdCJVTspPG0wBE= 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=tG7dc6yS5Y+C2p7wiRK3nBlEy/ZvnXVt1MVfDbcvang=; b=vdOmhLssemAqs/bmm6URBiupO5DQu+SwOEmga0XDXrlFU3EAJ3ozFTlgIMMbJ60rvx 0Tp9TMgI3H2OEaiycP4iMY0RU0++dORL5L3qSnuLTMXfq5pUco6QFr4lQzmOMvL9uVo2 RiuGv4Ra3F53lIWYjdjsNG37RYfa+/5AJ6zlYPoDenx/TOdpYlNsE/eyHV4ommwB7UAa 5E4FC18vKnlZ7ddlFZkm5lK0GMwrTvUrLrcyslTZUjkdUyEPME+YNKVK2f4ylu/pTuwn rbhQRnwFOVXupaztqgOPLYov/iNW6fp8yX6qjqa5CkZ+7lBBVSCXZst3Ai5beYSaHkQ3 1oCA== X-Gm-Message-State: ACrzQf37HHS5OWwFet7rk3IFp99FiYTS0OpXV7GzThB5Yh11rX1FVz0k 4gGxfuXSUaNZPjWvMgkQGxFeiEUW5yUn/A== X-Google-Smtp-Source: AMsMyM5l2DdmqcoejiIcQUOibZqFz/kriAQkJH7qGLAv5Q3TKoBvHbmLD31wP9ZBZC30XraGy1oFkQ== X-Received: by 2002:a02:ac99:0:b0:363:6e5c:4618 with SMTP id x25-20020a02ac99000000b003636e5c4618mr18031821jan.247.1665664213776; Thu, 13 Oct 2022 05:30:13 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id a9-20020a027a09000000b003635ab4a7b7sm7321626jac.3.2022.10.13.05.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 05:30:13 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Alper Nebi Yasak , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Nathan Barrett-Morrison , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Ricardo Salveti , Stefan Roese Subject: [PATCH v2 07/45] spl: Add a separate silence option for SPL Date: Thu, 13 Oct 2022 06:28:49 -0600 Message-Id: <20221013122927.636867-8-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221013122927.636867-1-sjg@chromium.org> References: <20221013122927.636867-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 Add an option to allow silent console to be controlled separately in SPL, so that boot progress can be shown. Disable it by default for sandbox since it is useful to see what is going on there. Signed-off-by: Simon Glass --- Changes in v2: - Refactor based on a change to the earlier patch in spl.c common/Kconfig | 22 ++++++++++++++++++++++ common/spl/spl.c | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index 6608a4f0fc1..5926645b3c3 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -113,6 +113,28 @@ config SILENT_CONSOLE GD_FLG_SILENT flag is set. Changing the environment variable later will update the flag. +config SPL_SILENT_CONSOLE + bool "Use a silent console in SPL" + default y if SILENT_CONSOLE && !SANDBOX + help + This selects a silent console in SPL. When enabled it drops some + output messages. The GD_FLG_SILENT flag is not used in SPL so there + is no run-time control of console messages in SPL. + + Future work may allow the SPL console to be silenced completely using + this option. + +config TPL_SILENT_CONSOLE + bool "Use a silent console in TPL" + default y if SILENT_CONSOLE && !SANDBOX + help + This selects a silent console in TPL. When enabled it drops some + output messages. The GD_FLG_SILENT flag is not used in TPL so there + is no run-time control of console messages in TPL. + + Future work may allow the TPL console to be silenced completely using + this option. + config SILENT_U_BOOT_ONLY bool "Only silence the U-Boot console" depends on SILENT_CONSOLE diff --git a/common/spl/spl.c b/common/spl/spl.c index 91b4adc4004..4635e77e979 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -703,7 +703,7 @@ static int boot_from_devices(struct spl_image_info *spl_image, if (CONFIG_IS_ENABLED(SHOW_ERRORS)) ret = -ENXIO; loader = spl_ll_find_loader(bootdev); - if (!IS_ENABLED(CONFIG_SILENT_CONSOLE)) { + if (!CONFIG_IS_ENABLED(SILENT_CONSOLE)) { if (loader) printf("Trying to boot from %s\n", spl_loader_name(loader)); -- 2.38.0.rc1.362.ged0d419d3c-goog