Message ID | 1522708936-7603-16-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3103178ljb; Mon, 2 Apr 2018 15:50:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+H+nYLFu3R1f5CMJuDnVDGu/DiKWKL9xAPE3a5iagKJVqQxI1+awOrhb0JxQlBWC93uzzm X-Received: by 10.80.202.199 with SMTP id f7mr3158952edi.190.1522709411677; Mon, 02 Apr 2018 15:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709411; cv=none; d=google.com; s=arc-20160816; b=N7I+v/8MjP9iCcmvwDLhiweTAUHaeasNnlJHcsg3ZS3DUwG9kfFBuXAViy4JSir8An iadarr5xSjtsS0sIuAmSgILHFdmUrl1xuKn7n9dZz0K3V60ei7CmRx/Wnf6YZHeqgVzI oZbNd8LroogbCqZliUWfcG3TYCdAwm0jUspKDgIJ3sftK0h8wpzLTgQ5Yxoq/P+M3EfK mJ4ijOxZoRavxRT2l/tX+OCZaCxaBnzSRVPn/P9zuajsFupqQ9UcOpW3uHjQFB0SwANm /Sn5CkOtZvbKk22HsasNO7IO9w6p22soGYrN0EFOeRMdLyKpYzQFtotmcHcfqTbedu0d nijA== 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=b08Rf/FABW/9WE24ni3DmLP4LEuNEIR+jEj9xBERB+GMnfVaTePDZuXyW9VGW9wVPO 4AUQ51yq3KzetOBH5tsjK37eMJ0pzfpiOp/E0SUV84FseUp9Lh/EiWtoRnsGM/sOnueQ MGnPtzLASjXcAcD3bZPh5WMVkcskW8uz41r6CbTcnrb/XJ/IjTNhlvooLGnfv/xsxUOD DCCXW9qWSiONmgeIBp6DA7tzeqQAHv6Sj8toLiSm1n/pyqBSD1X7J4FrBuNtQ/fLSzpm ZfBcgXZP4Et7netPesF1PTQ71x1HcD7/uu2Kg04dXtcsaG/lMpbYghCAMX8gyicbS5ee P+tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OCdndTmh; 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 a28si1164143eda.163.2018.04.02.15.50.11; Mon, 02 Apr 2018 15:50:11 -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=OCdndTmh; 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 3C2FDC21EE4; Mon, 2 Apr 2018 22:47:10 +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_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 2783EC21EF2; Mon, 2 Apr 2018 22:44:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5D3E6C21F1B; Mon, 2 Apr 2018 22:42:39 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id BDEBBC21E85 for <u-boot@lists.denx.de>; Mon, 2 Apr 2018 22:42:35 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id t67so9088985wmt.0 for <u-boot@lists.denx.de>; Mon, 02 Apr 2018 15:42:35 -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=OCdndTmhn8YPSm9TAjTDqYe0p054u2EA0VdrpyIjUubLJQHFWvrB8kp+q9CS1FPPHa x58lWsksO58YnNAU1pwyeBqjcQPnCZHJyvUu1GN8lQTfwQuSsQfgDqOrwP8YTDQ81Js8 tWwpXur++M3ajhg6ruc/KsvIV8MV5jRKP62FE= 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=joUms73z0/IjzEsrXDklVcgs+RYYrnvSErcST4mRsuYbq0gUAeJtUvLOnjqX3iJ1sh NJlAWPsHIUwXbEdktoYfX8qkgVyMxT5vtog11igVz2YSJYbYdVRCtHROOgALeNQdAZA5 Gx+kZxmOLq5IDnYlaNtBvRqOVM/wJwRXKPeKnvf30I79s1vNEblPChIOcNK16DCtJ+yR 2RJSS9TlZHVpB/Ag+yoa5sN+ZcpmauOvo9JXLNAWowtfoSfmssBckW2VSAKGpsGzATiI egjC5o1+6dIrNEfVSksZYCp62Fpd0vElJHnuNBWxrbvzt2/5unn0r0zQNYDHJEdkmW0W CBpA== X-Gm-Message-State: AElRT7HEY8m6VvHyfC17fK8g+mc4rm+lL6I9PCJ0CRp/3WwajGK9D5gQ YiLv+SIx5xYs57t5DSwYOqvSJA5IKbE= X-Received: by 10.80.184.225 with SMTP id l88mr13972491ede.209.1522708954564; Mon, 02 Apr 2018 15:42:34 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id s8sm842086edk.76.2018.04.02.15.42.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Apr 2018 15:42:33 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Mon, 2 Apr 2018 23:42:14 +0100 Message-Id: <1522708936-7603-16-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522708936-7603-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 v2 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(+)