We want to know how many copies of UBL/APP have been written.
It is necessary to know that we have written multiple copies
to avoid two bitflips rendering the device unusable.
dvnixload debug1: Reading: [INFO: UBLs written: 0x5]
dvnixload debug1: Reading: [INFO: APPs written: 0x4]
Related: SYS#438
The NAND might have more bit flips than can be recovered. The way
to deal with it is to write multiple copies on multiple pages. The
probability of all pages failing depends on the specific NAND flash
used and was not calculated so far. The RBL is capable of trying to
load several copies and we should be more safe now.
This requires a new partioning inside the U-Boot or other bootloader.