From mboxrd@z Thu Jan 1 00:00:00 1970 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 A7A3CC77B78 for ; Wed, 26 Apr 2023 16:07:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CB26863DD; Wed, 26 Apr 2023 18:05:43 +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="MIoF1mrQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7389A863B5; Wed, 26 Apr 2023 18:05:35 +0200 (CEST) Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) (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 911E08639F for ; Wed, 26 Apr 2023 18:05:32 +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=festevam@gmail.com Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-18eabdf5215so432156fac.0 for ; Wed, 26 Apr 2023 09:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682525131; x=1685117131; 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=RNhWMyxfhmp+gKjC3IO9O6I2rp8wLkJUnbv4115NQXs=; b=MIoF1mrQlnBmZF7gl+zr68KmTY3qMv5xDtII8vsyxsOyB7ZHv6Eenf+GhOHy1mKyfw 3othS52p835TCB34Wi1m4Sy6s8WgTfst6Imbs2TFxVnsa1bRuY3u67TFyV6h8mGEigGN zH5jMhh+ApdaHNPt7VqI9L4HOSzODTrzO5JcW9iLY8ptdESbZH/Lm2qT7FIiUqa802yt X8zqjjtqL+8NnucSTPrM+Yl/xQ2kvG2wKaAAY/VBs2EdKD2dOfFCoXQINqkVkiH535Ys re8kjGHC+gPlNIEciF5YUr4ZgAXwIMo8uQIvTDpopYiXM6Nl84r2LuSUI/BJzCUVRnfj OmCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682525131; x=1685117131; 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=RNhWMyxfhmp+gKjC3IO9O6I2rp8wLkJUnbv4115NQXs=; b=InQlUzr1xDBdQd8Z2eGYArAcu2KIKFzFwVFXF5uCtVvwfOp59xKIo4tKgzPLh0nvm/ t4nL4VTjWnCvthpK3e3HWCWxHp1U9tvtGbk2nHkZnCV56eKYJ3tmhY8Wc/nE+H5XzKKA 6twTNWJpuIrp6JCQ7642RWq1v2VU8l+bhz0wE2vW7BQP36YbqqsqSkbRVPWNGKNE8YrR hQoo0iPxLsIw0y6AnQJCmC8AW0G8MqjvpgkhKHW7h9NiQYLmuzE06/VK2nJI95KGrF0t Xoknc9IdFZQ1Y4pbVU/PTlLuy6Gj5k9EIvWc1VC8ZlVYAnWiNbeWU2e05yiO/ZBZyIz4 a1KA== X-Gm-Message-State: AAQBX9d14snag1W8ep06vFJIwHp3nlkLi3ZQWD0Abgn43vXWGr5gWRLP 6cnSDELVfN7fyINSYbOojMo= X-Google-Smtp-Source: AKy350aWLdjzBYut0AgrdWtzKtm823ny1jrEwHmrlpHJzE8oKaDrJYDFG98ZEMffcNFanrsK71qt9g== X-Received: by 2002:a05:6870:2409:b0:171:a749:bc0c with SMTP id n9-20020a056870240900b00171a749bc0cmr4001736oap.3.1682525131050; Wed, 26 Apr 2023 09:05:31 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:f6e1:8741:de7a:38fc]) by smtp.gmail.com with ESMTPSA id u2-20020a05687036c200b00177c314a358sm6755325oak.22.2023.04.26.09.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 09:05:30 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: eduard@lionizers.com, u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH v5 09/14] smegw01: Switch to fitImage Date: Wed, 26 Apr 2023 13:04:56 -0300 Message-Id: <20230426160501.1199085-9-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230426160501.1199085-1-festevam@gmail.com> References: <20230426160501.1199085-1-festevam@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean From: Eduard Strehlau Instead of loading the zImage kernel and the devicetree separately, switch to the fitImage format, which is more convenient when working with secure boot, for example. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v4: - None include/configs/smegw01.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/include/configs/smegw01.h b/include/configs/smegw01.h index 8f68472f5bad..852188327777 100644 --- a/include/configs/smegw01.h +++ b/include/configs/smegw01.h @@ -23,7 +23,7 @@ #endif #define CFG_EXTRA_ENV_SETTINGS \ - "image=zImage\0" \ + "image=fitImage\0" \ "console=ttymxc0\0" \ "fdtfile=imx7d-smegw01.dtb\0" \ "fdt_addr=0x83000000\0" \ @@ -39,8 +39,8 @@ "saveenv;" \ "fi;\0" \ "bootlimit=3\0" \ - "loadimage=load mmc ${mmcdev}#rootfs-${mmcpart_committed} ${loadaddr} boot/${image}\0" \ - "loadfdt=load mmc ${mmcdev}#rootfs-${mmcpart_committed} ${fdt_addr} boot/${fdtfile}\0" \ + "fit_addr=0x88000000\0" \ + "loadimage=load mmc ${mmcdev}#rootfs-${mmcpart_committed} ${fit_addr} boot/${image}\0" \ "loadpart=gpt setenv mmc ${mmcdev} rootfs-${mmcpart_committed}\0" \ "loadbootpart=mmc partconf 1 boot_part\0" \ "mmcboot=echo Booting from mmc ...; " \ @@ -48,12 +48,8 @@ "run loadpart; " \ "run loadbootpart; " \ "run mmcargs; " \ - "if run loadfdt; then " \ - "if bootz ${loadaddr} - ${fdt_addr}; then " \ - "; " \ - "else " \ - "run altbootcmd; " \ - "fi;" \ + "if bootm ${fit_addr}; then " \ + "; " \ "else " \ "run altbootcmd; " \ "fi;\0" \ -- 2.34.1