From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <428DDF13.8030503@netwinder.org> Date: Fri, 20 May 2005 08:58:59 -0400 From: Ralph Siemsen MIME-Version: 1.0 To: Thorsten Haas References: <1116403535.2682.7.camel@shrek> <1116489972.2647.4.camel@shrek> <428C7E60.3090908@netwinder.org> <1116573984.2737.13.camel@shrek> In-Reply-To: <1116573984.2737.13.camel@shrek> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org Subject: Re: CFI physmap - how to create partitions List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thorsten Haas wrote: > Yes, they are the same. Yes, they are consecutive in memory. Yes, I > tried that. Yes, it's now less undocumented, because my diff contains > this information :) Excellent. > Well, actually, when using physmap.c I am able to create partitions, but > there is still some trouble when using the mtd partitions: erasing and > mounting fails. > > Does someone have an idea, what I am doing wrong? > > # flash_erase /dev/mtd0 > File open error That's a bit worrysome... Not sure if it checks for this, but do you have this partition mounted at the time? Also check in /proc/devices that major 90 is in fact registered. > # flash_erase /dev/mtd4 0x0 0x40 > Erase Total 64 Units > Performing Flash Erase of length 131072 at offset 0x160000 > MTD Erase failure: Invalid argument Hmm, I always use "flash_eraseall" command myself, so I don't have to worry about the block numbers and such. But I doubt this makes any difference, your problem seems to lie elsewhere. -R