From patchwork Mon Aug 26 19:11:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1976991 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=aa+N/aOy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wt0jP5x9vz1yXd for ; Tue, 27 Aug 2024 05:14:33 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D7AD988C1C; Mon, 26 Aug 2024 21:12:19 +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="aa+N/aOy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 138DE88B59; Mon, 26 Aug 2024 21:12:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 28BDA88C37 for ; Mon, 26 Aug 2024 21:12: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-il1-x12f.google.com with SMTP id e9e14a558f8ab-39d2256ee11so18433775ab.1 for ; Mon, 26 Aug 2024 12:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724699533; x=1725304333; darn=lists.denx.de; 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=arHsLf0mL/Bmrmxsn27G4ocfaU+5B4v+aZ2dBfQVb8M=; b=aa+N/aOyVQaje67KB09v9LjpPZAu4BsrZSDOoTt3MvM+L6sV1Xim1RNuAQQQlO0A++ ahV46RIveZ9imQzf7iwGGauDf8t3oSgjADd06I6R0FTEGsHbD/wMWq7ISldVmmKt7bfQ KC3RRgnVPidAuPUEIXu543UyqVuXaKKytR5WI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724699533; x=1725304333; 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=arHsLf0mL/Bmrmxsn27G4ocfaU+5B4v+aZ2dBfQVb8M=; b=iKkErO1J0cdZtbYIiIMYQexb4oIkbxJDPY8aB/RnPHgPioK/fhXPRoD9GdiqBBLyts N8DQ3podgoKxZY89+hVfCACMpCDTYQXGM0MVZTJYPqzKF8yv0Kix0A4gw3rRlHsJdMSO RDkLE65SVsJv2boKkvbIauyins+GGYZfikqUCj3IuZDCvoBeGtJWW08Lut+srpmq3MRz K4zodt5CuvcQM2LGwIw6/NJG8bstUpvK7XtLKOnPP7A3AkXUd0GT5Ia9LfnEJjXZ6g69 2wqHOt1WuQUhTRaztbqY5F5MAK4BCZEaczbEkcNhHZLjxQGYHUHdpHJBLB0QIOpe7StQ dm+A== X-Gm-Message-State: AOJu0Yxrh7RoUsGJB4dbXRCyGOIbHZiXlHVKQypfLlEgu5naJERRevUE ICSnzQkvbisEpzbVKUlGHsRd+jETTFzA5eKe3btwgSfS1jgzAxeyUNxiBCMpl8cVmDD1xO0xXXw = X-Google-Smtp-Source: AGHT+IEoEGNjXfpktlVE4a9qA9XCFI+ehCSEjoxebJCT6pKspbIWiW/Z7NKyNmgvB/d7meaAP2Mo9w== X-Received: by 2002:a05:6e02:1488:b0:398:16d1:6127 with SMTP id e9e14a558f8ab-39e3c9c0727mr126420845ab.21.1724699533516; Mon, 26 Aug 2024 12:12:13 -0700 (PDT) Received: from chromium.org ([139.60.174.4]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-39d73e7c102sm34412575ab.37.2024.08.26.12.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 12:12:13 -0700 (PDT) From: Simon Glass To: u-boot@lists.denx.de Cc: Lukasz Majewski , Simon Glass , Alper Nebi Yasak , Brandon Maier , Marek Vasut , Neha Malcom Francis , Sughosh Ganu , Tom Rini Subject: [PATCH 15/15] binman: Make a start on an iMX8 test Date: Mon, 26 Aug 2024 13:11:43 -0600 Message-Id: <20240826191143.426387-16-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826191143.426387-1-sjg@chromium.org> References: <20240826191143.426387-1-sjg@chromium.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean This patch is for Marek, to provide a starting point. To try it, use 'binman test -T' and see the missing coverage. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- tools/binman/etype/nxp_imx8mimage.py | 3 ++- tools/binman/ftest.py | 4 ++++ tools/binman/test/339_nxp_imx8.dts | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tools/binman/test/339_nxp_imx8.dts diff --git a/tools/binman/etype/nxp_imx8mimage.py b/tools/binman/etype/nxp_imx8mimage.py index 3585120b79b..8ad177b3b65 100644 --- a/tools/binman/etype/nxp_imx8mimage.py +++ b/tools/binman/etype/nxp_imx8mimage.py @@ -27,7 +27,8 @@ class Entry_nxp_imx8mimage(Entry_mkimage): def __init__(self, section, etype, node): super().__init__(section, etype, node) - self.required_props = ['nxp,boot-from', 'nxp,rom-version', 'nxp,loader-address'] + self.required_props = ['nxp,boot-from', 'nxp,rom-version', + 'nxp,loader-address'] def ReadNode(self): super().ReadNode() diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 6317e72e649..225b5639b58 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -7800,6 +7800,10 @@ fdt fdtmap Extract the devicetree blob from the fdtmap self.assertIn('Symbol-writing: no value for /binman/section/u-boot', out) + def testNxpImx8Image(self): + """Test that binman can produce an iMX8 image""" + self._DoTestFile('339_nxp_imx8.dts') + if __name__ == "__main__": unittest.main() diff --git a/tools/binman/test/339_nxp_imx8.dts b/tools/binman/test/339_nxp_imx8.dts new file mode 100644 index 00000000000..cb512ae9aa2 --- /dev/null +++ b/tools/binman/test/339_nxp_imx8.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + nxp-imx8mimage { + args; /* TODO: Needed by mkimage etype superclass */ + nxp,boot-from = "sd"; + nxp,rom-version = <1>; + nxp,loader-address = <0x10>; + }; + }; +};