public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] UBI: volume auto-resize
@ 2012-05-11 22:33 Matevz Langus
  2012-05-13 17:09 ` Marek Vasut
  0 siblings, 1 reply; 8+ messages in thread
From: Matevz Langus @ 2012-05-11 22:33 UTC (permalink / raw)
  To: u-boot

Hi,

I found an interesting situation where I can not decide whether it is a bug or functionality that should not be included at all.

If I generate UBI image consisting of 3 Volumes to NAND flash on my board, U-boot  does not attach UBI to MTD. This happens only if UBI contains a volume that has auto-resize flag set.
U-boot tries to resize it but fails.

Just started fixing it, but I have a question. Is it desirable that U-boot changes something in the FS? Would it not be better if U-boot would just read things out (that is all I want, to get uImage and dtb file) and leave the rest to Linux.
(Linux handles the procedure without any issues).

Any opinion welcome.

Creating 1 MTD partitions on "nand0":
0x000000200000-0x000008000000 : "mtd=2"
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: Bad block at 0x0000011a0000
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 error: ubi_io_write: error -5 while writing 512 bytes to PEB 1003:512, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 1003
UBI: try another PEB
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 1003:512, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 1003
UBI: try another PEB
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 1003:512, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 1003
UBI: try another PEB
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 1003:512, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 1003
UBI warning: ubi_ro_mode: switch to read-only mode
UBI error: autoresize: cannot auto-resize volume 2
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -30
UBI init error 30


Best regards,
  Matevz Langus

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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11 22:33 [U-Boot] UBI: volume auto-resize Matevz Langus
2012-05-13 17:09 ` Marek Vasut
2012-05-13 17:45   ` Matevz Langus
2012-05-13 18:51     ` Marek Vasut
2012-05-15 10:19       ` Matevz Langus
2012-05-15 16:33         ` Marek Vasut
2012-05-15 17:26           ` Scott Wood
2012-05-15 17:59             ` Matevz Langus

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