From 5563643b387d3c050fe133f0c595f0a71bf06667 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 30 Jan 2026 06:01:06 -0500 Subject: [PATCH] x1000: Bump NAND_DRV_MAXPAGESIZE to (2048+128) X6G01C flash has 128B of ECC data per page, overruning our buffer. Change-Id: I8caa8bec6291f1b3391af9c7da1ee22805ff01e2 --- firmware/target/mips/ingenic_x1000/nand-x1000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/target/mips/ingenic_x1000/nand-x1000.h b/firmware/target/mips/ingenic_x1000/nand-x1000.h index 0ccd075079..f2e5ffa478 100644 --- a/firmware/target/mips/ingenic_x1000/nand-x1000.h +++ b/firmware/target/mips/ingenic_x1000/nand-x1000.h @@ -36,7 +36,7 @@ /* keep max page size in sync with the NAND chip table in the .c file */ #define NAND_DRV_SCRATCHSIZE 32 -#define NAND_DRV_MAXPAGESIZE 2112 +#define NAND_DRV_MAXPAGESIZE (2048+128) /* Quad I/O support bit */ #define NAND_CHIPFLAG_QUAD 0x0001