History log of /fuchsia/zircon/system/dev/nand/skip-block/test/logical-to-physical-map-test.cpp
Revision Date Author Comments
# 18d036ea 25-Jul-2018 Suraj Malhotra <surajmalhotra@google.com>

[astro][gauss][nandpart][skip-block] Add support for partition copies.

The bootloader (or TPL partition) for astro and gauss require that it be
written 4 times. To accomplish this, the partition is borken into 4 sub
partitions, at physical quarter boundries. From each sub-partition, a
skip-block write is performed.

This enables us to pave the bootloader. Another way to accomplish this
same behavior would be to modify the partition map to instead expose 4
skip-block partitions for the bootloader partition, and have the paver
manually write each copy in succession. This was avoided as it would
require device specific information embedded in it.

Reads will always read the first copy. We could expose the ability to
chose which copy of the partition gets read, or do some sort of smart
fallback for reading other copies of the partition for failed reads if
there is a good use case for it.

Change-Id: I08e30c7078e44fd7f957d4997bacc1fc213836af
Tested: Paved the bootloader.


# e87bc95c 02-Jul-2018 Suraj Malhotra <surajmalhotra@google.com>

[dev][skip-block][test] Add unit tests for skip-block

Change-Id: Ib1cac8fd74a58f070570a0fa9139d3e4e1d9f51a
Tested: Ran `fx run-host-tests -z ltop-test`