From patchwork Mon Aug 5 21:25:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1969233 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=UtIp1pj8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wd8cL0DgFz1yZl for ; Tue, 6 Aug 2024 07:25:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1BE1C88901; Mon, 5 Aug 2024 23:25:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UtIp1pj8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 820C288747; Mon, 5 Aug 2024 23:25:22 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 A09EE8862E for ; Mon, 5 Aug 2024 23:25:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bisson.gary@gmail.com Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-368440b073bso116998f8f.0 for ; Mon, 05 Aug 2024 14:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722893120; x=1723497920; 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=i65ruWJskLpdMsZG1FavZTKlP+nXnavrF52ov0mb0RM=; b=UtIp1pj8hWH8nQipZnyR67ds74M0owI/tScUYxk9F/F4vQKaj2Jm2P6zbZMWRHPgOJ r8YjnKgCfa+KHO31o1/LSBvcweKxSFgowAG2N9WTWru8m4y3Bs9gntbucsJ8XHX/c3nb t6zopnhBknzerF1wosr6EV9krWHYAwpbWx1V9q/I+VmMuVCDk5vM8VMC2g+WeMjn6Wkv LHuonQX6iyx1RtAWlyLU5PF61vJjXptuz+QzakOiIfBkPbCg53a+Zd0D4hMiRfbB9gd5 JSVawLNBSjaHbdgEx09ltZItsiT0kfQ0jBZgEVVPFTK6aszSLC3qBoSn4ZfX1nKABg2I 3s4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722893120; x=1723497920; 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=i65ruWJskLpdMsZG1FavZTKlP+nXnavrF52ov0mb0RM=; b=hNYV5Iuv4rW8PndJnAzJjkrPSz9H52ufATzxiASJXXPfH2igHOaxbvAZ5EFfsqbHmv sb3AYyz+IiImjCGyvnapvLONfIb5ch76Lug5mzX4Ow44crnWhN/NG7r6SApQLqHQ0ZTS LENn6eU8SKKsKiqMt2Dugvo3T+nFoO0MQWSOywyYpNTbXwEg0m1j4sFXNh+T9gi/vzoL +d9bliLKqHiKckmLqKrRdto6cxsGhqhCnMzC/a5NXbfB7LhPTU5s/wJISRCN806zyjEb bmNpjNtsrJ/0Jsi+zYftkSI+dN1QAyAad57Q9dMhGCebcsMz3X3wPqt9A6N0PcniETFN ygyA== X-Gm-Message-State: AOJu0YzAWND69IYhZIhmMEtwNAZue9lTqCYzmR7jWU+p9FTeJh3KSqTU CKWJAD8TZFZ9i9En9+wtFkXyGfMiqww+g3ia6upLfIkBmkgJDKV2ud5qNA== X-Google-Smtp-Source: AGHT+IE4vC1TO/qCadnBxTK9n0G/HXfX1/fCRUnDwUiGFlTNoWdyRXBkSHoevKxa88TweQ1omaSoTw== X-Received: by 2002:adf:e3c1:0:b0:367:89ae:c204 with SMTP id ffacd0b85a97d-36bb35aa98bmr10382659f8f.12.1722893119783; Mon, 05 Aug 2024 14:25:19 -0700 (PDT) Received: from p1g2.lan ([2001:861:3201:3d10:ab7b:e9dd:27f4:647d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbcf0c33bsm11018351f8f.22.2024.08.05.14.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 14:25:19 -0700 (PDT) From: Gary Bisson To: u-boot@lists.denx.de Cc: trini@konsulko.com, festevam@gmail.com, peng.fan@nxp.com, uboot-imx@nxp.com, Gary Bisson Subject: [PATCH v2 1/5] tools: imx8image: fix soc variable for ULP Date: Mon, 5 Aug 2024 23:25:07 +0200 Message-ID: <20240805212511.653667-2-bisson.gary@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240805212511.653667-1-bisson.gary@gmail.com> References: <20240805124326.544310-1-bisson.gary@gmail.com> <20240805212511.653667-1-bisson.gary@gmail.com> 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 Currently the ULP token sets the soc as IMX9, making it impossible to differentiate the two families of processors. However, since the 8ULP requires specific binaries like upower which do not exist in 93, they need to be separated. Fixes: 6ec65c8558f (tools: image: support i.MX93) Signed-off-by: Gary Bisson Reviewed-by: Peng Fan --- tools/imx8image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index 76d0cd62dcc..53ab16637ba 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -119,7 +119,7 @@ static void parse_cfg_cmd(image_t *param_stack, int32_t cmd, char *token, } else if (!strncmp(token, "IMX8QM", 6)) { soc = QM; } else if (!strncmp(token, "ULP", 3)) { - soc = IMX9; + soc = ULP; } else if (!strncmp(token, "IMX9", 4)) { soc = IMX9; } else { From patchwork Mon Aug 5 21:25:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1969234 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gxYo1r6c; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wd8cT60Fyz1yZl for ; Tue, 6 Aug 2024 07:25:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FB7088906; Mon, 5 Aug 2024 23:25:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gxYo1r6c"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 661CD8885D; Mon, 5 Aug 2024 23:25:23 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 3FB388867B for ; Mon, 5 Aug 2024 23:25:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bisson.gary@gmail.com Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-367ab76d5e1so4754941f8f.3 for ; Mon, 05 Aug 2024 14:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722893121; x=1723497921; 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=fVqpJc/h+a9l35m/Phc858J9o2hhvtznd2pMSyT8Ynk=; b=gxYo1r6c6hpRrmtS2z6KRYl28++Fbn5Gs84pJOveXQyxvor7/DoXewd8ZacebTEfeh sWwf9ukeqK0izdcg5oAoeVoy1x50p5C51W2AZUUe+p+z0E/3ZAA5N2038Jmyq7XxEO2T 4PE8Ep72tf90SWLUUcF1chKImNAuv7mo6rRorUojD0JiuRcGO5DkahM6tbPotoWyeyc8 lWJEDUd0aI19khQMtlQDM15S5fUl88J83SOClwKucmLnw00q4qfwbR0AWcYBB0oyi2VR HW2pIqduMzde1l+gwXuuA9GFtAwDMgWW5bbzsCINOP5k6INXRALr8tYepg84oC66gRA1 begA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722893121; x=1723497921; 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=fVqpJc/h+a9l35m/Phc858J9o2hhvtznd2pMSyT8Ynk=; b=BxkVRoCXlRTZ47gmLOSVk/Dtbqc4CInwuOWWq2MYRQ0BKIRpsIm1WkO44Qp0y6vnDM czWTSKyUijtaX1I8WyudAeEMwucvCEm03DdIST1PC8CoXMqqeU7bHNQTtxaJ/rQyX2Ck OtTZQ/yxVutBENUe4NU037V3nzql6DXdZN6wDuxGl1alv/q6RqMI2MQgA9FS2N4P5Nft nAyVmvOorwrRhi37HmgSic+9nQC8l4U+M6MfL9nzsSejQCBTs+rHcO5Rsb277XdRma2m Bd8sLzlkNHot5w0XU7UROQcPR+o5aKlVnAm5jXbYnbOzxRqcyVoPYH/vsJkeXQv+IYbF sd3g== X-Gm-Message-State: AOJu0YwJltzxCUPjbbXhAdfJC2AQEHuS0kzqwLRlBxuQyfuK34mqRnOn +z3QwTk34j/2ofdv8zP6j6P4bICeUdhtPKjBoXmA18d/8GjXQPs1tIL0SQ== X-Google-Smtp-Source: AGHT+IG9ObQ5AJ5iiKaD0dr6FOiMKfC1Ii7t7j/a1+e5gXcrAYW1D2wsAFjeZe6ORaQ95UnkY8UKxw== X-Received: by 2002:a05:6000:d86:b0:34d:ae98:4e7 with SMTP id ffacd0b85a97d-36bbc1712eamr8585472f8f.41.1722893120522; Mon, 05 Aug 2024 14:25:20 -0700 (PDT) Received: from p1g2.lan ([2001:861:3201:3d10:ab7b:e9dd:27f4:647d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbcf0c33bsm11018351f8f.22.2024.08.05.14.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 14:25:20 -0700 (PDT) From: Gary Bisson To: u-boot@lists.denx.de Cc: trini@konsulko.com, festevam@gmail.com, peng.fan@nxp.com, uboot-imx@nxp.com, Gary Bisson Subject: [PATCH v2 2/5] tools: imx8image: add upower image support Date: Mon, 5 Aug 2024 23:25:08 +0200 Message-ID: <20240805212511.653667-3-bisson.gary@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240805212511.653667-1-bisson.gary@gmail.com> References: <20240805124326.544310-1-bisson.gary@gmail.com> <20240805212511.653667-1-bisson.gary@gmail.com> 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 Part of the upower management was included in a previous commit [1]. This patch only adds the bits required to properly parse a config file that would include the binary as follows: IMAGE PWR upower.bin [1] 6ec65c8558f (tools: image: support i.MX93) Signed-off-by: Gary Bisson Reviewed-by: Peng Fan --- include/imx8image.h | 1 + tools/imx8image.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/imx8image.h b/include/imx8image.h index 32064bfeeb8..85fb642ae39 100644 --- a/include/imx8image.h +++ b/include/imx8image.h @@ -162,6 +162,7 @@ enum imx8image_cmd { enum imx8image_core_type { CFG_CORE_INVALID, CFG_SCU, + CFG_PWR, CFG_M40, CFG_M41, CFG_A35, diff --git a/tools/imx8image.c b/tools/imx8image.c index 53ab16637ba..5eb4b9612c8 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -57,6 +57,7 @@ static table_entry_t imx8image_cmds[] = { static table_entry_t imx8image_core_entries[] = { {CFG_SCU, "SCU", "scu core", }, + {CFG_PWR, "PWR", "uPower core", }, {CFG_M40, "M40", "M4 core 0", }, {CFG_M41, "M41", "M4 core 1", }, {CFG_A35, "A35", "A35 core", }, @@ -181,6 +182,10 @@ static void parse_cfg_fld(image_t *param_stack, int32_t *cmd, char *token, param_stack[p_idx].option = SCFW; param_stack[p_idx++].filename = token; break; + case CFG_PWR: + param_stack[p_idx].option = UPOWER; + param_stack[p_idx++].filename = token; + break; case CFG_M40: param_stack[p_idx].option = M40; param_stack[p_idx].ext = 0; From patchwork Mon Aug 5 21:25:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1969236 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=SU4MJASl; 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 4Wd8cg5KR9z1yZl for ; Tue, 6 Aug 2024 07:25:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D69B188908; Mon, 5 Aug 2024 23:25:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SU4MJASl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D8B28885D; Mon, 5 Aug 2024 23:25:24 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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 F3A6B884CA for ; Mon, 5 Aug 2024 23:25:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bisson.gary@gmail.com Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4280bbdad3dso74521415e9.0 for ; Mon, 05 Aug 2024 14:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722893121; x=1723497921; 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=yCbqfSknH5/E3RVXjATWs/UQSguPN/52ESJ9Pfb6yCc=; b=SU4MJASlt7osnv4gReb0Ur2po7ML9GRYpvAMsmqs0pjwCPbYQqqCcnre7PBI35LH0q goJ3TAy2B79xg5JqhKKe9FQYQy55aTFWrkq0Fcd93gkANWgwkNBeXRR9kq1YiecQvVNz b+mvU+Y6HgyxtT6tXV/KlbVn4VZoNeVxj9xzC1/t2oH0DwwWuDg5kCMuwQsBSXiaBA9R 6bnxa9OQ9uCGjBl2fNaEyrbs70T6AAgTOGNjuYJL7npXXm3EZsk4wsyaAVARdsVWzT5C gSU2Ja8wny/GSAmLk+h7k5+7Eq49lHxUq9i1hF/2bpv/N7vs9ZGbtMc/dNmdDjbb+Uu6 Kt9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722893121; x=1723497921; 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=yCbqfSknH5/E3RVXjATWs/UQSguPN/52ESJ9Pfb6yCc=; b=J76ear7fWDmMsVD88nSItSNwlTW7BoOa3y+L3m6t7xKwfKgUWIeJZydAGzwkbmyhhE GPVn0YzimexB621mVzhVuA/adZw+1GKhn1yN0XeWWnENFDqdDyHxYtwPo1q/cEOzMIRH ZEoIXPTHDohizK/HFCHuLwP6L/K7PzzQJZZZ5zRJNHEP+7MaNPsI9nSwqyMJnSBmtien e5GnBXWrCgfZzX4q6VBAHda/54ciyIyxbcDWMkIb/0K6T+IgOqppdIiqY/c/7ddEw+nO 8UhPvC2TFE1fjTLmbEnJvD4DefZnNOc3HFdryFe2thFUnKPgyy41Ur/80hb6U+cFoVNy /GHg== X-Gm-Message-State: AOJu0YxPsW2yxNdipkGC1yKVzj6EkSJH0c+hO1WF8k96N/8qgeycCbHg GqMuZLO14TnbaM00zw8qIVYCnt2cMGdu1LVeSAbPyhi7zSCKPEJZq49kwg== X-Google-Smtp-Source: AGHT+IHu3JmkXHefJCETBn3PpbJ/e6XVVwI1i/kmoXVmk9D9oaYKaQ3cNJDA6uPjddSD/zyXUF+euw== X-Received: by 2002:a5d:490c:0:b0:368:6596:c60c with SMTP id ffacd0b85a97d-36bbc0fc73cmr6458621f8f.30.1722893121317; Mon, 05 Aug 2024 14:25:21 -0700 (PDT) Received: from p1g2.lan ([2001:861:3201:3d10:ab7b:e9dd:27f4:647d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbcf0c33bsm11018351f8f.22.2024.08.05.14.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 14:25:20 -0700 (PDT) From: Gary Bisson To: u-boot@lists.denx.de Cc: trini@konsulko.com, festevam@gmail.com, peng.fan@nxp.com, uboot-imx@nxp.com, Gary Bisson Subject: [PATCH v2 3/5] spl: binman: Disable u_boot_any symbols for i.MX 8ULP boards Date: Mon, 5 Aug 2024 23:25:09 +0200 Message-ID: <20240805212511.653667-4-bisson.gary@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240805212511.653667-1-bisson.gary@gmail.com> References: <20240805124326.544310-1-bisson.gary@gmail.com> <20240805212511.653667-1-bisson.gary@gmail.com> 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 is extending commit da96f93cda9 ("spl: binman: Disable u_boot_any symbols for i.MX93 boards") to i.MX 8ULP boards. Signed-off-by: Gary Bisson Reviewed-by: Peng Fan --- common/spl/Kconfig | 2 +- common/spl/Kconfig.tpl | 2 +- common/spl/Kconfig.vpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 6f56ca911c1..c08ff064493 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -206,7 +206,7 @@ config SPL_BINMAN_SYMBOLS config SPL_BINMAN_UBOOT_SYMBOLS bool "Declare binman symbols for U-Boot phases in SPL" depends on SPL_BINMAN_SYMBOLS - default n if ARCH_IMX8M || ARCH_IMX9 + default n if ARCH_IMX8M || ARCH_IMX8ULP || ARCH_IMX9 default y help This enables use of symbols in SPL which refer to U-Boot phases, diff --git a/common/spl/Kconfig.tpl b/common/spl/Kconfig.tpl index 4ee3b9b826d..92d4d43ec87 100644 --- a/common/spl/Kconfig.tpl +++ b/common/spl/Kconfig.tpl @@ -23,7 +23,7 @@ config TPL_BINMAN_SYMBOLS config TPL_BINMAN_UBOOT_SYMBOLS bool "Declare binman symbols for U-Boot phases in TPL" depends on TPL_BINMAN_SYMBOLS - default n if ARCH_IMX8M || ARCH_IMX9 + default n if ARCH_IMX8M || ARCH_IMX8ULP || ARCH_IMX9 default y help This enables use of symbols in TPL which refer to U-Boot phases, diff --git a/common/spl/Kconfig.vpl b/common/spl/Kconfig.vpl index f1993026bba..d06f36d4ee4 100644 --- a/common/spl/Kconfig.vpl +++ b/common/spl/Kconfig.vpl @@ -243,7 +243,7 @@ config VPL_BINMAN_SYMBOLS config VPL_BINMAN_UBOOT_SYMBOLS bool "Declare binman symbols for U-Boot phases in VPL" depends on VPL_BINMAN_SYMBOLS - default n if ARCH_IMX8M || ARCH_IMX9 + default n if ARCH_IMX8M || ARCH_IMX8ULP || ARCH_IMX9 default y help This enables use of symbols in VPL which refer to U-Boot phases, From patchwork Mon Aug 5 21:25:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1969238 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ABVGEf4S; 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 4Wd8cv0pwDz1yZl for ; Tue, 6 Aug 2024 07:26:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41D8F8867B; Mon, 5 Aug 2024 23:25:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ABVGEf4S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 994EA8890F; Mon, 5 Aug 2024 23:25:24 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 9F1A58862E for ; Mon, 5 Aug 2024 23:25:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bisson.gary@gmail.com Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-368440b073bso117013f8f.0 for ; Mon, 05 Aug 2024 14:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722893122; x=1723497922; 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=/YPIRLw6ahQayeto4/7QIWYAd64IGXdnbDE8t3BIoVc=; b=ABVGEf4S3eOTzgwVqsatjz629W66Hc49QQwan0pCBrYMWfscd1ntmuh3RFfoIx6tKM DDdvfRB5Odcr/UQBbR7riIcecm43M9iY9R1EsaVM/+juPCOgMpATEIS1TF3tgAUEjMLu T6C3zMwxamusa3PwUpPJ9DkFsFIsw/QCeX5xDORmyY8mzChgZRDQfBKDMyNRDsfuTVTu CCoocX+kzA8o971qHyNvCvcFa6YijxF9QaNYKJ/nsSG/1O/boS7PvW8hbcP8JihtdQe2 YBiILBtID8C++KNW+pAscctI7Bung29rfIQghVCm8b4ZzGPgjBDkhRcfQVur7lyL+SKK t/sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722893122; x=1723497922; 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=/YPIRLw6ahQayeto4/7QIWYAd64IGXdnbDE8t3BIoVc=; b=RJp8GXn6m5XITJvG2yi8OuHNZ1MS3Mll4iTMbAlddd+13KK9iVn6Okrvs+JEasg0ib NCUWdrzqxpAxV3OON5VHQ4LYWB9paAdSN4584hv8/jh8QM+/6MwDOrBkM+sTNc1HHaHE hC4v5aiscwks1pc0njs50v2ybsXxHDob0xGlR9tdJQMtEXuBbgs8CYtPPXmTu9bsb+Ae H+5r51BVRur4Rag9lcbxiLMsdx18VQ48Ew1tzSWUznk9c/B2WnWcOCxzixOce/kUASso WH3l7kLU22l2SRxH9db50YBFa3VZidRLsw8c7okTWPaZRCxaEmB7+xDV0nXMx1hlZt4M 9XEQ== X-Gm-Message-State: AOJu0Yx/uoCXCYtp43KtEzTxMuexIKd3ivEEOyHaQgInoE/zkKPSa1O9 YIjyid/Jpu5dK61cRae98BSCxh4KYZofkeLwyxX7mmasFGXb83k2HflseA== X-Google-Smtp-Source: AGHT+IGzWuzOa2ioomdqe8FIPFJNpEfaOi7eyPJTAqr0AFCea5U1CovlZ5jvelMy60LUj9Te2/RhxQ== X-Received: by 2002:a5d:5f44:0:b0:366:e9f5:781b with SMTP id ffacd0b85a97d-36bbbe75257mr11182182f8f.21.1722893121998; Mon, 05 Aug 2024 14:25:21 -0700 (PDT) Received: from p1g2.lan ([2001:861:3201:3d10:ab7b:e9dd:27f4:647d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbcf0c33bsm11018351f8f.22.2024.08.05.14.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 14:25:21 -0700 (PDT) From: Gary Bisson To: u-boot@lists.denx.de Cc: trini@konsulko.com, festevam@gmail.com, peng.fan@nxp.com, uboot-imx@nxp.com, Gary Bisson Subject: [PATCH v2 4/5] mach-imx: Add i.MX 8ULP binman support Date: Mon, 5 Aug 2024 23:25:10 +0200 Message-ID: <20240805212511.653667-5-bisson.gary@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240805212511.653667-1-bisson.gary@gmail.com> References: <20240805124326.544310-1-bisson.gary@gmail.com> <20240805212511.653667-1-bisson.gary@gmail.com> 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 - Re-use i.MX 93 Makefile target as similar boot process - Create imx8ulp-u-boot.dtsi for binman image architecture - Create both SPL and U-Boot containers configuration Key differences between the 93 and 8ULP SPL container are: - No LPDDR training library needed for 8ULP - 8ULP requires a uPower binary (RISC-V core) for power management - 8ULP also requires a M33 binary to work properly Signed-off-by: Gary Bisson Reviewed-by: Peng Fan --- arch/arm/dts/imx8ulp-u-boot.dtsi | 63 +++++++++++++++++++++++++ arch/arm/mach-imx/Makefile | 4 +- arch/arm/mach-imx/imx8ulp/container.cfg | 7 +++ arch/arm/mach-imx/imx8ulp/imximage.cfg | 9 ++++ 4 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/imx8ulp-u-boot.dtsi create mode 100644 arch/arm/mach-imx/imx8ulp/container.cfg create mode 100644 arch/arm/mach-imx/imx8ulp/imximage.cfg diff --git a/arch/arm/dts/imx8ulp-u-boot.dtsi b/arch/arm/dts/imx8ulp-u-boot.dtsi new file mode 100644 index 00000000000..30baaeff8ef --- /dev/null +++ b/arch/arm/dts/imx8ulp-u-boot.dtsi @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: GPL-2.0+ + +#ifdef CONFIG_BINMAN +/ { + binman: binman { + multiple-images; + }; +}; + +&binman { + u-boot-spl-ddr { + align = <4>; + align-size = <4>; + filename = "u-boot-spl-ddr.bin"; + pad-byte = <0xff>; + + u-boot-spl { + align-end = <4>; + filename = "u-boot-spl.bin"; + }; + }; + + spl { + filename = "spl.bin"; + + mkimage { + args = "-n spl/u-boot-spl.cfgout -T imx8image -e 0x22020000"; + + blob { + filename = "u-boot-spl-ddr.bin"; + }; + }; + }; + + u-boot-container { + filename = "u-boot-container.bin"; + + mkimage { + args = "-n u-boot-container.cfgout -T imx8image -e 0x0"; + + blob { + filename = "u-boot.bin"; + }; + }; + }; + + imx-boot { + filename = "flash.bin"; + pad-byte = <0x00>; + + spl: blob-ext@1 { + filename = "spl.bin"; + offset = <0x0>; + align-size = <0x400>; + align = <0x400>; + }; + + uboot: blob-ext@2 { + filename = "u-boot-container.bin"; + }; + }; +}; +#endif diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index ef0caed3f7f..b311d176d64 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -129,7 +129,7 @@ DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctre else ifeq ($(CONFIG_ARCH_IMX8M), y) IMAGE_TYPE := imx8mimage DEPFILE_EXISTS := 0 -else ifeq ($(CONFIG_ARCH_IMX9), y) +else ifeq ($(CONFIG_ARCH_IMX9)$(CONFIG_ARCH_IMX8ULP), y) IMAGE_TYPE := imx8image DEPFILE_EXISTS := 0 else @@ -215,7 +215,7 @@ flash.bin: spl/u-boot-spl.bin FORCE endif endif -ifeq ($(CONFIG_ARCH_IMX9), y) +ifeq ($(CONFIG_ARCH_IMX9)$(CONFIG_ARCH_IMX8ULP), y) quiet_cmd_imx9_check = CHECK $@ cmd_imx9_check = $(srctree)/tools/imx9_image.sh $@ diff --git a/arch/arm/mach-imx/imx8ulp/container.cfg b/arch/arm/mach-imx/imx8ulp/container.cfg new file mode 100644 index 00000000000..029b79128c8 --- /dev/null +++ b/arch/arm/mach-imx/imx8ulp/container.cfg @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +BOOT_FROM SD 0x400 +SOC_TYPE ULP +CONTAINER +IMAGE A35 bl31.bin 0x20040000 +IMAGE A35 u-boot.bin CONFIG_TEXT_BASE diff --git a/arch/arm/mach-imx/imx8ulp/imximage.cfg b/arch/arm/mach-imx/imx8ulp/imximage.cfg new file mode 100644 index 00000000000..a55359fee23 --- /dev/null +++ b/arch/arm/mach-imx/imx8ulp/imximage.cfg @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +BOOT_FROM SD 0x400 +SOC_TYPE ULP +APPEND mx8ulpa2-ahab-container.img +CONTAINER +IMAGE PWR upower.bin +IMAGE M40 m33_image.bin 0x1ffc2000 +IMAGE A35 u-boot-spl-ddr.bin 0x22020000 From patchwork Mon Aug 5 21:25:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1969239 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=m8U97qCQ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wd8d62jXZz1yZl for ; Tue, 6 Aug 2024 07:26:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F4818895B; Mon, 5 Aug 2024 23:25:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="m8U97qCQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA5A488955; Mon, 5 Aug 2024 23:25:25 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 B1E1E8867B for ; Mon, 5 Aug 2024 23:25:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bisson.gary@gmail.com Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42816ca797fso68791875e9.2 for ; Mon, 05 Aug 2024 14:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722893123; x=1723497923; 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=77iYSLeL0R+OxfGqh93qmEQlj5zyjP28IAC8Bfg6d9Y=; b=m8U97qCQMmyXJpvNNLGcoHlWXVWpBg4p/mwvIRRYCS1TvmUW0DMlFpVn5PdXnFAlXn c+4k+nNXheXImkorhWXcpEkB4PxWTWdZj+73S1Qe2M9atMHHNxIM2wgBGxZtlRLC/1nF SY4UN4FJuDTLig2kKcYIWw2h/zDWgyJQWzxxXqo7dj1SSxwmKzmAOvhjTLE1VHVSnZ4V OJzcPicPBtmXMxwUZOzfI5y6bQLVE0KpW1CZpxBJF4SN6IAwKlc+96HAXLHI0k9ldXNL AcuzSm+XvKO2jNpDNA0fArkhsNkwP1Q6TReHIR//gL/bG87vDDbXGH8DhkMULwtEyzUa UNjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722893123; x=1723497923; 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=77iYSLeL0R+OxfGqh93qmEQlj5zyjP28IAC8Bfg6d9Y=; b=WMrc1vKPT7RZb4xFUK4KWF5FLWfUG2X5BNV63OR6aJcd2Bk3TOdtqJ3mozchiNM8iV Uz/ln5NinZ/ZVjwUR/f4yFkVhVZMQtlnwYRz1URSpRPE4NSjrV6wI6YXqg54hqEs5HWw 2CFU/Jj5jc21UrS4LqGljN9LeXqoDUj8uoLCmeoOi3OMy62mhdhpsDBtYXp2PJwqB3aZ VBt2pu5Lmr3O1uKQQGjXcy3YbVtZ92Ymp5XQs1j5suxJYwRAnFHNrLhrGexkx16icJ5g 7p0XJZ7vBjtfovRRrSVKQCW4OyCcg+TxfEsgMK+PBRjdbtxSdJoIi1r8CS/Y2iW1bTMJ 4qVg== X-Gm-Message-State: AOJu0YyBcqHBvF3YrTMYtOW8qLvAgzsMlN6ChGt5lui3ZMiulPJfGo++ yRlwTDHj1kKMTSaHuYOh/i9wxbGkRLk8QcYzBCU6dsOcE7SlID3FoEdmoA== X-Google-Smtp-Source: AGHT+IHVnCzeKkHxL5mviiNdDAzSdprcC75KbLAqZ+xkvrsXkPUCPcd5crl/H99glLeTrcj0zcOBwQ== X-Received: by 2002:a5d:69ca:0:b0:368:35a7:b4f with SMTP id ffacd0b85a97d-36bbc0dcf6amr7794005f8f.16.1722893122905; Mon, 05 Aug 2024 14:25:22 -0700 (PDT) Received: from p1g2.lan ([2001:861:3201:3d10:ab7b:e9dd:27f4:647d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbcf0c33bsm11018351f8f.22.2024.08.05.14.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 14:25:22 -0700 (PDT) From: Gary Bisson To: u-boot@lists.denx.de Cc: trini@konsulko.com, festevam@gmail.com, peng.fan@nxp.com, uboot-imx@nxp.com, Gary Bisson Subject: [PATCH v2 5/5] imx8ulp_evk: enable binman support Date: Mon, 5 Aug 2024 23:25:11 +0200 Message-ID: <20240805212511.653667-6-bisson.gary@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240805212511.653667-1-bisson.gary@gmail.com> References: <20240805124326.544310-1-bisson.gary@gmail.com> <20240805212511.653667-1-bisson.gary@gmail.com> 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 Signed-off-by: Gary Bisson --- arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 2 + arch/arm/mach-imx/imx8ulp/Kconfig | 1 + configs/imx8ulp_evk_defconfig | 3 +- doc/board/nxp/imx8ulp_evk.rst | 79 ++++++++++++++++++++++++++++ doc/board/nxp/index.rst | 1 + 5 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 doc/board/nxp/imx8ulp_evk.rst diff --git a/arch/arm/dts/imx8ulp-evk-u-boot.dtsi b/arch/arm/dts/imx8ulp-evk-u-boot.dtsi index 5034ce65fff..ca390f5d702 100644 --- a/arch/arm/dts/imx8ulp-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8ulp-evk-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright 2021 NXP */ +#include "imx8ulp-u-boot.dtsi" + / { mu@27020000 { compatible = "fsl,imx8ulp-mu"; diff --git a/arch/arm/mach-imx/imx8ulp/Kconfig b/arch/arm/mach-imx/imx8ulp/Kconfig index 49ea25250a3..fbca241e106 100644 --- a/arch/arm/mach-imx/imx8ulp/Kconfig +++ b/arch/arm/mach-imx/imx8ulp/Kconfig @@ -23,6 +23,7 @@ choice config TARGET_IMX8ULP_EVK bool "imx8ulp_evk" + select BINMAN select IMX8ULP select SUPPORT_SPL select IMX8ULP_DRAM diff --git a/configs/imx8ulp_evk_defconfig b/configs/imx8ulp_evk_defconfig index b302df1f351..0f0748b6792 100644 --- a/configs/imx8ulp_evk_defconfig +++ b/configs/imx8ulp_evk_defconfig @@ -8,7 +8,7 @@ CONFIG_NR_DRAM_BANKS=2 CONFIG_SF_DEFAULT_SPEED=40000000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0x400000 -CONFIG_IMX_CONFIG="" +CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8ulp/imximage.cfg" CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="imx8ulp-evk" CONFIG_SPL_TEXT_BASE=0x22020000 @@ -38,6 +38,7 @@ CONFIG_SPL_MAX_SIZE=0x25000 CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_BOOTROM_SUPPORT=y CONFIG_SPL_LOAD_IMX_CONTAINER=y +CONFIG_IMX_CONTAINER_CFG="arch/arm/mach-imx/imx8ulp/container.cfg" # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set CONFIG_SPL_SYS_MALLOC=y CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y diff --git a/doc/board/nxp/imx8ulp_evk.rst b/doc/board/nxp/imx8ulp_evk.rst new file mode 100644 index 00000000000..db0d9ba698b --- /dev/null +++ b/doc/board/nxp/imx8ulp_evk.rst @@ -0,0 +1,79 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +imx8ulp_evk +======================= + +U-Boot for the NXP i.MX 8ULP EVK board + +Quick Start +----------- + +- Get and Build the ARM Trusted firmware +- Get the uPower firmware +- Get the M33 firmware +- Get ahab-container.img +- Build U-Boot +- Boot + +Get and Build the ARM Trusted firmware +-------------------------------------- + +Note: srctree is U-Boot source directory +Get ATF from: https://github.com/nxp-imx/imx-atf/ +branch: lf_v2.10 + +.. code-block:: bash + + $ unset LDFLAGS + $ make PLAT=imx8ulp bl31 + $ cp build/imx8ulp/release/bl31.bin $(srctree) + +Get the uPower firmware +-------------------- + +.. code-block:: bash + + $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-upower-1.3.1.bin + $ chmod +x firmware-upower-1.3.1.bin + $ ./firmware-upower-1.3.1.bin + $ cp firmware-upower-1.3.1/upower_a1.bin $(srctree)/upower.bin + +Get the M33 firmware +-------------------- + +.. code-block:: bash + + $ wget http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx8ulp-m33-demo-2.14.1.bin + $ chmod +x imx8ulp-m33-demo-2.14.1.bin + $ ./imx8ulp-m33-demo-2.14.1.bin + $ cp imx8ulp-m33-demo-2.14.1/imx8ulp_m33_TCM_power_mode_switch.bin $(srctree)/m33_image.bin + +Get ahab-container.img +--------------------------------------- + +.. code-block:: bash + + $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-ele-imx-0.1.2-4ed450a.bin + $ chmod +x firmware-ele-imx-0.1.2-4ed450a.bin + $ ./firmware-ele-imx-0.1.2-4ed450a.bin + $ cp firmware-ele-imx-0.1.2-4ed450a/mx8ulpa2-ahab-container.img $(srctree) + +Build U-Boot +------------ + +.. code-block:: bash + + $ export CROSS_COMPILE=aarch64-poky-linux- + $ make imx8ulp_evk_defconfig + $ make + +Burn the flash.bin to MicroSD card offset 32KB: + +.. code-block:: bash + + $ dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc + +Boot +---- + +Set Boot switch to SD boot diff --git a/doc/board/nxp/index.rst b/doc/board/nxp/index.rst index 94687730544..5f1e878508e 100644 --- a/doc/board/nxp/index.rst +++ b/doc/board/nxp/index.rst @@ -11,6 +11,7 @@ NXP Semiconductors imx8mp_evk imx8mq_evk imx8qxp_mek + imx8ulp_evk imx93_11x11_evk imxrt1020-evk imxrt1050-evk