Skip to content

SPI-NAND uses defect Flash Areas#

Date: 10th May 2022

Due to an error in the Linux Kernel SPI-NAND Framework, it is possible that flash blocks marked as defective in the SPI-NAND device are incorrectly used for data storage. This can lead to data corruption or loss of data on the affected modules.

Since the NAND flash memory can basically contain defective memory blocks due to the technology used and the amount of defective blocks will increases over time, the probability of this error also increases with the age of the device.

Affected Products#

Affected are modules of the i.MX6 and STM32MP platforms that use the SPI-NAND memory. The Kontron i.mx8 platform is not affected as no SPI-NAND is used on this hardware.

Furthermore, assemblies that only use NOR or eMMC memory technologies are not affected by this problem.

Available Fixes#

As of the following Kontron Yocto BSP versions, the error has been corrected

  • Platform STM32MP: BSP STM32MP 2.0.0
  • Platform I.MX: BSP IMX 5.0.0

The following bug fixes are available for the kernel versions of the Kontron Yocto BSPs that resolve the error

Platform STM32MP1

Platform i.MX6

Starting with Linux kernel versions 5.10.94, 5.4.174 and 4.19.226, the bug has also been fixed in the mainline kernel sources.

It should be noted that when changing over to a corrected software version, the previously used defective memory blocks are no longer used. For devices which contain a critical bad block configuration and therefore are already affected by this problem, upgrading to a corrected software version can lead to data loss on the device!