Message ID | 1514911451-4520-14-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="CJuVv65S"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zB0Rq6VtCz9t3h for <incoming@patchwork.ozlabs.org>; Wed, 3 Jan 2018 03:50:31 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 543DEC21C4A; Tue, 2 Jan 2018 16:48:27 +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_H3, RCVD_IN_MSPIKE_WL, 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 7904CC21E44; Tue, 2 Jan 2018 16:45:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DA4D6C21E3A; Tue, 2 Jan 2018 16:44:44 +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 E948BC21C4A for <u-boot@lists.denx.de>; Tue, 2 Jan 2018 16:44:40 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id f206so61716015wmf.5 for <u-boot@lists.denx.de>; Tue, 02 Jan 2018 08:44:40 -0800 (PST) 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=S3SrDJNFoijmSNw7esnWrnUgt812fxI6TA50eaO4ryM=; b=CJuVv65S6LI0YLs42DPwDXeY6Sb/SCveXvFhaKV7PADA85QFDaenzb8e8PDHkhCI9b BNsfEBtprq7JcTm/YuEWHS4OprMeFDmaPOXq1vOxWKrKdbAvpyoYMY4xVjBBTqUG0XfD rzPPYm/zeoFTcFcys8POHxB4dY41dR7y8dn5s= 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=S3SrDJNFoijmSNw7esnWrnUgt812fxI6TA50eaO4ryM=; b=VNXQ1abtq0WH+kkuGL0epHBqygSptcq5V2dxeRNTKBNZEv5jqRdbtjjjNKLAjQB+kZ YjxtExPwYJmTEMKzXlrsrHiBrdtOuF/1WRJteoF89j1rsjOLa6UlC/UzRuFxWuMv3uKC AE5MqbeCndtWxcpuU+eOz/3zV5KQKpYMjwGYWLXvLzJlpXV/yJ5ck4VNYru+8Ay1u2A8 bqVu1V7V1zv45F0AH5/UM/BJguxShIXY7bdo15AVTY4cgtR9UwBqUE/8Qh7iHk1shO7H kaJ1HJ4NVd0NrQWqQnMRR/wWMRTleHqu2eer/DShD0OP1f0b3EXDCDE204ts7Rz3djKF 6rSQ== X-Gm-Message-State: AKGB3mJktdcdo3YxkcFEEvKBTHaRu8bT4j8aoLSMgPvY21LGy0tUw/OT EaY71yfFvD9NN0lQjab5xHXpGzOeHMs= X-Google-Smtp-Source: ACJfBotfu4oZJZ4QYtBfnLQQsqlc8rBQcn3VKHNc20x+Qk1kuyTK6e0BdOif+Ns+mMIIFXuHPomfsA== X-Received: by 10.80.149.210 with SMTP id x18mr60498180eda.4.1514911480362; Tue, 02 Jan 2018 08:44:40 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id z5sm29850584edh.76.2018.01.02.08.44.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 08:44:39 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Tue, 2 Jan 2018 16:43:59 +0000 Message-Id: <1514911451-4520-14-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514911451-4520-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514911451-4520-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v4 13/25] arm: imx: hab: Print CSF based on IVT descriptor 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 |
Fix and extend i.MX HAB layer
|
expand
|
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c index e325d1f..f9b8cb7 100644 --- a/arch/arm/mach-imx/hab.c +++ b/arch/arm/mach-imx/hab.c @@ -466,8 +466,7 @@ int authenticate_image(uint32_t ddr_start, uint32_t image_size, print_buffer(ivt_addr, (void *)(ivt_addr), 4, 0x8, 0); puts("Dumping CSF Header\n"); - print_buffer(ivt_addr + IVT_SIZE, (void *)(ivt_addr + IVT_SIZE), 4, - 0x10, 0); + print_buffer(ivt->csf, (void *)(ivt->csf), 4, 0x10, 0); #if !defined(CONFIG_SPL_BUILD) get_hab_status();
The IVT gives the absolute address of the CSF. There is no requirement for the CSF to be located adjacent to the IVT so lets use the address provided in the IVT header instead of the hard-coded fixed CSF offset currently in place. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Sven Ebenfeld <sven.ebenfeld@gmail.com> Cc: George McCollister <george.mccollister@gmail.com> Cc: Breno Matheus Lima <brenomatheus@gmail.com> --- arch/arm/mach-imx/hab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)