From patchwork Thu Apr 10 08:41:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879745 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132095wrq; Thu, 10 Apr 2025 01:41:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVV/NgnmfojoeBOYuEhV1hEWVcR52YrLB8UxT1u3/J3M0yg95wcBH1ErlrlJYA6zTa/jgcFqQ==@linaro.org X-Google-Smtp-Source: AGHT+IF1BmFIIZZn9UeBj9mh81FIUDM1W8Feehr+KXKtPlk6F434mTAtR0J2nioFpsGGmm6MBy8e X-Received: by 2002:a05:6102:3c87:b0:4c1:91da:dac1 with SMTP id ada2fe7eead31-4c9d34a886cmr1247093137.6.1744274489660; Thu, 10 Apr 2025 01:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274489; cv=none; d=google.com; s=arc-20240605; b=e58yXuoy92dAUbDwK85muZIo5suR+Wtp8OMKejAoxD/GE/sS8EREFUXq2v/U0HuJA6 GCGeav5eDKbpNacCXcwsB/r7pbNtokqcRwo/fSJIvPZHsVnJW2lXvdFC3ovssFG6rmef fZ4t2D60qtmCoIIWDO08xFIXxfp++ehHUNlm0W8Pv1z6V2TINP0V1ZtM+Vpx4Q+7VqGv 7VAhIBiOGAYbsCV8xd7El0OKRVHveMYWwfinsZAs4uRh9ct0SXrX2yXKUsRhRxGdrDoG JroidDRj5SVFEVb17DCHNrMp9w4fvvPZzijYR8S9TusyXeN8Bswxd4nsAv4iRSi17Fbs 2hWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KI613fEmXI2TzrbUIUGjWmPRBZ8TXp7BGl73PPLNCQ4=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=XTRm520+ii2C4oArpTmUKBxKTwTkzw9Fcm7KaEyVZ6tx7qdOWFEwe2HbX4UvTNWpgx XgGVkxyazE7xgiEHa1uVtQNcqGqkBT5IwuN/GBq/7437xOHkpNQCUCSdWVwTPJbFgmDE ZRATqhZHcciGgIrZmbrOziCEQ9O1ZEuZhtYJDCwHGuxC1loz6IOJzV4p6rH2UhzKuXcp kDzIc8fKq+WWk0aSmuRRpIN7uFWLpYwIwWkOYUWhSkll+04w4I7s4n9eyt7tBM+QvMSA 32cqkTNjRM2ZCgUGSXJPp0E+SG8J82/cgptHQ+xAm0sQc416lM9nJKPNDETR+xjkjRFx jpYQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=G9crX0Xh; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ada2fe7eead31-4c9c976d8a3si973429137.165.2025.04.10.01.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:41:29 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=G9crX0Xh; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C817583A71; Thu, 10 Apr 2025 10:41:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="G9crX0Xh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4D5883A7A; Thu, 10 Apr 2025 10:41:26 +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,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C809983A62 for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KI613fEmXI2TzrbUIUGjWmPRBZ8TXp7BGl73PPLNCQ4=; b=G9crX0XhQAdgf5Fwc9kRLuYhRY 8ZTCoV3NgGbmiPWASi/7I1o7dPKjQXlnuN4Yc7mjTnAhynBzfcx1GY24iDLgLOTB8cysSd76i4hMo WTkeWG4DS2+qRgETeHk4SQ6lmUeAhi1BWusfenVKkT54zvLDl0f54ZcY1RzZ9aP6Wx3YrMHHWaK/u 7tSPlLYB9lCnytE3JHLwJRpZCgW3UCu4K9BsMSAWgP12MrUzX89aXBFsQI32eURYC6NfJkvOPy01K 1a79Y7lhasTR9XElTF9XN5XNRUANhjc8QrbtmhMOQwjP1phby4xNW/EF0sh4JliaFBZOILbVdJ6lq PZXVW3WQ==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-14; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 5/6] board: phycore-imx93: env: Move bootcmd from defconfig to env Date: Thu, 10 Apr 2025 10:41:21 +0200 Message-Id: <20250410084122.1010297-6-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: 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 From: Leonard Anderweit Move the default bootcmd from the defconfig to the board environment in preparation for RAUC support. No change in functionality. Signed-off-by: Leonard Anderweit Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 9 +++++++++ configs/imx93-phycore_defconfig | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index d0694f23269a..3a36597cae84 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -2,6 +2,15 @@ #include +bootcmd= + mmc dev ${mmcdev}; + if mmc rescan; then + if run loadimage; then + run mmcboot; + else + run netboot; + fi; + fi; image=Image console=ttyLP0 fdt_addr_r=0x90000000 diff --git a/configs/imx93-phycore_defconfig b/configs/imx93-phycore_defconfig index cf9800118ac1..e99676d4f62b 100644 --- a/configs/imx93-phycore_defconfig +++ b/configs/imx93-phycore_defconfig @@ -35,7 +35,6 @@ CONFIG_REMAKE_ELF=y # CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DISTRO_DEFAULTS=y CONFIG_OF_SYSTEM_SETUP=y -CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; fi;" CONFIG_DEFAULT_FDT_FILE="oftree" CONFIG_SYS_CBSIZE=2048 CONFIG_SYS_PBSIZE=2074