Message ID | 1523633481-20914-16-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp851605ljb; Fri, 13 Apr 2018 08:36:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/F27fCTmslIdwQkJTi0hYG/GYI77LpjCgFJVATr1ZktVw/X504vgdKJ78ArMJizr6eJN3F X-Received: by 10.80.210.212 with SMTP id q20mr21361817edg.165.1523633804216; Fri, 13 Apr 2018 08:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523633804; cv=none; d=google.com; s=arc-20160816; b=U47kCT7mHy0eMIXTptTy72vDPtSgIgBDupx1vfWJKf53r+Q6gPEpzTyUjUGA4c6tRX btlwbfnyos88l9YFat7nC0p/VbCeLyKVUGo68j0fK8UrzBDPeHhqaCeNOIbdhlEngFlJ Hcd8dM81bEUAZlSBAhUFgSBw/89GnY7uogZvQb1sPmjAlaaEhyxEa8nnR23VEk8FWgPN LBiog0sFeid0/UUmeGXdG66UUvzKgL9ecfG8PL2C2KdP34TZxNnL6SwAChrYwl8wCtra vPNjzEtPHyMz9gS5VyeAY8d6pAwqRYdGiKAd69L75bAxW6UbYHwi5vxq8M6p5/9f9Gi/ aYqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=+3GY7jsHY4IOVIPrtDBTeZp6NikRmdXql7LrHtZGCJU=; b=YnYZV0pnYOwepdSRKCRij7U9C9jp72tAoY01kxAucUDcQLnCSgcugvDHHP482Kztg0 WvgYJMT7xWwsgQeBJqWoVn2WTfofLsMOdaNeDecfR1N04DwHX1gCgc0Vb65SRLr4MRsm F6XNU2AhYe7r3UVwpUJ8TzvgIS1/FSHUM2S2w4Z+o3kQaVi4P6xDpk7MOP4Vi/4Gdm6Z 3KpGzVFgjBimQ7qnqazHJLh8ep11U/8k0Ndhd1ndFXmnP5TehxrUEoy9E3Zkm74ZTiyA CphsXm8lCFZBtntaLSSmH0JVAgBBpJW71S/GDjKjXQwA52L9QtVOGPmQFRyk0AwaCdiP 6Fqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F52KfFxn; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b2si1306541edd.216.2018.04.13.08.36.43; Fri, 13 Apr 2018 08:36:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F52KfFxn; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id C2E52C21DA2; Fri, 13 Apr 2018 15:34:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id EE427C21E45; Fri, 13 Apr 2018 15:32:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 45E7BC21DB5; Fri, 13 Apr 2018 15:31:45 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id AE386C21DD4 for <u-boot@lists.denx.de>; Fri, 13 Apr 2018 15:31:40 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id d19so9178371wre.1 for <u-boot@lists.denx.de>; Fri, 13 Apr 2018 08:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=guTPV85x+THIISQjael5JIJYgZEJI5AyKYRcOCLdmuI=; b=F52KfFxngGezVNBMdEFSIa9dfVEbZRbv0lSKTd0P7R6RWRXRMUaFcNQCpA16h0ZpNX to8ZZAPvpMO0bpYSDMvLQSEpdwrxi0UdItFKZlOZwivDWJXQE2yeuUgg8ice+iuliFFT ENbQsgyeV8AjArslIT9DU7rMBC81Ls5RALtg0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=guTPV85x+THIISQjael5JIJYgZEJI5AyKYRcOCLdmuI=; b=BBUgdIW/1xbhi1mh9hN2GVM6Q2c8z3gHmGLTk2UAEghLficUSlAPh11QKhgW+weN2/ TfLOKr/wdBb6/fe8T3JRpLUA5Gqfm3Xpm9dRNKmFPyVbeYKbVvtjJ6XK1lNY7Z5qAu9Z 4uMXn0NDK4kx1SgQql8YcgvH7nmeadxvPCjqCsqG3+InGWVaf8Cs/nDmbQADG0zAtSbT tG3nzcCCFBYtR6vYH9yNQHslVHmf160k7RdhYIrnOCWYv40iG7qho5PlTRn9r2+V/ugC /6jRBNoezM9rvRT1qQ8+BO6z7XnND74wZQvpdtg4aO0gTh/sWoijtNBsTNlnUdQLYn6h oSPg== X-Gm-Message-State: ALQs6tDqxjLmgyxTCxUVhySgHGdXDxUvrFgP8yBHfflnPk3c7XJOmCa7 DuTxZ0v6tVlceFbu5f/hyAN44JIwrVI= X-Received: by 10.80.136.197 with SMTP id d63mr20193556edd.122.1523633500179; Fri, 13 Apr 2018 08:31:40 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:39 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Fri, 13 Apr 2018 16:31:19 +0100 Message-Id: <1523633481-20914-16-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> References: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH v3 15/17] warp7: hab: Set environment variable indicating IVT offset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
warp7: Enable automated OPTEE/HAB boot flow
|
expand
|
diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 454bc1c..fe9b7d5 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -10,6 +10,7 @@ #define __WARP7_CONFIG_H #include "mx7_common.h" +#include <imximage.h> #define PHYS_SDRAM_SIZE SZ_512M @@ -50,6 +51,7 @@ "finduuid=part uuid mmc 0:${rootpart} uuid\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=PARTUUID=${uuid} rootwait rw\0" \ + "ivt_offset=" __stringify(BOOTROM_IVT_HDR_OFFSET)"\0"\ "warp7_auth_or_fail=hab_auth_img_or_fail ${hab_ivt_addr} ${filesize} 0;\0" \ "loadbootscript=" \ "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
This patch introduces the environment variable ivt_offset. When we define a load address for Linux or DTB or any file the IVT associated with that file is prepended. We extract the actual load addresses from u-boot.cfg and feed these values into the code-signing process - hence we want u-boot to have the real load addresses exported in uboot.cfg. ivt_offset represents the addition or subtraction from the load address that must happen to find an IVT header. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- include/configs/warp7.h | 2 ++ 1 file changed, 2 insertions(+)