[U-Boot] issue with 'ubi part'

Stefan Roese sr at denx.de
Fri Mar 4 11:00:37 CET 2011


Hi Andre,

On Wednesday 02 March 2011 16:35:09 Andre Schwarz wrote:
> actually I have an issue with the "ubi part" command.
> 
> Situation:
> 
> MPC8377 based board with 64MiB Nor- (u-boot etc.) and 1GiB Nand-Flash
> (ubi volume).
> 
> MTD devices look like this :
> 
> => mtdparts
> 
> device nor0 <NOR>, # parts = 2
>   #: name                size            offset          mask_flags
>   0: u-boot              0x00100000      0x00000000      0
>   1: FPGA                0x00200000      0x00100000      0
> 
> device nand0 <NAND>, # parts = 1
>   #: name                size            offset          mask_flags
>   0: root                0x40000000      0x00000000      0
> 
> active partition: nor0,0 - (u-boot) 0x00100000 @ 0x00000000
> 
> defaults:
> mtdids  : nor0=NOR,nand0=NAND
> mtdparts: mtdparts=NOR:1M(u-boot),2M(FPGA);NAND:-(root)
> =>
> 
> 
> Setting the ubi partition to "root" fails :
> 
> => ubi part root
> Creating 1 MTD partitions on "nand0":
> 0x000000000000-0x000040000000 : "mtd=0"
> UBI: attaching mtd2 to ubi0
> UBI error: io_init: unaligned VID header shift 2
> UBI error: ubi_init: cannot attach mtd2
> UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
> UBI init error -22
> exit not allowed from main input shell.
> =>

Did you erase the flash partition before trying to attach UBI on it?
 
Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list