From patchwork Mon Jan 8 17:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 123769 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3011591qgn; Mon, 8 Jan 2018 09:42:41 -0800 (PST) X-Google-Smtp-Source: ACJfBosAqnNh96O5QoCsN+hHSUbTs2ovpg3MDcWpt5MmqOIU0CLI4P+MgxBgjAtpsHgHJZXQyRsQ X-Received: by 10.80.213.154 with SMTP id v26mr17509019edi.170.1515433361196; Mon, 08 Jan 2018 09:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515433361; cv=none; d=google.com; s=arc-20160816; b=nIa/iX1HgNdJDpxz+HnLD2g584viUGyC1sJc6mr6gmCrKsztWr/CSj3q+My2clQ9Sn kCiY9Ab+Bq0NeC9uxZupJMof27uXxpU55TDOMmLuTOsDLnK0kFaqmQWyR/VKTaBcDRl8 2HxJLrzKFnv3DFMXFKBm7VMKnm61vbUqgYbPn/67bGFnaVym0fsyBKLquZYjBJiYEUTD a8iYf8hAO2gQpEMKivCbbzF53kr7LAUDXOjx9jRDnrXJQ5F9RklX9Py3B6Ip46U198F6 k/cSnae5lPGc+rXUW1oSmPZnbedrsM7H2t45NIrlWPJXN12c1zBsEPRCdiXeeGJaaNi1 YoCA== 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=Ex9jjPdOvMueVc2ICBiWVPqKNBgc7BXKvnegujq47/o=; b=Bk/ZzzUyRnSauG2wpTxLBl9Y9tP6Y1Z8ogwtIWG3IJE7aRtRnwcq8TQXfw7PadGhCF 6t++2ShcscN692C2DtPsaH6bb2UcO6g2+e20iMG8X0QI2hDWrYfo8JKBmFtp9HkobavI yZLfUhoemWIbP2ow2V3CaJgpLl9LxfIYsDhKv/GawNYyshKyqcROr7Vdhvljo9rmNE65 2LNfp0BWTDtVFQqiuuavhKQ6dK9sBWIRLtsEfI1KXbh6tVTeV64S2C8zHa9PMM8w+9NI 9Td2qwW2Hm4QQIGGs9ekx9Aww6V/BsgS9Y3qitDL+DnVFIW+VoD6cRyrdBiPgzqSJitZ ioxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HZhjHD0x; 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: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m33si4582809ede.418.2018.01.08.09.42.40; Mon, 08 Jan 2018 09:42:41 -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=HZhjHD0x; 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 9DB58C21FCA; Mon, 8 Jan 2018 17:40:08 +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_BLOCKED, 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 9EC4AC21FC3; Mon, 8 Jan 2018 17:37:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9BC08C21FD6; Mon, 8 Jan 2018 17:37:04 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id 9A7ECC21FB0 for ; Mon, 8 Jan 2018 17:37:00 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 64so15709206wme.3 for ; Mon, 08 Jan 2018 09:37:00 -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=GW5xpnE8MJlwtaddL6aqi2WY9NSQY8NpVz9n6hXPDpk=; b=HZhjHD0xdqNAKoMxl8Dui6EmeU+7FrQZm/KdbprIA42Ef+DdMU+GowtFflBbqgVPHE uI94agZFWK8D/oF+4J/7N6QKmk3McR7bK10aXxQgg1xH3+n8rO3KZnYh3dJ3aKUBoS8g TqXqnNqepRDcBWwaPds4V1Ki6xZqFcu+VLEzM= 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=GW5xpnE8MJlwtaddL6aqi2WY9NSQY8NpVz9n6hXPDpk=; b=hIfBDfBXG83VxE++bQu9rcGYfUpzOqCzqaTxHAhezboeYFYWnZgOEfdzQMwg+Tb8GW ntE4z89eOWBi/+3AZ7aE8GsbZGMLQOp0Yp/mJ+0wjSdPvq4IRjeHYXsG77ldmcuseVVu U9U33RADRitf9fiLFjZGjsnul8ZMD8cSVaIXrRgF7pIT9LYps2mG/l4LyKio37jY9MZO 6eKCKBhpMhKT35KPoMUIs0eRe/rw7c2rR3YYT3rp5tNWq3x6AS7ocxsaqckR0WqrE17j ZtkB3XgnZ1rn+8vrcWnNekrA4pjXWVzbbtVpWFRHpIhqo069QGli43YaN+tlnmbw3TiS cmdQ== X-Gm-Message-State: AKGB3mKaXdE4jLq4Vre1bpv11ISfcQpO7uIFaG2W5LIa/Mr2XY6FJHaT dQDwqfg0Ii39FYF5J73DkUTtGQN6KFA= X-Received: by 10.80.241.217 with SMTP id y25mr17963358edl.204.1515433020033; Mon, 08 Jan 2018 09:37:00 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a38sm7160033edf.3.2018.01.08.09.36.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jan 2018 09:36:59 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Mon, 8 Jan 2018 17:36:29 +0000 Message-Id: <1515433001-13857-13-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515433001-13857-1-git-send-email-bryan.odonoghue@linaro.org> References: <1515433001-13857-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam Subject: [U-Boot] [PATCH v5 12/24] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 Cc: Stefano Babic Cc: Fabio Estevam Cc: Peng Fan Cc: Albert Aribaud Cc: Sven Ebenfeld Cc: George McCollister Cc: Breno Matheus Lima --- arch/arm/mach-imx/hab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c index a8e3e79..229c723 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();