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 3DCE2C7618E for ; Mon, 24 Apr 2023 11:14:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16FD986136; Mon, 24 Apr 2023 13:12:51 +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="h86833qT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 990958610B; Mon, 24 Apr 2023 13:12:38 +0200 (CEST) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 BCA45860F4 for ; Mon, 24 Apr 2023 13:12:34 +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-ot1-x32d.google.com with SMTP id 46e09a7af769-6a6091ef0easo1177243a34.1 for ; Mon, 24 Apr 2023 04:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682334753; x=1684926753; 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=teZFNYyLV88OiMWp1wlvwGutRiqUi4490XQBVN77Ny0=; b=h86833qTrJBEfcVzHCZIqPp6/uj+Hu25/5JpMLT7rOuyOC2Dl3jfEwKKqEjMNCrKAQ OTXM0BXkrKgPaGkbBWc/JPenjrCljawjSvZMvoNOF06KXOkSAlFLqFo4bb4EUEnMTeH4 IQVuKrzzWxRM+YmbXEtbKu2xLAqhNGQMr1gqpqcu0xhKjubBPLZGFK4bDno5Dk69Qzc/ nGTxiy3n70sti53sLTt9Uwwo0UZFg1tDZrF2uzD2h9l58a2xXXiR6VVsQyC/szawjsjf c3SdjEBzXIw6VemcMYKrDrvARh4sAAXCvj1GS9HHqFgvdg3p6NRifTSfKQ14epz41Ejb tc4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682334753; x=1684926753; 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=teZFNYyLV88OiMWp1wlvwGutRiqUi4490XQBVN77Ny0=; b=ZoqtOCAgbPw6WD+sZk+2glwFLxmzLXF1qP9K6GSIALAp2bssktUlKXP1fnUFzY8j11 sI3G6mfPJTXucWrNrbOVuvTYs68OOOzYui7kI8F3esrntItMP+2QzxP07baSJheWU1ow jhJ4PpmgEUL9x/CxYs4R+y/AhPIcpfB/6+kWWpVOSEQl12l9AL8oYDjAu8mZjGD2IX7S Y3TuXlY+rxAs0dkFtUNCf8DmzNPK2eWwkU4f1Dc/cmgisseH9DIGoUZAyop2+jTOl5vN 4JbQNBZwLMxsk1/a6ppFjjFR3l9/TeEQmu3SZLTW11oo0iX2lvmVHuZGYYxVJx4e7h/B MNzA== X-Gm-Message-State: AAQBX9e3W3nJlx2OLn+PjkFd6JSGeO5hYBu8rvxc97chs9QVFO80yYNL VBL+UJeMH9mtLagE7Avl3UI= X-Google-Smtp-Source: AKy350ZY+w2lNk4loX8U58w0a/ndkMbJkSunJFMDIE84ZHA4cBvl842lrtQv0A9+Car5sCjrguNZBg== X-Received: by 2002:a4a:bb11:0:b0:547:92c9:e30b with SMTP id f17-20020a4abb11000000b0054792c9e30bmr1346678oop.1.1682334753192; Mon, 24 Apr 2023 04:12:33 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:1d84:e533:11fa:26c6]) by smtp.gmail.com with ESMTPSA id 27-20020a4ae1bb000000b00541fbbbcd31sm2294678ooy.5.2023.04.24.04.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 04:12:32 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: eduard@lionizers.com, u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH v3 09/13] smegw01: Switch to fitImage Date: Mon, 24 Apr 2023 08:12:02 -0300 Message-Id: <20230424111206.1438983-9-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230424111206.1438983-1-festevam@gmail.com> References: <20230424111206.1438983-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 v2: - 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 8f68472f5b..8521883277 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.38.1