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. 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 Rafael Beims (1): nand: Hack to support 4k page in fsl_elbc_nand drivers/mtd/nand/fsl_elbc_nand.c | 431 +++++++++++++++++++++++++++++++++++--- 1 files changed, 403 insertions(+), 28 deletions(-) _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot