From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756992AbaCTKKh (ORCPT ); Thu, 20 Mar 2014 06:10:37 -0400 Received: from mail.karo-electronics.de ([81.173.242.67]:51931 "EHLO mail.karo-electronics.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752335AbaCTKKf convert rfc822-to-8bit (ORCPT ); Thu, 20 Mar 2014 06:10:35 -0400 Date: Thu, 20 Mar 2014 11:09:14 +0100 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= To: Huang Shijie Cc: , Arnd Bergmann , Artem Bityutskiy , Brian Norris , David Woodhouse , Fabio Estevam , Ian Campbell , Kumar Gala , Mark Rutland , Pawel Moll , Rob Herring , Rob Landley , Russell King , Sascha Hauer , Shawn Guo , , , , , , Subject: Re: [PATCH] mtd: gpmi: make blockmark swapping optional Message-ID: <20140320110914.731db7cf@ipc1.ka-ro> In-Reply-To: <532AB94D.1050406@freescale.com> References: <1395235406-13449-1-git-send-email-y> <532AB1A2.9010702@freescale.com> <20140320102153.7106f915@ipc1.ka-ro> <532AB94D.1050406@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月20日 17:21, Lothar Waßmann 写道: > > Hi, > > > > Huang Shijie wrote: > >> 于 2014年03月19日 21:23, y@karo-electronics.de 写道: > >>> configurable via DT. This is required for the Ka-Ro electronics > >>> platforms. > >>> > >> If you disable the swapping, you will disable the NAND boot in actually. > >> > > No. All our modules do boot from NAND and none of them does the > > swapping. > > > > > It seems the NAND boot runs well by luck. > > The ROM will do the swapping when it reads the BBT table written by the > kobs-ng (or something else?). > This can be disabled by parameter in the FCB (at least according to the i.MX6 reference Manual): |DISBBM 172 4 If 0 ROM will swap BadBlockMarkerByte with | metadata[0] after reading a page using BCH40. | If the value set is 1 then ROM will not do | swapping 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 ___________________________________________________________