Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

make config starts to build compiler environment. It may take a few minutes. Please wait for make config completing the processes.

3. Remove SECT_4K flag of NOR flash

This step is for jffs2 (3) root file-system. Please skip this step if you are using initramfs (4) root file-system.

Some SPI-NOR flashes support 4 kB sector-erase, but mkfs.jffs2 -e option does not support 4 kB size of erase. Please remove SECT_4K flag in C file “driver/mtd/spi-nor/spi-nor.c” if your NOR flash support 4 KB sector-erase . Refer to screenshot of diff report, SECT_4K flag of Winbond w25q128 flashes are removed.

...

4. Build NOR image

Run make all command to start to create all images of SP7021. It may take several minutes to complete. At almost final stage of building processes, make will ask you to select the use of iBoot,

...

The final binary spi_all.bin is built and copied to folder out. Refer to screenshot of output of ll out command:

...

...

5. Write your SPI NOR flash

Put your SPI-NOR flash chip into socket of flash programmer. Be careful about the pin 1 position of the chip. It should be at the same corner of pin 1 of socket. Refer to picture below, an SPI NOR flash is placed at socket of a GZUT USB flash programmer.

...

Remove the SPI NOR flash chip from socket. Note that the size of 'spi_all.bin' is about 14.2 MiB. So, size of SPI NOR flash chip should be 16 MiB (or 128 Mibit) or greater.

...

6. Set DIP-SW to “boot from SPI-NOR flash”

Plug the written SPI-NOR flash into socket of SPI NOR flash of SP7021 board. Set DIP-SW (boot-select switch) to “boot from SPI-NOR flash”. For example, if you are using SP7021 Ev Board, please set DIP-SW to OFF-OFF-ON-OFF-ON-OFF (1-1-0-1-0-1) for booting from SPI-NOR flash. Refer to picture below, DIP-SW is set to OFF-OFF-ON-OFF-ON-OFF.

...