Message ID | 1502147786-8269-2-git-send-email-york.sun@nxp.com |
---|---|
State | Superseded |
Delegated to: | York Sun |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xRD2y4K6qz9s72 for <incoming@patchwork.ozlabs.org>; Tue, 8 Aug 2017 09:17:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 3EFCAC21E9D; Mon, 7 Aug 2017 23:17:02 +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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS 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 54009C21E53; Mon, 7 Aug 2017 23:16:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BF587C21D58; Mon, 7 Aug 2017 23:16:43 +0000 (UTC) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0088.outbound.protection.outlook.com [104.47.34.88]) by lists.denx.de (Postfix) with ESMTPS id 03140C21D76 for <u-boot@lists.denx.de>; Mon, 7 Aug 2017 23:16:43 +0000 (UTC) Received: from BN6PR03CA0071.namprd03.prod.outlook.com (10.173.137.33) by CY1PR0301MB0905.namprd03.prod.outlook.com (10.160.165.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Mon, 7 Aug 2017 23:16:40 +0000 Received: from BY2FFO11FD043.protection.gbl (2a01:111:f400:7c0c::113) by BN6PR03CA0071.outlook.office365.com (2603:10b6:404:4c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16 via Frontend Transport; Mon, 7 Aug 2017 23:16:39 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD043.mail.protection.outlook.com (10.1.14.228) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1304.16 via Frontend Transport; Mon, 7 Aug 2017 23:16:39 +0000 Received: from oslab-l16.am.freescale.net ([10.214.84.13]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v77NGXMm009887; Mon, 7 Aug 2017 16:16:38 -0700 From: York Sun <york.sun@nxp.com> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 7 Aug 2017 16:16:22 -0700 Message-ID: <1502147786-8269-2-git-send-email-york.sun@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502147786-8269-1-git-send-email-york.sun@nxp.com> References: <1502147786-8269-1-git-send-email-york.sun@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131466213997373047; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39450400003)(39400400002)(39410400002)(39840400002)(39380400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(5660300001)(77096006)(50986999)(86362001)(36756003)(76176999)(498600001)(4326008)(2906002)(5003940100001)(106466001)(68736007)(189998001)(6916009)(2950100002)(626005)(97736004)(6666003)(104016004)(8936002)(85426001)(50226002)(8656003)(81156014)(8676002)(81166006)(33646002)(53936002)(356003)(54906002)(38730400002)(110136004)(105606002)(305945005)(48376002)(50466002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0905; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2FFO11FD043; 1:GC54oXOWoW6fA71BGn+781Ry1YlX2OGE/kIMtRRNWT?= =?us-ascii?Q?NXB4C0Fk5GRKhOhFMqWFHFvGl+hirTHpJhzuEbj2AZqukT70AELGx+drvRWX?= =?us-ascii?Q?bwnD2JhXct4yBENniXplgYPEhYnk+Bz+MGNaj72Q1sUpLS1V6FbfKf16Khms?= =?us-ascii?Q?Q0l6vvghQyjV/Q7di5O2ipGJ36zohEjTQ2VALaPyfbDQvPiqeozYNICEIvv5?= =?us-ascii?Q?p4itYq0b9DV0yCKG9UYQB59dlVbfOqrJPzwPI5SIoaHh8VdcPwlZEgtrrymG?= =?us-ascii?Q?JjUJmhvSkVw1sOiWX0QUybOaFpxT71DS9ONm/64IGWNHD1kN+9oHpmcmUK3v?= =?us-ascii?Q?BTif+Od9y4b+k0+uvow+j7VnDhvQ2u6oDiWj7CZovtprIiUX90t6NHg1bZUF?= =?us-ascii?Q?jbpe+4QMyQOWXIM3vSfNS3UTPG3aO28t8rChHDYH5sgP9vGVdf7DJq4WorKT?= =?us-ascii?Q?DRQp4ZhdlrneS6JHpBMg3m4hXCw+rwXf451kLW4vTBDnKX5peuL2rR71uJOe?= =?us-ascii?Q?HU6Rkn0y0Wo1pvgNvvMe7kYgbFWWBDRcb2jyTxS/T706JqKVfVY3bRZBQjUs?= =?us-ascii?Q?iczcFS8Tj9b5Ic/Vj/XDDwACEngdN2tV6p7vS+I1ZuqYZKTM5gTAYq1QMuP5?= =?us-ascii?Q?AISw2XOjsbfl5a30K/Nx6ODccdXQyl5k4s7NYXSICPzQVrNM/ItbxKHUSwKT?= =?us-ascii?Q?OPmwqcZUgFuczQEgdD5HP1mVvxEHuOF+CjPakga3pn2AzTZC+8FwnR+rJB1k?= =?us-ascii?Q?kiJXB7akA0I8mvzQ0JjL+jOW91+yMfao1jV9XtVius669mA50BzmzFIM48Ak?= =?us-ascii?Q?BXxXnLM9PAskS46gRP6FRYhT8dYHphINjPIIa5ysVaixoIRN65hCDy+Zzb3B?= =?us-ascii?Q?OY/CJpYLFwxArvLZjYfpl65holpIdFmACLoPFr2ebwalh1Q2dDoGkw768n5f?= =?us-ascii?Q?wbK8onXU2DumX9lueazs7B+DQypWhjkdZd+eUZ2T1Z/vhx03AYqsIl2FKNI/?= =?us-ascii?Q?c=3D?= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d306d576-4cf3-4875-5b6f-08d4ddea5bab X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR0301MB0905; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0905; 3:ISHyzRm7p+UvGocE2qlXjY1MIpohj8+/hL2Y1nqtli3l7xBJuoyRWumKGxku/Y+f9zkIWn6LxDCzalqFjMoGXqkBDOmYgopguhhVV+EYPR3XNksxKtsX1tq5SDPH7g0JpOpIkDIUkMImCiSj7qgszpPN0dRn6Utxc8Y/GnzbMw57U19NSgHHRFF7oX9f++laCqrPaC4plc/seT9eUSEup72s8gZeESTrfpYTZCQmXTv2wLU8RgY7PbNBy+AsRduw15XFp+H/3zMs1jk48ajOJtIAvB480eFuIFG8Q7p/MswUfZOLf9umcXokHos7ZzREBilSq1gP/XdQEQij6CcwoH1aXhhIO8bL18vX6heYM4g=; 25:jTeGgmkRoOwEYdDiVaMca6Bv/SLsFTBQAVF4yg5eS/OB6/P86Iok9obRTYomeGxXbGtGH3YLHZTmR9jp2nF/13YA0SYHONyIhmAv3aFfzSyTRLNhOJ096i/eZNc+eR4FELjqI6vwjH+TPq98jkCumesiVjlQhS6X4N+Uurc1MsD+IMzH3wGBwwYnF6DWaEYCBIuKwDwZR6gv7WLLpgTf77QeG0zuNPvYZw0iqae3irfiXCGXftQ/GWGOiD2CJPR22P0kAV9UBCmhxK+MK8cJw8lXkhKy5W+Ll/wpS6i06RHi+eAc0+WGy5LPFZ6Nl9uhLzc3sy+NBTPlntyC5cOJBA== X-MS-TrafficTypeDiagnostic: CY1PR0301MB0905: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0905; 31:qrZ8j4jDaynkwTYytef7T3EkO2te1XCVwSXj8/r27o/FjZjRJRRePaPauQRu+wZ6TfmZpvRdeTSSkzfGbLV7viy+Ho+Kbpl0JlCzcwI53ZxXn7O0vUx5SmYftTJEhRdQ5nGlKc8t6qhuqtSulgKzvk048ucD2k5ZgLdZ2WDrLUIngAfkMFLXD4lugsDRi1n6rrQMRKTf24xDRNndkmdwAj3e5RBbpaVYAnSHn5OimM4=; 4:zsDp5bDmfnprmJb8yeDDhb8HEn/4rw1sbFayT7gduyDGfno7XCAH994eXsbL32ij572jekaleDSCWnTdOr9WSz4R7K6obJDLoKGVCT7aKgpyVJjayGFOvLgkwWP3gZfh3HFZFcg/WypTE4UPiCuTrP+JqP9W4UZ+Br31YpUUo8cxVgfnVJ9DwaQiyh62KNG8uHgWbl6ajZfsyQuTPRS1d7eXQziJdVCAL5ggLlFAdM+XB45H0RR0s/cx60/ubT0sCsJUMI1Um0o95mtKPrJ6q2AhAv81hib7GsgMsKi2jAU= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <CY1PR0301MB09052849489FD480A6308BA29AB50@CY1PR0301MB0905.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13016025)(5005006)(8121501046)(13018025)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123561025)(20161123565025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0301MB0905; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0301MB0905; X-Forefront-PRVS: 0392679D18 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0905; 23:XXsLOlAuMwiCm+aZp33RWFu2cbegr61cuCB9Lnq?= =?us-ascii?Q?wZ41dfJ13GUAeRZ8+4FVsQmlz8b35qHb99rktXgimVLe4H/5k6dsmsXCUgJQ?= =?us-ascii?Q?PGrlVnjcpIL1QLwSpauYreKUCa8ejlF86zvZccLIofLgIXyZi/QDIgAFiPFC?= =?us-ascii?Q?PbNRUuaJyhTYoTd9reaEYyAu0y+vwYJ7oVOPerJeGRyUnK9SNDrA7WXKgDjS?= =?us-ascii?Q?CTiEOvXxXyrQ1mbALpOnPjnE6f2eHVmvKI8sS8GWG//F7VGFlk18qI/VqhDM?= =?us-ascii?Q?3tmUxLT0E6Nc/lZUwCwFaQwyShme8Ee+PHSDxDXFRm1wxyQpOCWjwD82KXmr?= =?us-ascii?Q?F35sr2homLcJ3oniR1PI8Ah8CL5zoTQFg9qOQTjkuv0CzZ5p+TNGzYsfqEcp?= =?us-ascii?Q?hv1fNjMrTKYZsFB6RiPv4VTTaZXWg9RcsR0fWl89I0TaMv/eSRiSa+UrwzUY?= =?us-ascii?Q?6lx9QrB0QsxPCNWnCIX8ak+m7NVpf1IN1XrwiGoaIMi3HLke13obTANviDeT?= =?us-ascii?Q?sd24EFzeNC9Y+dvjgT4U/2RHZpc00flO1rpCOdoU0vsn8XOHgzKL4DaB3c15?= =?us-ascii?Q?9UzoSbYcDvm7xwpNYcLE9FwsCABpBhAsTylw5yJdZ0iZrrp9VkyfWNlHEedh?= =?us-ascii?Q?JLKk+Y/ggssjoq5Rr55EQcjbVQRg4Vi0VHcxLpIu7VraexhsmAeuLlQ5xtD0?= =?us-ascii?Q?X6UCPcx+IrM/8phL2CmXh6ISaemoGm4e/PNayDbHVNOav4wZ9flb49mc5Hw+?= =?us-ascii?Q?Y493eGy14uDujJQIax7tf8ILWo/qCx4ilziNTXH+L/b2IznEDrjKYkezg1gg?= =?us-ascii?Q?9BcY9VhdG1nKNDXU6ICvIq8LVgxE8UWE6qaj+mMdhqLBCb1AN0GSvz/7+sIM?= =?us-ascii?Q?yJ3xTucgrgWJCbboU9BvpIi2rq8IyZUIAPiqSJf5j2NP++Fr/PHeis198Hbh?= =?us-ascii?Q?iFeq4jQ/AmDD7s3488gg9GSODUTo8bRkw64GS/lhT3IcwrFzTW9P79tAchcu?= =?us-ascii?Q?4UZdqZvEj/abUQ8lcsbIxB8GR5tlga8eYwUPQrx5Xg7Agk6BrP27DdAEEPAm?= =?us-ascii?Q?DEZroPV0a///38IpAilq+EpqCQWjx1k7+j9zfNG4iEdcfMj4O3bAQA7F85gk?= =?us-ascii?Q?nVWueXu/1pJDonH+OZDkrm9OOZXKwOeokOpQhJyi6SU+PYuM70s38qDzaatI?= =?us-ascii?Q?jB3i43UNVxX1M//IZ6+qXjceZOceXnDzdYVqul2M2yBJ7i6WIqHfHEes0Ly8?= =?us-ascii?Q?NwIqklfHZXNm9BoeSBko=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0905; 6:xaJsgLM5Sf6mVCDSCZBuFTiKymy8SlkfpleUWQUB5Iii8ZJNYpJjHrKx/TQjhVIam0lHjMwQaw8AS7Of2OQwvMK6hflsB1WWnRLeg92ke39wBHpYib3KFgGsGlATl1kiPFsom0T10t1AuT+j/Cr+jEBw7yyBLkiSidCiw3k6RZDsWCAr40eJutDogJeZYrKh9INwvKi1kgP5tdnhlFZaObCofjwKGek69EhUM8Jh9WbvCswu7u49a0VivXh8z1GIN8Mt4tzXFPVguidL5ZuuhcH/EN40GknVJkWANR1GXqCsbWyYoJ+yrH5L2KydaFSS8e8jyId1os7SBK5FIDDvlw==; 5:VtK5zPppDjsDRSixhB8Ck9IJFAHczBPRubg8iEVRmpEN0ClY9pBVFd/5ge78/GlTglxIrHtYh4b4FJ3TLoeU0MkfhweXqixZXdPwgoNkVAuzilep3/JrMyZls7p9y5DDIhoN7PfAN/HhPrknftSm/Q==; 24:CwbTTv9a+1NRJWZrgGOzaEl+gF8kAW0YoRF0OjoTGAZsN1t/juhSlc/UWPTCY9mj7M2Lfk2A3XpsdBzHLA5eX6xVXYyLeuoH8DGwoTI4JfQ=; 7:dB2WGpRRltboPvsRmqvubOGLs0Twj57GnBRsX/lmIaHT899aSsjk+p1VChpQ7ulHHWhv7UnoSAjdZLhC+gUjH70QRAMOwu06OuhoXaLE5ViNJV/EZkHmPv6GEsMuS8HUzS96kYWTH98vqot70xa6fmqMIPSVhRzmxocpuPRbja1ZkJES+5t8X55cBADElkMTRMtcmmgYClluaA/g6i1DK+RZlqS/laMctOtDnlYshbc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2017 23:16:39.4253 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0905 Cc: Andre Przywara <andre.przywara@arm.com>, Alison Wang <alison.wang@nxp.com>, yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn> Subject: [U-Boot] [PATCH v2 1/5] tools: pblimage: Fix address calculation 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> 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> |
diff --git a/tools/pblimage.c b/tools/pblimage.c index ffc3268..d25a733 100644 --- a/tools/pblimage.c +++ b/tools/pblimage.c @@ -293,7 +293,7 @@ int pblimage_check_params(struct image_tool_params *params) pbi_crc_cmd2 = 0; pbl_cmd_initaddr = params->addr & PBL_ADDR_24BIT_MASK; pbl_cmd_initaddr |= PBL_ACS_CONT_CMD; - pbl_cmd_initaddr |= uboot_size; + pbl_cmd_initaddr += uboot_size; pbl_end_cmd[0] = 0x09610000; pbl_end_cmd[1] = 0x00000000; pbl_end_cmd[2] = 0x096100c0;
The image size should be added to the initial pbl command, not bit "ORed". Signed-off-by: York Sun <york.sun@nxp.com> --- Changes in v2: None tools/pblimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)