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: 856982 X-Patchwork-Delegate: sbabic@denx.de Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HZhjHD0x"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zFjTQ38vWz9s72 for ; Tue, 9 Jan 2018 04:49:46 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 192BBC21F67; 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-Google-Smtp-Source: ACJfBouc3rDPZIirpJ2M+I6jAggyW+rJryhdUSNnz3eK0EKM0eVqtQ85cLxt/Xh3YKG+PI8N8uSfUA== 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();