[U-Boot] [PATCH v4 0/1] fsl_elbc support for 4k devices and factory badblock migration

This is my implementation of the factory badblock migration process for the fsl_elbc driver using the hack to support nand devices with page sizes bigger than 2048k.
As per last discussion with Scott Wood, I now write the marker in all the pages of the block, to add redundancy. The code that searches for the marker also runs through the pages trying to find the marker. The markers are still written to 2 blocks.
I would really appreciate any feedback related to the patch.
Changes in v2: - Added check to disallow the migration code to run in devices with page size <= 2048
Changes in v3: - Corrected memset writing beyond newoob buffer - Corrected various code formatting errors - Cosmetic changes - Generated random magic number for migration marker - Removed direct references to nand_bbt.c code - Removed useless bbt free - Removed useless dir variable - Removed vmalloc and kmalloc calls. Only malloc() and free() used now - Start searching the migration marker from the end of NAND
Changes in v4: - Read all the pages of the block until migrated marker is found - Write the marker in all pages of the block
Rafael Beims (1): nand: Hack to support 4k page in fsl_elbc_nand
drivers/mtd/nand/fsl_elbc_nand.c | 443 +++++++++++++++++++++++++++++++++++--- 1 files changed, 415 insertions(+), 28 deletions(-)
participants (1)
-
Rafael Beims