From patchwork Thu Apr 10 08:41:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879749 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132272wrq; Thu, 10 Apr 2025 01:42:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRObo12GuuxOdjiPFuK3Zn6y0MdFIMCZzJQ1VM3BeRHuK+8ZYRbnAiuLzPObG5HWbEfv24IQ==@linaro.org X-Google-Smtp-Source: AGHT+IGOaV3wPRLSSSQaWRpEcgs/JarUGjgUTyBWp8g8QIqZLpwvUCwa2j+KLrCpF8Al3DQKFBzi X-Received: by 2002:a05:6102:3f4c:b0:4c3:221:8f47 with SMTP id ada2fe7eead31-4c9d34cdf58mr1233506137.13.1744274526921; Thu, 10 Apr 2025 01:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274526; cv=none; d=google.com; s=arc-20240605; b=iJ1csIqvX1IUNLup/HDry2iNYfpyq3fXH4nB0BdKQN62kxTGmS+SaPCTHhUYhOKJY/ z+XVimdpMoFHr2MchJtJSnj/RukCWBMTmeAy2KgbZpeffAf/S34wrCxPdqRcMszBUqHQ BzDDQl49VhxTw8/hxRVk72bpQZbtU+IOKoYVtL7h4rx4HjXG12OyVtGSSJn4nwiwtW8b l6dE/rDu+cxZPl6T+R+nvY12IaMA8BFT98cTGZRWdKLuMxvpmJIJgNNjw7qnaWoaACyG u2hvGl/cOQNnOBZpL5R+7HG9EDEjhGjlrrQJJeZgup6bmgLE5kVKxnp8iHcciXddPGLH sXVw== 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=iFljJS+T3Da1LzVzwOzSuePsiVt5WStcZHi0GJB6ME8=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=Qdg4DWGkh6fbkz2bZ+JSVfHvvlBhKifHFX2eNpiE0o3fhQwJd3zfidLKDdg11oE2eK etTpNOVojYiF9XdJQAO/1lxWbjhEZWgmnwAYm9EOJXxtQr+8fYHia63L/M+XZ0LhgqPT N5sQc8FoAxwsSvKd4K1JmCmwiPMqtQdclaWtgvdYVVFOjf1HM944UP9CVFRbR/wym3YL 8Sy+igb6QfYehMbsHSrxxNspbheRTyeIf8FT5OcXU36hwrbDDxrUb7HJryii0T8QDK9Q zXuoh9coMl2t01+y+8A4TkkGAboq3ZFAnFD3j1Xho95bYgQNUrYoR1vcIouP8IxKkQeD vJ9w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=JKAyrsvl; 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-4c9c98c4a23si979223137.379.2025.04.10.01.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:42:06 -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=JKAyrsvl; 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 919A183A90; Thu, 10 Apr 2025 10:41:32 +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="JKAyrsvl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C03F283A56; Thu, 10 Apr 2025 10:41:28 +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 B6C5E83A61 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=iFljJS+T3Da1LzVzwOzSuePsiVt5WStcZHi0GJB6ME8=; b=JKAyrsvlQ0z9T6Uwl0PEXKZXkJ 9dqmqK0tva+IPVlIKgpm0vLr53IKrpUDeEU++JcbGw51fd/dTx6CbndYzrJ4bzyxBUYWuXY+5kEF3 FGS+Y4U9IhdnmKo4SxU2TFrttYtvNKekUW4TZ9WpA/HvszY3o1V5Ecd4IJbWi3VrZlWD437weWiK6 dGK3o6P5dRH0gr5CHxKDjE93yx1k2qUdVP5gUWydGXQhYNDIqhhz2J2g+EfRLVP5wSqd00cHZxtLR 4jqo16YJ99G3oSupabL+cUPPI/xRHSQX4xbJttPwkEqyGq5sFesj4DR88lLpMs/16L3lTnhGWgwjU jdwwdlGw==; 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-0t; 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 4/6] board: phycore-imx93: env: Add option to disable bootenv.txt import Date: Thu, 10 Apr 2025 10:41:20 +0200 Message-Id: <20250410084122.1010297-5-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 Add support for disabling external environment import (bootenv.txt) by setting the ${no_bootenv} environment variable. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index 52c234a4206c..d0694f23269a 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -20,8 +20,10 @@ loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile} mmcboot= echo Booting from mmc ...; - if run mmc_load_bootenv; then - env import -t ${bootenv_addr_r} ${filesize}; + if test ${no_bootenv} = 0; then + if run mmc_load_bootenv; then + env import -t ${bootenv_addr_r} ${filesize}; + fi; fi; run mmcargs; if run loadfdt; then @@ -41,8 +43,10 @@ netboot= else setenv get_cmd tftp; fi; - if run net_load_bootenv; then - env import -t ${bootenv_addr_r} ${filesize}; + if test ${no_bootenv} = 0; then + if run net_load_bootenv; then + env import -t ${bootenv_addr_r} ${filesize}; + fi; fi; ${get_cmd} ${loadaddr} ${image}; if ${get_cmd} ${fdt_addr_r} ${fdtfile}; then