Skip to content

Support for Macronix MX35LF4GE4AD QSPI NAND Chip (512MB Size)#

Date: 11 September 2026

Changes:

  • 12 August 2026: Initial creation
  • 2 September 2026: Textual improvements
  • 11 September 2026: Hint for OTP fuse registers GP1 and GP1

Affected hardware products#

All Kontron i.MX6 UL and ULL and STM32MP1 SOM based devices which contain the Macronix MX35LF4GE4AD 512MB QSPI NAND flash. Also customer products are affected which are based on these Kontron SOM products.

  • 40099 122 - Kontron SL i.MX6 UL 512MB/512MB -40...+85°C
  • 40099 145 - Kontron SL i.MX6 ULL 512MB/512MB -40...+85°C
  • 40099 167 - Kontron SL STM32 MP157 512MB/512MB -40...+85°C
  • 40099 191 - Kontron BL i.MX6 UL 512MB/512MB 0...+70°C
  • 40099 148 - Kontron BL i.MX6 ULL 512MB/512MB 0...+70°C
  • 40099 176 - Kontron BL STM32 MP157 512MB/512MB
  • 50099 061 - Kontron DK i.MX6 UL 512MB/512MB
  • 50099 046 - Kontron DK i.MX6 ULL 512MB/512MB
  • 50099 042 - Kontron DK 5” i.MX6 ULL 512MB/512MB
  • 50099 044 rev01 - DK 5" STM32 MP157 512MB/512MB
  • 50099 045 rev01 - DK STM32 MP157 512MB/512MB

Some more products are affected which are not contained in this list. Especially customer specific variants are not listed here. Contact your sales representative for more information if needed.

The OTP fuse registers GP1 and GP2 are reserved for use by Kontron. Some manufacturing configurations have not yet programmed these. This is expected to change.

Affected software components#

  • all U-Boot bootloader versions,
  • all Linux kernel versions,
  • all Yocto BSP versions

Description#

The NAND Flash memory currently used on the affected SoM products has been discontinued by the original manufacturer and is no longer available for future production.

To ensure long-term product availability and continuity of supply, the component has been replaced by a fully qualified successor device from an alternative supplier: Macronix MX35LF4GE4AD.

To support this device, an appropriate driver in the U-Boot bootloader and the Linux kernel is required.

Older Kontron Yocto BSP versions either do not support this device at all, or support it without the latest fix for ECC value read out! Therefore Kontron provides support for this chip in the newest versions of its currently maintained Yocto BSPs:

  • Platform i.MX6 UL/ULL: Versions 6.3.4 and 7.0.1 and newer
  • Platform STM32MP1: Version 7.0.11 and newer

Upgrade to a software version which integrates this chip or backport the chip support to the version you use. Affected components are U-Boot bootloader and Linux kernel.

ATTENTION: The required parameters for offline ubi/ubifs image creation depend on the NAND chip used. They must reflect the internal structure of the chip. Images with different parameters may not be usable on different hardware! See mtdinfo Outputs section for the parameters of the new Macronix MX35LF4GE4AD device.

Available Integrations and Fixes#

These are the Kontron BSP versions which fully support the new Macronix MX35LF4GE4AD QSPI NAND chip.

  • Yocto BSP version 7.0.1
    Supported platforms: i.MX6 UL/ULL and STM32MP1
    Integrated components: Linux Kernel 6.12 and U-Boot 2024.01 with Kontron adaptions
  • Yocto BSP version 6.3.4
    Supported platforms: i.MX6 UL/ULL
    Integrated components: Linux Kernel 6.1 and U-Boot 2024.01 with Kontron adaptions
  • Yocto BSP head of main branch
    Supported platforms: i.MX6 UL/ULL and STM32MP1
    Supports booting into NAND root filesystem on all platforms

Fixing Legacy or Customer BSPs#

In this section you will find some additional information for the integration of the Macronix MX35LF4GE4AD QSPI NAND chip in Linux kernel and U-Boot bootloader.

For Kontron BSPs with Macronix QSPI NAND chip support, all required changes are already integrated and this section only provides more detailed information about the integration.

If you do not want to use one of the Kontron BSP versions with the new Macronix QSPI NAND chip support, this information can be useful to update your own codebase.

Driver Code#

Here you can find links to the main parts of U-Boot and Linux driver code to ease backporting into your customer software with legacy Linux kernel and U-Boot versions.

ECC Read Out Fix#

Some Linux kernel versions already support the Macronix chip, but contain a bug which prevents reading out the real ECC status bits of the chip. This produces some Linux kernel warnings and may lead to unnecessary wear leveling operations. Therefore the following bugfix is strongly recommended and should solve this problem:

Fix for ubiattach for 6.12 kernel branch#

For the 6.12 linux kernel branch a regression is introduced which leads to a kernel exception when ubiattach is performed on the NAND flash MTD device. At the time of writing, the Linux mainline version 6.12.103 does not yet contain a fix for this regression.

Linux kernel versions up to 6.1.x, version 6.18.x and 7.1.x are not affected by this regression.

To fix this for an affected 6.12 kernel version, a backport of these patches is required - for example, from linux kernel version 7.1:

These backports are already integrated into the v6.12-ktn linux kernel branch provided by kontron.

Repeated rebase of integration/* branches

The ìntegration/* branches of the Kontron Linux kernel tree in https://git.kontron-electronics.de/sw/misc/linux are repeatedly rebased onto the respective Linux mainline branch and therefore do not provide a continuous history!

mtdinfo Outputs#

mtdinfo output for the new Macronix Flash MX35LF4GE4AD (512MB):

mtd0
Name:                           spi4.0
Type:                           nand
Eraseblock size:                262144 bytes, 256.0 KiB
Amount of eraseblocks:          2048 (536870912 bytes, 512.0 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size:                  4096 bytes
OOB size:                       128 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

mtdinfo output for the previously used Kioxia Flash TC58CVG2S0HRAIJ (512MB):

mtd0
Name:                           spi4.0
Type:                           nand
Eraseblock size:                262144 bytes, 256.0 KiB
Amount of eraseblocks:          2048 (536870912 bytes, 512.0 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size:                  4096 bytes
OOB size:                       256 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

  1. Booting into NAND root filesystem on the STM32MP1 platform is currently only available in the head of main branch of meta-ked-bsp. It will be integrated into the upcoming KED BSP version 8.x. ↩