From patchwork Fri Mar 23 11:08:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 889912 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; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=prevasonline.onmicrosoft.com header.i=@prevasonline.onmicrosoft.com header.b="iZ45BT6L"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4071553sXzz9s0t for ; Fri, 23 Mar 2018 22:09:13 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0308EC21E47; Fri, 23 Mar 2018 11:08:41 +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=BAD_ENC_HEADER, SPF_HELO_PASS, 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 C0F95C21DD7; Fri, 23 Mar 2018 11:08:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9251DC21BE5; Fri, 23 Mar 2018 11:08:18 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0107.outbound.protection.outlook.com [104.47.2.107]) by lists.denx.de (Postfix) with ESMTPS id 35257C21C8B for ; Fri, 23 Mar 2018 11:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevasonline.onmicrosoft.com; s=selector1-prevas-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sU61JcsEgvmiNgbjtuTBCMJtOowqX6f0wYNEKPD2YSM=; b=iZ45BT6LBvIfC5bN5vVEa3n5Rqgn++c7odmN9xsb/0KD9869fL0qoymUItB2YKz2/+XT4i1hBTrXVtTS33dzdzzaOF74TBG3T2oaFNvQM5C0iPA3eZMGc//upbMi0FbVQPvOxUE/OIM5jWkG5H/+DBIgoY4Bj/tgdsn7lvQzU2E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; Received: from prevas-ravi.prevas.se (81.216.59.226) by AM5PR10MB0433.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:203:25::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Fri, 23 Mar 2018 11:08:17 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Date: Fri, 23 Mar 2018 12:08:03 +0100 Message-Id: <20180323110803.16512-2-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180323110803.16512-1-rasmus.villemoes@prevas.dk> References: <20180323110803.16512-1-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 X-Originating-IP: [81.216.59.226] X-ClientProxiedBy: HE1PR0402CA0012.eurprd04.prod.outlook.com (2603:10a6:3:d0::22) To AM5PR10MB0433.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:203:25::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9169684d-1bc1-406a-9699-08d590ae615e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR10MB0433; X-Microsoft-Exchange-Diagnostics: 1; AM5PR10MB0433; 3:z/Cgr5bEQFoJeRvT5Y0hVI9kqwv3gvBdUzlEtwv7WP6MCm6DM8iLF8Xd5/UCIVaNRrUwGqqLqTL+41ZXXWPdYG3ukQWuvGMx2IM4NRepM22/hWa0LyYFbYOxDwG2cJ/qYehO7I8XsCeTMyIFCsaO5h8t3eYXZraGAtSLClkTpNKKgdZ7xyt+IqVXN7/rDdnS/zGjDcfitB8swJDg6AwIPDOfkS7p/8CqM5hedViF0t/sgQ2LoKoKknc9JsmrL5Ti; 25:g274xB/pZYLr/Eh9345D5bE35xQYJ+u9rhQolEWoERsNdRqqeyLuxcavvdAAb8sfYVJT0JV1DAa9kPlDajomqxiZ7K81pWgn/Bt4N+vBfol2q1Y0+VE/PfFE36a2ZM7Xbg789otSMuJTelXCMKpi0IBqjdOGR4FJcymO/Crwb4sItB6hTIv0Qsd9x6YVnXDWLvXm1A0OCjY8NtfStOE6dcqErm05Q9BfXsENSVbdfoOh7tuo8XRXEVkCx0vC2GvW/q16zGKHA1ybz3MpL5fZbY7d+wqhtonoOqWIyw2P+XPSkrVX615QkXxI9PKulkaxXoHDcHOhJq6br03dKinSEw==; 31:rvvqoBY237sr+CtDxT8LDLVrsCRO0rtU9qVktALWnmYY1OprLYg5MlWZumBjomTxG9yYnfu0IHkgQyoJgcxwFXkJcLbUsg2bsHXi1iSvBgLOmk9wjZ+YnWWnj5xtyIFyQbtGaktllrqWoCCoLNJAKTgbH/yQ8j13JXrDUqi4wUZ1G5Bh+ULuxsmk8wedjg/J/p5iwbjObLn3hppH3X6+tZz1f+Kn9pGsYcXVeCNxZwE= X-MS-TrafficTypeDiagnostic: AM5PR10MB0433: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(3231221)(944501327)(52105095)(10201501046)(3002001)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM5PR10MB0433; BCL:0; PCL:0; RULEID:; SRVR:AM5PR10MB0433; X-Microsoft-Exchange-Diagnostics: 1; AM5PR10MB0433; 4:uc8sOs4okRuYYW3FKH1KrAAAYUzH1VLDogFaaX8xAEkqezkNq97P8yNVH5vkS3mZplfYTs6W32eTISJU1PXoSatyesgfsmoThB+UWHcMXa4bIyvGyWY05n+cwY53G70YCLI0MOnBjUyxgQpXIG8al2fGZ4I+t7XCe8g8K9DvYWNucZXcGphXiLtLsNLkjqp9+WDnX0niVDs+x1eZk/r9vl/+2EZT2YEdWgixtjFUYwpM/ou/eJa6pLRGiUjmNUWX3n/Z+aTFIFGPxj9zZqCYiA== X-Forefront-PRVS: 0620CADDF3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(346002)(376002)(39850400004)(39380400002)(396003)(189003)(199004)(7736002)(8936002)(107886003)(97736004)(50466002)(36756003)(2351001)(2361001)(5660300001)(50226002)(2906002)(386003)(446003)(68736007)(48376002)(6916009)(6116002)(8976002)(66066001)(3846002)(42882007)(47776003)(6666003)(305945005)(6512007)(4326008)(16526019)(74482002)(6506007)(54906003)(26005)(6486002)(53416004)(106356001)(1076002)(478600001)(16586007)(186003)(76176011)(53936002)(316002)(81156014)(81166006)(69596002)(52116002)(25786009)(8676002)(8656006)(105586002)(51416003)(11346002)(72206003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR10MB0433; H:prevas-ravi.prevas.se; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR10MB0433; 23:4qTKuih/Lov5zQGamKc9yOj7LfhcStQK4JkhxoYB2?= hKAnpHqpm9KQNH2p940MGBXNuEKJl1zJGv6/M+g1LVxzk523kBCfBT76ARh4cTJDLg3cn7/KYm5IkBDW9neBpUJw11Cw7C07GBb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qkjrMTi9wP7CwdFqPmPUlCb+q51xJ8RNw8Dr8gJmGA3ki3unG0M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR10MB0433; 7:TWOX0sq3TielXJdZ6gUhdntfuv/bznbfinzBlNBH/yGusXih8GTjiSwqedFJj5jw0XHjFWxCiUdQFvIOqqZ+1VrbS8uIyBYgFVODbTpcWIKeBdKx0rE/X5clkZL0zVWOht8eZwjF1Z38zZEgmTzy9t6lkhuR6Ynjkt8s0u0dwDKvaSwfmYnRqMEzTTK4b0CzLkhbPZ3GR1Ozdys+xo4CePf0YmefZSc9GLZmEPdTMUljQfpHHapHTwYoSjx6tmQK X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2018 11:08:17.1497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9169684d-1bc1-406a-9699-08d590ae615e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR10MB0433 Cc: Fabio Estevam Subject: [U-Boot] [PATCH 2/2] tools/imximage: use 0x prefix in HAB Blocks line 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The u-boot-ivt.img.log file contains 0x prefixes in the HAB Blocks line, while the SPL.log does not. For consistency, and to make it easier to extract and put into a .csf file for use with NXP's code signing tool, add 0x prefixes here. Signed-off-by: Rasmus Villemoes Reviewed-by: Fabio Estevam Tested-by: Breno Lima --- doc/README.mxc_hab | 14 +++++++------- tools/imximage.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/README.mxc_hab b/doc/README.mxc_hab index 75390a505e..a40ebf3e84 100644 --- a/doc/README.mxc_hab +++ b/doc/README.mxc_hab @@ -33,12 +33,12 @@ Image Ver: 2 (i.MX53/6 compatible) Data Size: 327680 Bytes = 320.00 kB = 0.31 MB Load Address: 177ff420 Entry Point: 17800000 -HAB Blocks: 177ff400 00000000 0004dc00 - ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ - | | | - | | -------- (1) - | | - | ------------------- (2) +HAB Blocks: 0x177ff400 0x00000000 0x0004dc00 + ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + | | | + | | ----- (1) + | | + | ---------------- (2) | --------------------------- (3) @@ -78,7 +78,7 @@ Example Output of the SPL (imximage) creation: Data Size: 61440 Bytes = 60.00 kB = 0.06 MB Load Address: 00907420 Entry Point: 00908000 - HAB Blocks: 00907400 00000000 0000cc00 + HAB Blocks: 0x00907400 0x00000000 0x0000cc00 Example Output of the u-boot-ivt.img (firmware_ivt) creation: Image Name: U-Boot 2016.11-rc1-31589-g2a4411 diff --git a/tools/imximage.c b/tools/imximage.c index ed9d935903..6dabb13520 100644 --- a/tools/imximage.c +++ b/tools/imximage.c @@ -516,7 +516,7 @@ static void print_hdr_v2(struct imx_header *imx_hdr) offs = (char *)&hdr_v2->data.dcd_table - (char *)hdr_v2; - printf("HAB Blocks: %08x %08x %08x\n", + printf("HAB Blocks: 0x%08x 0x%08x 0x%08x\n", (uint32_t)fhdr_v2->self, 0, hdr_v2->boot_data.size - imximage_ivt_offset - imximage_csf_size);