/
i.MX 8M Mini SPI

i.MX 8M Mini SPI

The i.MX 8M Mini processor contains two FlexSPI and three ECSPI peripherals. The first FlexSPI is connected on all modules to a NOR Flash memory located on the module itself. The memory is used by default as the primary boot device and comes with a pre-programmed boot container.
The ECSPI peripherals are typically routed to the module's connector; for mapping on a particular module see the module specific section.

Layout of the FlexSPI memory is common and can be determined by executing

$ cat /proc/mtd

and should be as follows:

dev: size erasesize name mtd0: 007c0000 00010000 "boot" mtd1: 00020000 00010000 "reserved" mtd2: 00020000 00010000 "mfgdata"

The boot area by default contains the bootcontainer, the reserved area is used by bootloader for storing persistent data, and the mfgdata area is used for storing manufacturing data, like part and serial number.
Only the boot area should be modified by a customer; it can be erased by issuing

$ flash_eraseall /dev/mtd0

and a boot container can be programmed by issuing

where the flash.bin is the boot container image