Skip to content
Art Nikpal edited this page May 1, 2019 · 7 revisions

SPI note

necessary 16MB SPI flash size (or 8MB for some images), W25q128 is good choise for miZy https://www.aliexpress.com/af/W25q128.html?SearchText=W25q128

NOTE: default Orange Pi Zero onboard 2MB SPI to small, it necessary replace to another NOTE: default Orange Pi R1 16MB SPI is OK

Boot from sd

write any image to sd card , and boot mizy from sd card

copy from sd to spi

login to device and run this commands in shell

  • image_copy_sd_spi yes - copy from sd to spi
  • reboot - remove sd card before reboot

write SPI in FEL mode

anothe way to write SPI flash is FEL mode direct by usb cable via sunxi-fel tools

check spi flash size

./tools/fel_spi_info
Manufacturer: Winbond (EFh), model: 40h, size: 16777216 bytes.

ok! write image - u can write any image size <= flash size

examples

sunxi-fel -p spiflash-write 0 firmwares/mizy_spi_flash_demo-8M.bin ./tools/fel_spi_write firmwares/orange_pi_zero_hyphop_mizy_spi_flash_demo-8M.bin

READ MORE about SPI