> -----Original Message----- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Dimax > Sent: 28 October 2012 20:18 > To: u-boot@lists.denx.de > Subject: [U-Boot] UBIFS fails on SheevaPlug > > HI, > After power short u-boot fails to mount UBIFS and board stuck. Below > is a > trace of u-boot > > Marvell>> boot > > UBI: mtd1 is detached from ubi0 > > Creating 1 MTD partitions on "nand0": > > 0x000000500000-0x000020000000 : "mtd=2" > > UBI: attaching mtd1 to ubi0 > > UBI: physical eraseblock size: 131072 bytes (128 KiB) > > UBI: logical eraseblock size: 129024 bytes > > UBI: smallest flash I/O unit: 2048 > > UBI: sub-page size: 512 > > UBI: VID header offset: 512 (aligned 512) > > UBI: data offset: 2048 > > UBI: attached mtd1 to ubi0 > > UBI: MTD device name: "mtd=2" > > UBI: MTD device size: 507 MiB > > UBI: number of good PEBs: 4055 > > UBI: number of bad PEBs: 1 > > UBI: max. allowed volumes: 128 > > UBI: wear-leveling threshold: 4096 > > UBI: number of internal volumes: 1 > > UBI: number of user volumes: 1 > > UBI: available PEBs: 0 > > UBI: total number of reserved PEBs: 4055 > > UBI: number of PEBs reserved for bad PEB handling: 40 > > UBI: max/mean erase counter: 1/0 > > UBIFS: recovery needed > > Error reading superblock on volume 'ubi:rootfs'! > > UBIFS not mounted, use ubifs mount to mount volume first! > > UBIFS not mounted, use ubifs mount to mount volume first! > > Wrong Image Format for bootm command > > ERROR: can't get kernel image! > Marvell>> > > To recover from this situation I boot from USB stick and simply mounts > the > same UBIFS partition: > > root@debian:~# mount -t ubifs ubi0:rootfs /mnt > [ 306.205029] UBIFS: recovery needed > [ 309.341987] UBIFS: recovery completed > [ 309.345705] UBIFS: mounted UBI device 0, volume 0, name "rootfs" > [ 309.351738] UBIFS: file system size: 515192832 bytes (503118 KiB, > 491 > MiB, 3993 LEBs) > [ 309.359789] UBIFS: journal size: 25804800 bytes (25200 KiB, > 24 > MiB, 200 LEBs) > [ 309.367495] UBIFS: media format: w4/r0 (latest is w4/r0) > [ 309.373352] UBIFS: default compressor: lzo > [ 309.377479] UBIFS: reserved for root: 4952683 bytes (4836 KiB) > > As you can see mount manage to recover partition. > Is where any way to make u-boot to recover UBIFS partition as well? > What else can I do to make my system stable and survive power shorts?
Dear Dimax Thanks for reporting this issue, I am not UBIFS expert, but I will check this problem at my end. Regards... Prafulla . . . _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot