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 B72D8C77B75 for ; Tue, 18 Apr 2023 13:49:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0DA7860BB; Tue, 18 Apr 2023 15:48: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=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="ZfWAsDNb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A9A188609F; Tue, 18 Apr 2023 15:48:13 +0200 (CEST) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (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 8905F86098 for ; Tue, 18 Apr 2023 15:48:09 +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-x336.google.com with SMTP id 46e09a7af769-6a4142c11f0so771579a34.0 for ; Tue, 18 Apr 2023 06:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681825688; x=1684417688; 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=9tdQKiy31TOvdRQmKVuBweItZkxesgaJxHe5bDI3D1M=; b=ZfWAsDNbDqu26xafwRDj3Rbn5E+md/56BwJMe51FroCkAxeqxWEd1rXLagWeZRjj9q iXK1hdzfZqIcrDFZOkwCVwHTj2ZBRn9djc5ay+A7S0CQEEm8SkrcWe2QQfZtA1l3xljA jTE7XzlB+clV0Kk22H/bYPAE2jqjTTsPM9FRpdfHOzPKT/UDUR45FGOMEtLdM7uL/OLB OcSF1vg0CYTJda68pVKZ7AOfJP5SlOJPh5Yj3hyxFoHr35YtNz4E01t58K94v65WWuoK T+ItiR5MdRVev6GX/kDYzBoDN2jhBUSHeoHBCTVFdu8Y1lDSxCACJgjWNXYlUYF3EwxV heRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681825688; x=1684417688; 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=9tdQKiy31TOvdRQmKVuBweItZkxesgaJxHe5bDI3D1M=; b=RmYiNcLGc4hKhs46RX9KOeh8Oc/eU17feZHTqryWnsAWOfBT5x8af+k+s25PkRwdLW wXMzfBP68I1q/r47yT1Kx/HlLl6YXSeFmOLJwq1wRvs99NS5OX5HOl04rb8AkvjAXsb0 C+GyG3WmCLlQUkV/+E5U9BlkwBVioGVrnh7l/rzUnWx2qc3DOx6Z4slFpFyhee+LJQLw rZAMoKRORSNI28BkhSuaq7NKVjt28kNsxp1VwWoEbbfhiIx1/1/mGb5OSAmVBeGbcjfl cgZXi5ARAMqOmdhmRJVd7JO25e5YAnUNE/jUEO12A/TMUfEhK797qiF5vHvd4aSrhtGJ GUMg== X-Gm-Message-State: AAQBX9fR6DdwCMV+cnegbKx9SV+ZG4Yxq2EZt4fdcIXqn6i8GpEqdHk1 zxJNUjl0Rq+JnbSCYxHXYkFufjv0B1sqjQ== X-Google-Smtp-Source: AKy350Y0XHYWjpv+xh9ZCksFPs27HLyCczTevXKoKDP0IFtSTcXOu8TTit/kCHQz/SnnUvngVMFj+w== X-Received: by 2002:a4a:c481:0:b0:545:84dd:72fd with SMTP id f1-20020a4ac481000000b0054584dd72fdmr4145431ooq.1.1681825688001; Tue, 18 Apr 2023 06:48:08 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:df3a:5c40:f24a:e8cc]) by smtp.gmail.com with ESMTPSA id 1-20020a4a1a01000000b0054157801d51sm5823246oof.38.2023.04.18.06.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:48:07 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, eduard@lionizers.com, Fabio Estevam Subject: [PATCH 09/13] smegw01: Switch to fitImage Date: Tue, 18 Apr 2023 10:47:40 -0300 Message-Id: <20230418134744.343023-9-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418134744.343023-1-festevam@gmail.com> References: <20230418134744.343023-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 --- 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