Message ID | 1514596142-22050-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 90csp5322291qgn; Fri, 29 Dec 2017 17:21:34 -0800 (PST) X-Google-Smtp-Source: ACJfBovrSKNg+hZcVOqi4Py2h/UD6xbfDrhTictvG2GvYrn7ZOWK2bramT2RtwWjLJzquvLjPODH X-Received: by 10.80.148.124 with SMTP id q57mr48153146eda.300.1514596894276; Fri, 29 Dec 2017 17:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514596894; cv=none; d=google.com; s=arc-20160816; b=HXvQ6hplAFVoltdYr+o3zaNZjD3P/xnOCbUu1biOSqXUSJ/+UhB+yoJbGxQjqeImTE e9k2N9wouUdK482DCorLlfxuh75Ah1SPGyLREFl7DGgG/6U4o8DIToKg95qrNTEc6fC7 XHXkk7tGM1Akcyc3ywGh8e1kj0ZQQXAI02s/Do8k+ZOo6tLdO0tClNjvafgpFq1N0Br4 JZFl4GqIYnUbwAOyMLQwu6MLCwdIHrY3uC9xlHJQzgFUTZc+EGP7l/pOTrj2rrXsOWsf mNjjKiKXrLnR8EAOORVUpOEQVCOaEl+7UYOiQ3MBUwK/9/+Ap5UpyQUbohW2Ikb4opz0 skZQ== 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=hfQHBAjCWlnoxK4of1T4qhFP5plFBrUSUC5WyV2NPhGj2C9jp0STCDz8Rxw03d7P91 m79mCTQC3qNZAa8ehOFcHwsC7znSvIhBvz6l68cD7zXa/0D+4VINa9Qi+j4KfT4XTAhV DQ4fYvs70dZQIRgSzJHFy3545GQ2jDYDD8DkiK9XuZXDsddkuBeAwncw2ynHfKbjhais +enMeA2ECwtvMXsy//NF/6MsGf51rvfpCe5375/1gRnFJTZEverz5U5mrbS/C8r4blA3 sYlcuufM6psXIIXxhDPMY+Pr8+7XIZaVsB6OCWh/eqYnJLVZpXMme45lMe+AveuD3Ns1 6gVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=K4i+hHxR; 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 u16si5390210edb.197.2017.12.29.17.21.34; Fri, 29 Dec 2017 17:21:34 -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=K4i+hHxR; 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 E2C46C21E48; Sat, 30 Dec 2017 01:13:52 +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 BCEEAC21E40; Sat, 30 Dec 2017 01:10:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EFBC3C21DED; Sat, 30 Dec 2017 01:09:23 +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 6B379C21E09 for <u-boot@lists.denx.de>; Sat, 30 Dec 2017 01:09:19 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id b76so50406160wmg.1 for <u-boot@lists.denx.de>; Fri, 29 Dec 2017 17:09:19 -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=K4i+hHxRyOQQbaO7weLDzO7h3F86N3MpkansVAQsTOwj1bAveMhN+4qFnPXltimOA0 4PsRuqWHERL23u6gothoa6RJZtncC8fW8UTtgrwwfC10+v6VgH7ICqFBW2+7Z31UISJi rjyTGFARLTrCcjwuPrYf1QnwvI/l0OlvvUS3c= 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=S+9E4hQUq44B/l2bPPaxW+L24qjzcGUxhkPnrV2e3FAKSotSDTwS6uk1vidM1qGCqE 8doYmeRiQr/BENx43gNjG6MuQVdS7bpI/IxbUMaGsOPlLj+Ie0VV5UGC00ibpgqW+/6+ E3fNwgwAKN1JEZU0kjbuyqAh1/kBUojPuZ3Z75AElS6Wd/msssZ4XjOAlj6NSQpjckk7 9cTjvuds1DN1yaI8XQT+e4ZkhemBQ5aN0VvWfj3x5gusV81hFbFw2X34cYor2ku8LpcE JXWdI01xISE5n0ZIn58anPUpOWl7HThipHh/7t62lL0qJDennIWfVcl1VbGweR+iATuY gv1A== X-Gm-Message-State: AKGB3mKalzBH19vPDe1iTHXvftI6LssSF/ES/KtUcQ0+jtS0HfdNU4Hv ObAJJl0m7IIziN85Qf+4aYem5HlqI1U= X-Received: by 10.80.177.1 with SMTP id k1mr47419463edd.41.1514596158865; Fri, 29 Dec 2017 17:09:18 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id f9sm26484148edm.83.2017.12.29.17.09.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 17:09:18 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Sat, 30 Dec 2017 01:08:42 +0000 Message-Id: <1514596142-22050-14-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514596142-22050-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514596142-22050-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v3 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(-)