From: Alexander Stein Date: Wed, 9 Feb 2011 17:10:24 +0100 Subject: [U-Boot] Can't erase or read NOR using mtd part-id In-Reply-To: <4D52B843.5010004@ftemaximal.fr> References: <4D52B843.5010004@ftemaximal.fr> Message-ID: <201102091710.25170.alexander.stein@systec-electronic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, On Wednesday 09 February 2011, 16:52:35 Alexandre Gambier wrote: > I'm using u-boot to boot a Linux-based device. Which version og u-boot are you running? > I created some MTD partitions for my NOR and NAND flashes. > > Here is the configuration: > > device nor0 , # parts = 4 > #: name size offset mask_flags > 0: U-Boot 0x00080000 0x00000000 0 > 1: Environment 0x00020000 0x00080000 0 > 2: Kernel 0x00400000 0x000a0000 0 > 3: FreeNOR 0x00360000 0x004a0000 0 > > device nand0 , # parts = 2 > #: name size offset mask_flags > 0: FS 0x02000000 0x00000000 0 > 1: FreeNAND 0x06000000 0x02000000 0 > > active partition: nor0,0 - (U-Boot) 0x00080000 @ 0x00000000 > > defaults: > mtdids : nor0=NOR,nand0=NAND > mtdparts: > mtdparts=NOR:512k(U-Boot),128k(Environment),4M(Kernel),-(FreeNOR);NAND:32M( > FS),-(FreeNAND) > > When I want to erase the U-Boot partition I can't use the command `erase > U-Boot`, the following error occurs : "incorrect device type in U-Boot". > I must use the command `erase 1:0-7`. > > Is-it normal ? Some old version also had to set CONFIG_JFFS2 to get erase & friends to accept mtdparts. HTH Alexander