[U-Boot] Problem with attaching UBI partition

Bakhvalov, Denis
2016-02-23T13:31:41Z

Hi,

I found that I have problem with reading flash contents:

When dumping the flash from Linux env:

$ cat /dev/mtd5 > /tmp/flash.bin

00000000: 55424923 01000000 00000000 00000003

But when I dump the flash contents from U-Boot I see this:

=> sf read 0x1B000000 0x01B00000 0x1000
=> md 0x1B000000

1b000000: 494255ff 00000123 00000000 00000000

So, that's why I see this print:

ubi0 warning: ubi_io_read_ec_hdr: bad magic number at PEB 0: ff554249 instead of 55424923

I will investigate why data was read from flash incorrectly.

Best regards,
Denis Bakhvalov