SDAA437 July 2026 TDA4VE-Q1
Raw flash devices such as NOR and NAND flash are fundamentally different from block storage devices such as eMMC and SSDs. Linux filesystems designed for block devices, such as ext4, are not intended to operate directly on raw flash memory.
To support reliable storage on raw flash devices, Linux provides the UBI (Unsorted Block Images) layer and the UBIFS (UBI File System).
UBI sits between the MTD subsystem and the filesystem. It manages flash-specific requirements such as logical erase block mapping, wear leveling, and bad block handling. UBIFS is a flash-aware filesystem that operates on top of UBI volumes.
Figure 2-1 UBI/UBIFS Software Stack. Using UBI and UBIFS allows Linux to store and access files reliably on OSPI NOR flash while providing a standard filesystem interface to both U-Boot and Linux.
In this application note, a UBI volume named rootfs is created in the OSPI root filesystem partition. This volume stores the Linux kernel image, DTB, and the Linux root filesystem.