From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0102.outbound.protection.outlook.com [157.56.111.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A84791A0030 for ; Fri, 17 Apr 2015 09:28:01 +1000 (AEST) Message-ID: <1429226861.32545.30.camel@freescale.com> Subject: Re: Old regression with MTD devices disappearing from a Kurobox HD/HG From: Scott Wood To: =?ISO-8859-1?Q?Rog=E9rio?= Brito Date: Thu, 16 Apr 2015 18:27:41 -0500 In-Reply-To: <20150416225526.GB3373@ime.usp.br> References: <20150407235812.GA3443@ime.usp.br> <1428451332.22867.490.camel@freescale.com> <20150408003638.GA5170@ime.usp.br> <1428454204.22867.497.camel@freescale.com> <20150408011300.GA6395@ime.usp.br> <1428456423.22867.501.camel@freescale.com> <20150408015649.GA11297@ime.usp.br> <20150409215418.GC22595@ime.usp.br> <1428618510.22867.548.camel@freescale.com> <20150409231250.GA23450@ime.usp.br> <20150416225526.GB3373@ime.usp.br> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2015-04-16 at 19:55 -0300, Rogério Brito wrote: > Hi, Scott and others. > > On Apr 09 2015, Rogério Brito wrote: > > On Apr 09 2015, Scott Wood wrote: > > > On Thu, 2015-04-09 at 18:54 -0300, Rogério Brito wrote: > > > > mtdparts=myflash:4096k(allflash),3072k(firmimg),448k@3072k(bootcode),64k@3520k(status),512k@3584k(conf) > > > > > > What is "myflash"? You need to match the device name that the kernel > > > uses. > > > > From the documentation that I read, it *seemed* to be an arbitrary name and, > > to be screamingly different from anything else, I just picked "myflash". > > So, in my case (see dmesg snippet below), I would use "physmap-flash.0", > > right? Or would that be "physmap-flash"? Or something else entirely? > > Is there any "proper" way for me to discover what device name the kernel > uses? I have tried the following command lines without success: > > 1 - mtdparts=myflash:4096k(allflash),3072k(firmimg),448k@3072k(bootcode),64k@3520k(status),512k@3584k(conf) > 2 - mtdparts=physmap-flash:3072k(firmimg),448k@3072k(bootcode),64k@3520k(status),512k@3584k(conf) > 3 - mtdparts=cfi_cmdset_0002:3072k(firmimg),448k@3072k(bootcode),64k@3520k(status),512k@3584k(conf) Look in sysfs. -Scott