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 18F25C4332F for ; Fri, 4 Nov 2022 22:49:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A294851A6; Fri, 4 Nov 2022 23:49:13 +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="NOKSqNFw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE59C85175; Fri, 4 Nov 2022 23:49:10 +0100 (CET) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 7F0F7850EB for ; Fri, 4 Nov 2022 23:49:08 +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-io1-xd2e.google.com with SMTP id 11so4964043iou.0 for ; Fri, 04 Nov 2022 15:49:08 -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=BgLMMj10D17YizqBBIV25oiKIxLvFUdOdGQpjcaNhMg=; b=NOKSqNFw+ww4EjlcWATQ2vsTCSywEwO8ggTG+bP+WrcV7UnDPO69afZ2IDsh/XFgMV y5po6mvoQPV//sb3M1w7r5f+iEgsiPl7UApKQciiEv7Ttz/OPOPcZGPmkR8seFVelUUd 4L2CKjRNsIHj5Vjl6POZpMC2RkFgYTbwPirxA= 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=BgLMMj10D17YizqBBIV25oiKIxLvFUdOdGQpjcaNhMg=; b=ZJopIAxYRNOUpEUeHHiCNlMHh0l6Wi/7PZPE4xpJw4uYU75SUJqkzL7LA/JjfAYi7K uwGyCdEp+VbJW2i/wOA2G9fcijBT6XhGQhL5jbfD/Puu/VuuolWveJUgPNQtiLv1Iomh siVIWNgkIgJctACf30IeLbq5zYQ0nVG+k4fZUFXGhrmay9sYMLi9HQ8FTnblBzt2IWSd OFQ/Hl3c2Jlh5OAUGQuKfTgEMrcRFC170OqhZ287nNObKCHyfqXmRgEP8P9NT58Kxwrt b3QS0583o/CqMHOCq6+KEXK3EYFDMXLbBWb/VSVUurewaxLj5/P2hBlUSq8qNh7d7an/ mLmA== X-Gm-Message-State: ACrzQf02aAFK5a5qNK6PzVeh0fZj308/5w56KlEdaECx0/Ep9xrcq8pd YQu1ggGJOBJRccJerQ7b2E1rBbA2sN+9yw== X-Google-Smtp-Source: AMsMyM5XGSGrYvc+oKUKD7vTcmEznObP058+2wBDi37lViDaAvyU5VNQ6w753Jb226j6S6ibBm3h2w== X-Received: by 2002:a05:6602:168d:b0:6d6:f4e:ddcf with SMTP id s13-20020a056602168d00b006d60f4eddcfmr5767923iow.177.1667602147017; Fri, 04 Nov 2022 15:49:07 -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 w24-20020a05663800d800b003734c4d01d2sm95189jao.61.2022.11.04.15.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 15:49:06 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Anatolij Gustschin , Simon Glass , Igor Opaniuk Subject: [PATCH v2 01/25] sandbox: Enable mmc command and legacy images Date: Fri, 4 Nov 2022 16:48:19 -0600 Message-Id: <20221104224844.467576-2-sjg@chromium.org> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog In-Reply-To: <20221104224844.467576-1-sjg@chromium.org> References: <20221104224844.467576-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 The mmc command is useful for testing mmc disk images in sandbox, so enable it. We also need to enable legacy images so that we can run tests which use them. Disable it for a few avb tests since MMC is not implemented there yet. Signed-off-by: Simon Glass --- (no changes since v1) configs/sandbox_defconfig | 2 ++ configs/sandbox_flattree_defconfig | 2 ++ test/py/tests/test_android/test_avb.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index f12d0a4f516..2e12df1bcb0 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -13,6 +13,7 @@ CONFIG_FIT=y CONFIG_FIT_RSASSA_PSS=y CONFIG_FIT_CIPHER=y CONFIG_FIT_VERBOSE=y +CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_BOOTSTAGE=y CONFIG_BOOTSTAGE_REPORT=y CONFIG_BOOTSTAGE_FDT=y @@ -72,6 +73,7 @@ CONFIG_CMD_IDE=y CONFIG_CMD_I2C=y CONFIG_CMD_LOADM=y CONFIG_CMD_LSBLK=y +CONFIG_CMD_MMC=y CONFIG_CMD_MUX=y CONFIG_CMD_OSD=y CONFIG_CMD_PCI=y diff --git a/configs/sandbox_flattree_defconfig b/configs/sandbox_flattree_defconfig index 01234dc183b..4055e3c9e9d 100644 --- a/configs/sandbox_flattree_defconfig +++ b/configs/sandbox_flattree_defconfig @@ -11,6 +11,7 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_FIT_VERBOSE=y +CONFIG_LEGACY_IMAGE_FORMAT=y CONFIG_BOOTSTAGE=y CONFIG_BOOTSTAGE_REPORT=y CONFIG_BOOTSTAGE_FDT=y @@ -40,6 +41,7 @@ CONFIG_CMD_DEMO=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y CONFIG_CMD_OSD=y CONFIG_CMD_PCI=y CONFIG_CMD_REMOTEPROC=y diff --git a/test/py/tests/test_android/test_avb.py b/test/py/tests/test_android/test_avb.py index a3f883136b0..bc5c5b55821 100644 --- a/test/py/tests/test_android/test_avb.py +++ b/test/py/tests/test_android/test_avb.py @@ -39,6 +39,7 @@ def test_avb_verify(u_boot_console): @pytest.mark.buildconfigspec('cmd_avb') @pytest.mark.buildconfigspec('cmd_mmc') +@pytest.mark.notbuildconfigspec('sandbox') def test_avb_mmc_uuid(u_boot_console): """Check if 'avb get_uuid' works, compare results with 'part list mmc 1' output @@ -97,6 +98,7 @@ def test_avb_is_unlocked(u_boot_console): @pytest.mark.buildconfigspec('cmd_avb') @pytest.mark.buildconfigspec('cmd_mmc') +@pytest.mark.notbuildconfigspec('sandbox') def test_avb_mmc_read(u_boot_console): """Test mmc read operation """ -- 2.38.1.431.g37b22c650d-goog