iMX6 Rex UltraPlus Updating SPI Bootloader

From Voipac Wiki
Jump to navigation Jump to search

iMX6 Rex Module contains SPI Flash memory which is used as a default bootloader storage. This guide shows how to flash U-Boot and configure it for SPI memory.

Recommended HW:

  • PC with USB port
  • Voipac iMX6 Rex Development Kit in UltraPlus configuration
  • USB to Micro-USB cable
  • Ethernet cable

Recommended SW:


Note: In case of booting malfunction, follow USB Booting steps first to load the firmware from PC.

Stop autoboot in serial line terminal. Copy and paste commands separately to download appropriate bootloader file from TFTP server:

setenv ipaddr
setenv serverip
mw.b 0x10800000 0xFF 0x80000
mw.b 0x10800000 0xFF 0x80000;tftp 0x10800000 u-boot-imx6-rexultra-2.4.imx; sf probe
2:2;sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00

iMX6 Rex Development Kit-SPI bootloader write.png

The bootloader is written to SPI Flash after automatic download from the TFTP Server:
iMX6 Rex Development Kit-SPI bootloader written.png

Reset the board. iMX6 Rex Module will start booting from SPI Flash. The bootloader will start to download Image from TFTP server by default:
iMX6 Rex Development Kit-SPI bootloader loaded.png

To change bootloader environment, stop autoboot:
iMX6 Rex Development Kit-SPI bootloader loaded stopped.png