public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] UBIFS fails on SheevaPlug
@ 2012-10-28 14:48 Dimax
  2012-10-28 22:54 ` Marek Vasut
  2012-10-29  6:01 ` Prafulla Wadaskar
  0 siblings, 2 replies; 33+ messages in thread
From: Dimax @ 2012-10-28 14:48 UTC (permalink / raw)
  To: u-boot

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 at 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?

Thanks.

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2012-11-12 17:15 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-28 14:48 [U-Boot] UBIFS fails on SheevaPlug Dimax
2012-10-28 22:54 ` Marek Vasut
2012-10-29  5:25   ` Dimax
2012-10-29  6:38     ` Dimax
2012-10-29  6:48       ` Andreas Bießmann
2012-10-29  6:55         ` Dimax
2012-10-29  8:38           ` Andreas Bießmann
2012-10-29  8:50             ` Dimax
2012-10-29  9:11               ` Andreas Bießmann
2012-10-29  9:27                 ` Dimax
2012-10-29  9:43                   ` Andreas Bießmann
2012-10-29 10:19                     ` Marek Vasut
2012-10-29 10:34                       ` Andreas Bießmann
2012-10-29 16:02                   ` Vikram Narayanan
2012-10-29 12:15                 ` Prafulla Wadaskar
2012-10-29 17:25                   ` Dimax
2012-10-29 18:53                     ` Vikram Narayanan
2012-10-29 19:05                       ` Dimax
2012-10-29 23:55                         ` Andreas Bießmann
2012-10-29 23:02                       ` Andreas Bießmann
2012-10-31 16:27                         ` Vikram Narayanan
2012-10-31 16:50                           ` Andreas Bießmann
2012-10-31 16:55                             ` Vikram Narayanan
2012-10-31 17:23                               ` Dimax
2012-10-31 17:56                                 ` Andreas Bießmann
2012-10-31 20:45                                   ` [U-Boot] How to enable debug information in u-boot Paulo Louro
2012-11-06  7:51                                   ` [U-Boot] UBIFS fails on SheevaPlug Dimax
2012-11-06  9:12                                     ` Andreas Bießmann
2012-11-12  5:33                                       ` Dimax
2012-11-12  8:33                                         ` Andreas Bießmann
2012-11-12 16:55                                           ` Dimax
2012-11-12 17:15                                             ` Vikram Narayanan
2012-10-29  6:01 ` Prafulla Wadaskar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox