Specifications
42000020: 00000800 0001f000 0000000e 000007c0 ................
42000030: 00800000 00000000 00000005 00000002 ................
42000040: 00000001 00000001 00000008 00000100 ................
42000050: 00000004 00000001 00000000 00000000 ................
42000060: 00000000 00000000 3b9aca00 71b3e5e9 ...........;...q
42000070: fa46cc48 aabe65a2 32ec78f1 00000000 H.F..e...x.2....
42000080: 00000000 00000000 00000000 00000000 ................
42000090: 00000000 00000000 00000000 00000000 ................
420000a0: 00000000 00000000 00000000 00000000 ................
420000b0: 00000000 00000000 00000000 00000000 ................
420000c0: 00000000 00000000 00000000 00000000 ................
420000d0: 00000000 00000000 00000000 00000000 ................
420000e0: 00000000 00000000 00000000 00000000 ................
420000f0: 00000000 00000000 00000000 00000000 ................
=> ubifsload 0x42000000 README
Loading file 'README' to addr 0x42000000 with size 16 (0x00000010)...
Done
=> md 0x42000000
42000000: 7473754a 206e6120 6d617865 0a656c70 Just an example.
42000010: 2039303a 54534543 31303220 00000a32 :09 CEST 2012...
42000020: 00000800 0001f000 0000000e 000007c0 ................
42000030: 00800000 00000000 00000005 00000002 ................
42000040: 00000001 00000001 00000008 00000100 ................
42000050: 00000004 00000001 00000000 00000000 ................
42000060: 00000000 00000000 3b9aca00 71b3e5e9 ...........;...q
42000070: fa46cc48 aabe65a2 32ec78f1 00000000 H.F..e...x.2....
42000080: 00000000 00000000 00000000 00000000 ................
42000090: 00000000 00000000 00000000 00000000 ................
420000a0: 00000000 00000000 00000000 00000000 ................
420000b0: 00000000 00000000 00000000 00000000 ................
420000c0: 00000000 00000000 00000000 00000000 ................
420000d0: 00000000 00000000 00000000 00000000 ................
420000e0: 00000000 00000000 00000000 00000000 ................
420000f0: 00000000 00000000 00000000 00000000 ................
=>
* NOTE * In U-Boot, there is no clean way to detach an UBI device; all you can do is to attach a different
device - assuming there is another one; alternatively, you can give a non-existent partition name: this will give
an error, but it will detach the previously attached UBI device:
=> ubi part foobar
incorrect device type in foobar
Partition foobar not found!
=>
Update of an UBI Volume using U-Boot:
=> ubi part filesystem 2048
Unmounting UBIFS volume filesystem!
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x000000800000-0x000010000000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=4"
UBI: MTD device size: 248 MiB
UBI: number of good PEBs: 1984
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
5.9.3.6. UBI Usage in U-Boot 57