From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751631AbaC1JC2 (ORCPT ); Fri, 28 Mar 2014 05:02:28 -0400 Received: from mail.karo-electronics.de ([81.173.242.67]:54748 "EHLO mail.karo-electronics.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750901AbaC1JCY convert rfc822-to-8bit (ORCPT ); Fri, 28 Mar 2014 05:02:24 -0400 Date: Fri, 28 Mar 2014 10:01:58 +0100 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= To: Huang Shijie Cc: Fabio Estevam , Mark Rutland , Brian Norris , Russell King , Pawel Moll , Arnd Bergmann , Ian Campbell , Artem Bityutskiy , , , , Rob Herring , , Shawn Guo , Rob Landley , Kumar Gala , Shawn Guo , David Woodhouse , Sascha Hauer , Subject: Re: [PATCHv2 1/1] mtd: gpmi: make blockmark swapping optional Message-ID: <20140328100158.042a3d68@ipc1.ka-ro> In-Reply-To: <53353524.9020605@freescale.com> References: <532BCFCC.4080205@freescale.com> <1395399017-19005-1-git-send-email-LW@KARO-electronics.de> <20140324095902.GB11377@localhost> <20140326095156.3e5585b8@ipc1.ka-ro> <5332AEE7.2040402@freescale.com> <20140326125502.0e8d0657@ipc1.ka-ro> <20140327095956.GA29623@localhost> <20140327132109.06258526@ipc1.ka-ro> <5334D9F7.2030001@freescale.com> <20140328091646.1ce03f90@ipc1.ka-ro> <53353524.9020605@freescale.com> Organization: Ka-Ro electronics GmbH X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Huang Shijie wrote: > 于 2014年03月28日 16:16, Lothar Waßmann 写道: > > Still there is no need for the Linux NAND driver to be able to read or > > write partitions in a format that the Boot ROM can understand. Thus it > If you do not use the NAND boot, there really no need to do so. > There is no need for the ROM code to access any other partition than the bootloader itself. Thus Linux can perfectly well be booted from NAND without any byte swapping. > Since you need the NAND boot, we should enable the swapping for imx28. > Why? There is no need for Linux to do any swapping when not accessing the bootloader partition. > > is perfectly legal to allow disregarding the BB marks and solely rely on > > a flash based BBT. > > > The BB mark is in the page 0 of a NAND block. But the swapping can occur > in _each_ page of > a NAND block, _NOT_ only the page 0. > > I think you are confusing at these two things. > No, I'm not confusing anything. The swapping in any other page than page 0 is completely useless. Thus, when there is no need to recognize the BB markers, there in no need to do any swapping too. Lothar Waßmann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Geschäftsführer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info@karo-electronics.de ___________________________________________________________