diff options
author | Felix Matouschek <felix@matouschek.org> | 2022-04-08 18:27:05 +0200 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2022-04-09 21:08:26 +0800 |
commit | a5de91a88a8a33ced147bb5340fd45599f652d4d (patch) | |
tree | 18517a2a24f362c6168cbb1709873a7fb14dba6b | |
parent | 3711aee56d864fab066d76afadc9d04e1c18102e (diff) | |
download | upstream-a5de91a88a8a33ced147bb5340fd45599f652d4d.tar.gz upstream-a5de91a88a8a33ced147bb5340fd45599f652d4d.tar.bz2 upstream-a5de91a88a8a33ced147bb5340fd45599f652d4d.zip |
kernel: Fix oob layout of XTX XT26G0xA
The correct oob layout is:
ECC:
region->offset = 48;
region->length = 16;
Free:
/* Reserve 1 byte for the BBM. */
region->offset = 1;
region->length = 47;
Signed-off-by: Felix Matouschek <felix@matouschek.org>
-rw-r--r-- | target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch | 6 | ||||
-rw-r--r-- | target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch b/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch index c55ce87225..3a8ba498bd 100644 --- a/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch +++ b/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch @@ -83,8 +83,8 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org> + if (section) + return -ERANGE; + -+ region->offset = 8; -+ region->length = 40; ++ region->offset = 48; ++ region->length = 16; + + return 0; +} @@ -96,7 +96,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org> + return -ERANGE; + + region->offset = 1; -+ region->length = 7; ++ region->length = 47; + + return 0; +} diff --git a/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch b/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch index 3d89e58d19..a73c9fa97d 100644 --- a/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch +++ b/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch @@ -83,8 +83,8 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org> + if (section) + return -ERANGE; + -+ region->offset = 8; -+ region->length = 40; ++ region->offset = 48; ++ region->length = 16; + + return 0; +} @@ -96,7 +96,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org> + return -ERANGE; + + region->offset = 1; -+ region->length = 7; ++ region->length = 47; + + return 0; +} |