nand-data-randomization · shipping · also NAND scrambling, NAND randomizer

NAND data randomization

NAND data randomization reversibly transforms bit patterns before programming to reduce pattern-dependent errors, with matching settings required for readback.

Pattern control: Balancing bits along a wordline does not ensure balanced patterns along a vertical NAND string. A 2021 TLC study uses two linked shift registers to control both directions; its stress results concern the tested memory, not a universal endurance multiplier. [1]

Readback: In the Linux v6.12 sunxi driver, state selection depends on page address and block geometry; spare-area state also depends on ECC step size. Its two-byte marker helper has address-dependent XOR masks. These software transforms are not physical marker values or a complete page decoder. [2] [6]

Erased pages: A documented GPMI erratum distinguishes erased from programmed reads when randomization is enabled. The generic Linux erased-chunk check separately counts deviations from FF across supplied data, ECC and extra OOB; a successful check normalizes the supplied buffers. Omitting ECC can change that decision. [4] [3]

Configuration: Some NAND feature bits controlling randomization and its coverage return to power-on defaults. Preserve the device-specific settings with the image; matching payload bytes alone does not establish a compatible raw relocation. [5]

Relations

related
NAND copyback, NAND spare area

Limitations

  • A reversible XOR transform does not correct bit errors or establish confidentiality. [1, 6]

Citations

  1. Favalli et al. A Scalable Bidimensional Randomization Scheme for TLC 3D NAND Flash Memories. Micromachines 12(7):759, 2021, sections 2-4. (accessed 2026-11-19)
  2. Linux v6.12 sunxi_nand.c: randomizer state selection and software bad-block-marker transform. (accessed 2026-11-19)
  3. Linux v6.12 nand_base.c: nand_check_erased_ecc_chunk and its data/ECC/OOB budget. (accessed 2026-11-19)
  4. NXP. i.MX 6SoloX Chip Errata, Rev. 2, February 2019, ERR008650, p. 79. (accessed 2026-11-19)
  5. Macronix. AN1051 Rev. 1, 2 November 2023: randomizer configuration and coverage, sections 1, 2 and 4. (accessed 2026-11-19)
  6. Hesela. NAND randomizer: pinned source-helper execution, exact results and reproduction instructions. (accessed 2026-11-19)
Sources & caveats
  • The 2021 full paper compares randomizers under endurance and retention stress; no performance or lifetime result is reproduced. [1]
  • NXP ERR008650 and Macronix AN1051 describe different device families. They are not general claims about current NAND products. [4] [5]
  • Publishing-session replay of five pinned Linux helpers matched the frozen results. Constructed buffers are not asserted to be valid ECC codewords; no NAND hardware, whole-page decoder or copyback command was exercised. [6]

JSON: /data/terms/nand-data-randomization.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. NAND data randomization. Hesela. 2026-11-19. https://hesela.dev/terms/nand-data-randomization/