From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754141AbaCZKnO (ORCPT ); Wed, 26 Mar 2014 06:43:14 -0400 Received: from [216.32.180.14] ([216.32.180.14]:13707 "EHLO va3outboundpool.messaging.microsoft.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751330AbaCZKnL convert rfc822-to-8bit (ORCPT ); Wed, 26 Mar 2014 06:43:11 -0400 X-Forefront-Antispam-Report: CIP:70.37.183.190;KIP:(null);UIP:(null);IPV:NLI;H:mail.freescale.net;RD:none;EFVD:NLI X-SpamScore: 2 X-BigFish: VS2(zzc89bh146fIzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah1fc6h1082kzzz2dh2a8h839h93fhd25he5bhf0ah1288h12a5h12a9h12bdh1354h137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19c3h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1f5fh1fe8h1ff5h209eh22d0h2336h2438h2461h2487h24ach24d7h2516h2545h255eh25cch25f6h2605h268bh1155h) Message-ID: <5332AEE7.2040402@freescale.com> Date: Wed, 26 Mar 2014 18:41:43 +0800 From: Huang Shijie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 MIME-Version: 1.0 To: =?UTF-8?B?TG90aGFyIFdhw59tYW5u?= CC: Fabio Estevam , Mark Rutland , Shawn Guo , Russell King , Pawel Moll , Arnd Bergmann , Ian Campbell , Artem Bityutskiy , , , , Rob Herring , , , Rob Landley , Kumar Gala , Brian Norris , David Woodhouse , Sascha Hauer , Shawn Guo Subject: Re: [PATCHv2 1/1] mtd: gpmi: make blockmark swapping optional References: <532BCFCC.4080205@freescale.com> <1395399017-19005-1-git-send-email-LW@KARO-electronics.de> <20140324095902.GB11377@localhost> <20140326095156.3e5585b8@ipc1.ka-ro> In-Reply-To: <20140326095156.3e5585b8@ipc1.ka-ro> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8BIT X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%0$Dn%FREESCALE.MAIL.ONMICROSOFT.COM$RO%1$TLS%0$FQDN%$TlsDn% Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2014年03月26日 16:51, Lothar Waßmann 写道: > I don't see why this should not be supported on i.MX28 (i.MX23 doesn't > do byteswapping anyway, so this wouldn't change anything for i.MX23). > The partitions used by Linux need not necessarily be accessible for the > Boot ROM code (and vice versa). But the first partition used to store the u-boot is accessible for the ROM. Please see "Figure 12-13" in the 12.12.1.12: "In order to preserve the BI (bad block information), flash updater or gang programmer applications need to swap Bad Block Information (BI) data to byte 0 of metadata area for every page before programming NAND Flash. ROM when loading firmware, copies back the value at metadata[0] to BI offset in page data. The following figure shows how the factory bad block marker is preserved." So please the imx28 should _NOT_ support this feature. thanks Huang Shijie