Message ID | 1514911451-4520-14-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9176281qgn; Tue, 2 Jan 2018 08:52:48 -0800 (PST) X-Google-Smtp-Source: ACJfBov7tujK1kmvMBmrx944xLTojuYITmmOQT5i8RL+XE9p4Wu/znDh1C3pm+t5Xly904qLt2Bp X-Received: by 10.80.140.176 with SMTP id q45mr65459430edq.186.1514911968720; Tue, 02 Jan 2018 08:52:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514911968; cv=none; d=google.com; s=arc-20160816; b=WkddteE2rGfgSON5fWGokuIn+L3TMorq7jgsQBiHFS9f4C1fuN2QPZfzAsr1fNlwtX pf/tYSrLVng7V6y8xW2pQ/c4rkF0yYbq2il68f0A34EYqcI5jLNBtYAh0ZzEJcvGQ0pc NsKt4gnwUnIN/tFeY3lY1+Bmz4UWDpCPbAeEGKq1XPr80G6hwSlIe2omaZ78sshMjbAB lBTpF1TvD8vHg3R2uC4wOAESm1hcpgeAtA4EM+PhLNkOgglTiBGnB2Ct7X2H7bgBWlVe Xd9n9Igl49u62DAnoYXu62Wg5Z0RmKp+UJt93/uo/Wr1NZH6neJomPrE5svgYCu9FrIv U6LQ== 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=jHtHebsiNpBRqzRYF81BeuG0MgMzhA4WgV9xEwynxzE=; b=suZAnRIEbYp9/LK2u9TIySrF8VxekvTUlfTd47nE9qxz8ospI397/BK4Z8sRRyYDbM EHBEUxuAdUvn9Eu8Uyyf1ASd11xaIQCM5F1Ek0w721PEfLsD20aVwlOT4VhCrBnXBRl8 E4YvoNWz84nJZdWjb1KJAfqNvl310GzlyCbrwKF/XoyDYo5hJLrdpeOQl8Oj9F6HIcSK ucceR2pSvrBEimWFWsXcGx6eYflQ248/eADY8ZNinJ/im/JmlHBwTLM4iKG9ol3llXFZ fcp7Wqa20g5+x6yvJBJFTM408pd7Yqbch3AKxAhXS2b/GFjAtsXXmMMVDeCFgguDloCm sgew== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CJuVv65S; 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 g54si1843325eda.26.2018.01.02.08.52.48; Tue, 02 Jan 2018 08:52:48 -0800 (PST) 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=CJuVv65S; 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 5817EC21DE6; Tue, 2 Jan 2018 16:48: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_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-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(-)