Message ID | 1515760819-15116-12-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Accepted |
Commit | 04099e9ced6421940248d5357786901bb89f4ce4 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2018825qgn; Fri, 12 Jan 2018 04:47:09 -0800 (PST) X-Google-Smtp-Source: ACJfBovLm4+ova1VlJM8dS87nBj86ZT+SgIKQ0bmiy2mpYxfgapQeaG33bXtZLSA5Dll0/GCylaS X-Received: by 10.80.167.161 with SMTP id i30mr35383789edc.26.1515761229154; Fri, 12 Jan 2018 04:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515761229; cv=none; d=google.com; s=arc-20160816; b=v8aqg19RklBGDjPgWjlRiFZLaaABHPhsklioHUDA6qrnn6lOvsdQaboLWZaLdyN44J zBEQoW12d0q1DmNBvlaXoQc9Nwm6wRk/W5jBvjLduuaS29Rp3H/FTpWfaay1hxBzLUuF AUmFRv+vtFCFgAKqV1gzYz3CmQgccmLBdutWbfc3yg71ayuIDlh2JXASE9d17qFpnpQa P/tze0SU5PodIOjy9Qqi9Ef4zApfsg4KBxyhQFe7GioxAvC/0LsJJaiL/u6+7m/EpWOc riKDYPeie/qR1z7gZWRg0nATp8Yvnd/277QX0mnQYsO2tdd6tGlHqOG2EYHAIFt7fB2Z wrBA== 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=1e4SC/YscwEJQhhC69OQ3QxrJCQ7Mzhlpb0lF4FaElE=; b=K0MjWpmvpjrVNQvrZnMSUxl2/2+JzXqe83gjRYGUKfVd+O3p6lYjhrd8kP8ZXGqo9Q TrKaky1ZV8oQvb/H8y9DYRSAJEjixj3I1JyqbK8qTxhidqrJ6XYSQ1DXEr5PYgdYvJbM qdyNGQ2AMNku2k4eba+DkjG7OB5ouOualilzzLcaAcR/k6KWVCsmUoFZUtx6HkaTqhdD jzYMdC7eqPJAujP45gHGm9j0N60Ap8aszLh7UKBopgrioTgJX9VDkuhbQDdkxlNyhl2L KoQt05bobDJvzZWHZtDBY237y40Z3ABiFmV/zeUmCnJWGin9IsaHpekqQO+wlevWbE5r u8mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fkNZRV5r; 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 g21si8357833edh.544.2018.01.12.04.47.08; Fri, 12 Jan 2018 04:47:09 -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=fkNZRV5r; 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 BE548C22193; Fri, 12 Jan 2018 12:42:55 +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 B0A78C221D1; Fri, 12 Jan 2018 12:40:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EBD0DC221D9; Fri, 12 Jan 2018 12:40:40 +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 1A5C2C22186 for <u-boot@lists.denx.de>; Fri, 12 Jan 2018 12:40:37 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 81so2226911wmb.1 for <u-boot@lists.denx.de>; Fri, 12 Jan 2018 04:40:37 -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=pzZNs5mDpoh1R9RVKRDzhFbnnduJwpCQ0tmJJUroTDc=; b=fkNZRV5rGhr6u6Hvj8ZsU/azH39fK3NcYv9YuRadEX2k9l69JyxJW6hI6nZfBDJgz2 8Ct4QnXrZV8BgF5aoccQgLuEHlPCQmcNPCeKeLoLuoqeC526pc/wFROgjHzAvI2b3hh2 Fld0kbBZvnmaFMzm1JS8fzwaIZICVbTwOSLd0= 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=pzZNs5mDpoh1R9RVKRDzhFbnnduJwpCQ0tmJJUroTDc=; b=UtB6mBR2q6sftaMLYTwNQ8nmcWai3dU+T/wWjXc7+f5OVjsb/WxfiPHJ4J/jNcMgzP +BYGAMEKmrLnVd30iQo2yWoYSYkTUKeuSbdBwQbkbfMQ9djHW4vHp+NHBibxBbLlY1MZ Nbf0hJeUq8RZAbWkDXHLrHgwjMOybGasJKRx0doryJ3viGpwRVpgsXDKkguMGWntoID1 2NQISCkmr5J/P3XcQ3qwRYkapm3XSuOMGYVRkL7i5xPPg+Bqn2yz/+z16v/RIGTqfUgt +GMt/83FsWNyGfo2XHmzb4of27iAFGq2R0DVFxzeKdeoCRHRK9GGmZOTepRSy3BQOIB+ VLkg== X-Gm-Message-State: AKwxytcYDt8WNLZ3r08A4fcdqBfvVs4qo65++zpTWPW2eegzf18qwS/+ y8ddpzX5hiPgJ3/lQvY9229Y9s4+bds= X-Received: by 10.80.135.205 with SMTP id 13mr6822230edz.253.1515760836424; Fri, 12 Jan 2018 04:40:36 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id w2sm13893585edb.4.2018.01.12.04.40.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jan 2018 04:40:35 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Fri, 12 Jan 2018 12:40:05 +0000 Message-Id: <1515760819-15116-12-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515760819-15116-1-git-send-email-bryan.odonoghue@linaro.org> References: <1515760819-15116-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v6 11/25] arm: imx: hab: Only call ROM once headers are verified 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 39f8f2d..a8e3e79 100644 --- a/arch/arm/mach-imx/hab.c +++ b/arch/arm/mach-imx/hab.c @@ -436,11 +436,6 @@ int authenticate_image(uint32_t ddr_start, uint32_t image_size, hab_caam_clock_enable(1); - if (hab_rvt_entry() != HAB_SUCCESS) { - puts("hab entry function fail\n"); - goto hab_caam_clock_disable; - } - /* Calculate IVT address header */ ivt_addr = ddr_start + ivt_offset; ivt = (struct ivt *)ivt_addr; @@ -459,6 +454,12 @@ int authenticate_image(uint32_t ddr_start, uint32_t image_size, start = ddr_start; bytes = image_size; + + if (hab_rvt_entry() != HAB_SUCCESS) { + puts("hab entry function fail\n"); + goto hab_caam_clock_disable; + } + #ifdef DEBUG printf("\nivt_offset = 0x%x, ivt addr = 0x%x\n", ivt_offset, ivt_addr); puts("Dumping IVT\n");