Message ID | 1502820885-10346-2-git-send-email-york.sun@nxp.com |
---|---|
State | Accepted |
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 3xX0z32l21z9s7h for <incoming@patchwork.ozlabs.org>; Wed, 16 Aug 2017 04:15:59 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 22992C21DD9; Tue, 15 Aug 2017 18:15:35 +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_H3, RCVD_IN_MSPIKE_WL, 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 C99FEC21DBF; Tue, 15 Aug 2017 18:15:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D7F9AC21D99; Tue, 15 Aug 2017 18:15:14 +0000 (UTC) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0047.outbound.protection.outlook.com [104.47.32.47]) by lists.denx.de (Postfix) with ESMTPS id F3348C21D7A for <u-boot@lists.denx.de>; Tue, 15 Aug 2017 18:15:13 +0000 (UTC) Received: from CY1PR03CA0029.namprd03.prod.outlook.com (10.174.128.39) by BN6PR03MB3313.namprd03.prod.outlook.com (10.174.233.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21; Tue, 15 Aug 2017 18:15:11 +0000 Received: from BN1AFFO11FD033.protection.gbl (2a01:111:f400:7c10::156) by CY1PR03CA0029.outlook.office365.com (2603:10b6:600::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21 via Frontend Transport; Tue, 15 Aug 2017 18:15:11 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD033.mail.protection.outlook.com (10.58.52.246) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1304.16 via Frontend Transport; Tue, 15 Aug 2017 18:15:07 +0000 Received: from oslab-l16.am.freescale.net ([10.214.86.70]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v7FIEnNV015332; Tue, 15 Aug 2017 11:15:02 -0700 From: York Sun <york.sun@nxp.com> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Tue, 15 Aug 2017 11:14:41 -0700 Message-ID: <1502820885-10346-2-git-send-email-york.sun@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502820885-10346-1-git-send-email-york.sun@nxp.com> References: <1502820885-10346-1-git-send-email-york.sun@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131472945101094873; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(36756003)(53936002)(305945005)(498600001)(86362001)(6666003)(110136004)(50986999)(626005)(6916009)(68736007)(69596002)(77096006)(8936002)(33646002)(4326008)(5660300001)(105606002)(106466001)(76176999)(8656003)(85426001)(81156014)(50226002)(81166006)(48376002)(189998001)(2906002)(54906002)(8676002)(47776003)(2950100002)(97736004)(104016004)(356003)(5003940100001)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB3313; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1AFFO11FD033; 1:4YBimfE3+T/ZwoGNlAPQc35peIJxq5B9WBELWKRfh?= =?us-ascii?Q?Al8DPj/v2xmAQ7IJNgaBeNFfDHKSkja4gO77Dl81NcOU2pq+gReR5ogkJP+X?= =?us-ascii?Q?G3fEHrefRWs9STsCqZYe0vOwa+fb8Q5iVC6ipHFyrFfgBZGl4c7uAyoO371T?= =?us-ascii?Q?M4yzl8Y7UqtaL58m9TEYYS+XedLdXKtbSsxFTPvCkWUb0t1tBkq0TlFPbzb7?= =?us-ascii?Q?hZZKt73BI220CGsiFb8jlsTrbb0JVLmrIeU1+0PqE11mSC6MZ9ctG3R51sYq?= =?us-ascii?Q?xjF446AD9/aqRYXkw4n8ZCmuSg4qGZBy56Biw4OU69R4zc2YKadJym1ARJ0V?= =?us-ascii?Q?1shR/d2Jv8V4WWDHyCnp0nN3y1S67MrUofGAKyp1Sj8xwvOtHtMJUpnhuE5I?= =?us-ascii?Q?ak7kT3wFfmAwy7jrtyXNMd9Ty1197z3PdFAn5q/Rs1Z75smgbRZDAXTEU4zg?= =?us-ascii?Q?8EpxNReX++89LZJvSjI7BbE44TJ7I6v1EsYsDRqzxlRaxeyGitvDbXsAVobO?= =?us-ascii?Q?NdxIpajjKrgn12qYw8PbavWJbawKNS4a7rl/JcWeT/z3IIjo9YQ4PINS1ukn?= =?us-ascii?Q?Y1BUJfO9nlt/HA3NjMNvWbyDc/83z+u1wWDGalc2OULmYvVeKrUnE/lEGGw6?= =?us-ascii?Q?t0xw5udoHiSRkaZi/vQQ6ftTxmGFYCgvVDmkFwedBjS870MSLIK789mSroB7?= =?us-ascii?Q?MbCI1+0GP7jXgB2vaBHxcH7ApIBwwz5KpJq9yLLe5MQEanNamkkshZpZYnVL?= =?us-ascii?Q?sHBpPtJj+tsmbb8IJtXAT/M0bnDC7ecyW0yrUqR6m+b1HesPcFih8CBmtkQk?= =?us-ascii?Q?njqhftXPsilXIbSNaacus2htVksF2HbdZ4lgqX2p8fyfvifttMFCH6woGkp3?= =?us-ascii?Q?lhdV2u9BVMlNNRZq3AtbnTRYSTPTnH5m4QG/0lHb3QoDxLQjg5MeOmEH5PIl?= =?us-ascii?Q?36qjCf48a2l47/KDTx0LMuoDl6E1cUMqaWMZNwC1tEAg8A39fS8JbfV4j/mu?= =?us-ascii?Q?GM=3D?= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24753483-ccfb-47cf-7d15-08d4e40990c5 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:BN6PR03MB3313; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB3313; 3:ZP3UVmornuhVoebi+RxrCzq84dnStVFLgqgyBTAOs9yW61s8mrZau5hJQwpt8ieOi1A/xZsXMuQVbBRbI7cq9mh9g6XJDGGRIaygbuYucd9b8INvt2vuQJrmiwwh08/MaRa0pMLHhHbBehPnzam1VghCHk6D+Y1K03uvb3IDDisQ53/cYjOk6VX2qySMfhx8RzlNvY4eIm3ebHM4h60Wq20WoagZCK/a2Rp9q2DGOL/OicTtcP2Q+09qQK/ibK/jBMYBpQzk6lvnIhFLcVop91atq8DquxwpVEYN/lONuLYy8wilYpuhUXCMDdqn8+9V6kurR8th9li69yDzcbW1po2ygbV/XjW36FI5Mk4e4+4=; 25:5xoI+hMClxQ3YkWZdYP9uj0JxxqfyRTLnY7ZSmeh38E4+vxcXpZb0UMEHxvlZZSXJr6e1AJsVtjh9yK6vPeo7z9QjtA9j/0RNpG7fS1wqrzmaVqgZihyWbLiPjpTAzkkzh0LAy6b+PQpnJpC2XJYm11Fa1hVUjpYHo6m6Sm+4PprNcQMJGDMKixY/yjdw0KZUTBq50GLY33KqRxmKzcv5vLANYL2UGvXpag/zx8TNt1d1K15+Oc/DZ1bB6RuHMHAwO8BiZdVmzChRreR9Q2R6umnhFyfa2wYx+WcWq6KdwoszsV2aeMfw+5Bti87JnxiriUMt93eiLlIkUiKAN5CFA== X-MS-TrafficTypeDiagnostic: BN6PR03MB3313: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB3313; 31:9ZPV4XSgCehzL8bfQr17aG/tWsVIl8p7W+bPv6BTh43osg0iQ0VeX3O1yWR0PVOLLBIrET706SM8pFf7u81zXO9vy98BFp+80N24vQaqso20FH6WRjubZflk5tLvHbh128c43lNszt0K/M6fgoKiQqaaLU8ORqbIfzoubXSS85b4s1yifhnKM/GEQDGJvFfPHM06exhXttwq3cwrH2XyXdzkkLrggGiActNflCjTtpw=; 4:0lJAW+hetuLiy9vY2uUow3LFt1PoHTD1Nn1TzkGdy4ew6gC1WLfCi95QvNQoHFhtEdfjn8bRRyogjnm5IJeDuNKNSsm3sRrrVofsM4tkHRB/AT9Q0t+08E/ZI9YrHvH57CL5ZGImeRnTArV51zyJeiEG4B/6ioy7V62G91C+NST759dd0RKSawSlFmJVvk1rB0ukhdf4baO4FB6P0GTnW+6UcLOradfkRQcGWdpK5pOW/6UMc8OU9uvt5VaIU3UEtwAfPCwSjfNIU8NdwHYf8hHnmaH0+AiZddK4BqRiQ5U= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <BN6PR03MB331399719BF1E9D4BDCB14AB9A8D0@BN6PR03MB3313.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123563025)(20161123559100)(20161123556025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB3313; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB3313; X-Forefront-PRVS: 04004D94E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB3313; 23:skdUe8emPdJFQkw1ty+WqE0QcXvKy5v4eeqKM4EoL?= =?us-ascii?Q?3vdIObMtdZCd4kgj+dHna55Z/7r9/eO+1aHHNhfpRcLP+vux4mzgZB9NeQkH?= =?us-ascii?Q?9K6aRGaA/8k8SY5xzog3v0rgPM/ps1slmXGmjS2N5+j01B3YzjusHRwkBF2d?= =?us-ascii?Q?Dmu0Zr2STrUY1GzxSVTb3/5I+e0YCDzPOtfv2FNomXEQwekRwsDaQA5Qt9XO?= =?us-ascii?Q?M01lOx9uqfQmqWdEm2cJIKCvGjbohPUANm0rv6mXDG3JjNHnFpdjp6Na4xAK?= =?us-ascii?Q?WmkbTip+R9wXrG3Wn3KPFiTipIXsH+SzjQvoAYubEAl0Fnesbxqu7u9gS66h?= =?us-ascii?Q?Qbnh6NJ6cZE9ZxnZi/4pEJL8NLPLIitVWMJgcJHrcu3lp7yvzaPY3LYPIWvC?= =?us-ascii?Q?yHuDyS7RT3tuOh8CZOmCBNCSTIjG4lX1xXvrHJ61h3O9pdqfuwh/9b4USOA3?= =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c5yQlewBzQoOeRVdMtvK7g5FOrgY5mOfAK5qmg1Ik6Nd0+MkNGOpuoOGz6c25Y2I96ldKA/j7XrPJRoTiLFZQ68igeEhsRACfPVF2HauZFE8Es0yfMHAj5bOK1NK86z2VAC6tHabV/3L+cpAnwLYpuq7lKXEkXNfQQsnQ==; 5:1c36eylUZMB3M2XbWdNnUHvRug7I1/+uOV9Rc0axb6MX7/qBCccGC+mWZapMtBl/iCw96qeUUvNRmZotIQvyrsh7+oZBSE2SvnuP49MXGuneoddTMU2wDY9rEtXz9i64WZ4YwcM0gFb4nTeLbnKOkg==; 24:OyB/IDU7qTt98xrfrOvjxXfPinRLuCXyGAG6POJxnb21lAJbQjiUyB6MyapeQMA5zur1ngoNsTeUTrisPCPjCaEgBIbZCljhm0BUEpaTU4k=; 7:FUoB9TroyObxeylRmMxWJd2hkVRQ18y+Spaha3Y2Z33Twb9kEmL3I8D6c+UJre6V521rF9a4BGGIdg96a1/94w3gDJ0pP/Sm6rIQuQP7ioxDzaum1ldXHHLrRni3XjHfZ8swOKYmN8vvoBpy02eT5YBYZIawjTQt02HP2b63Q7ylZrM3yE5ku+fCRobttLa6aaITomp0jK5gDuvUETH0lZjEBo7PqiCUClFxqrTPFt0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 18:15:07.7538 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB3313 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 v3 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> |
On 08/15/2017 11:15 AM, York Sun wrote: > 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 v3: None > Changes in v2: None > Applied to fsl-qoriq master. York
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 v3: None Changes in v2: None tools/pblimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)