I was able to update the NAND succesfully using MFGtools on my imx6l phytec board.
But when I try to boot the image I got the following issues:
ubi0 error: scan_peb: bad image sequence number 459621934 in PEB 832, expected 706885778
Erase counter header dump:
erase counter header hexdump:
00000000: 23494255 00000001 00000000 01000000 UBI#............
00000010: 00080000 00100000 2e46651b 00000000 .........eF.....
00000020: 00000000 00000000 00000000 00000000 ................
00000030: 00000000 00000000 00000000 ea42c949 ............I.B.
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd0, error -22
failed to attach: Invalid argument
could not open /dev/nand0.root.ubi.kernel: No such file or directory
Booting 'nand' failed: No such file or directory
booting 'nand' failed: No such file or directory
What could be wrong?
I have modified ucl2.xml script so it does flash_eraseall on all mtd partitions. The error persists. What should I investigate next? Is there an alternative to ubifs? Should I check for specific ubifs features in my barebox image?