Difference between revisions of "iMX6 Rex Ultra Updating SPI Bootloader"

From Voipac Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
''''' Recommended SW: '''''
 
''''' Recommended SW: '''''
 
* Serial line terminal
 
* Serial line terminal
* [http://downloads.voipac.com/index.php?p=iMX6_Rex_Development_kit/module/software/uboot/binaries&dl=u-boot-imx6-rexultra-2.4.imx Appropriate binary file]
+
* [http://downloads.voipac.com/files/iMX6_Rex_Development_kit/module/software/uboot/binaries/u-boot-imx6-rexultra-2.4.imx Appropriate binary file]
 
* TFTP server with the image file stored
 
* TFTP server with the image file stored
  
Line 23: Line 23:
 
setenv serverip 192.168.1.75
 
setenv serverip 192.168.1.75
 
mw.b 0x10800000 0xFF 0x80000
 
mw.b 0x10800000 0xFF 0x80000
mw.b 0x10800000 0xFF 0x80000;tftp 0x10800000 u-boot-imx6-rexpro-2.4.imx; sf probe
+
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
 
2:2;sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 22:41, 24 March 2021

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 Ultra configuration
  • USB to Micro-USB cable
  • Ethernet cable

Recommended SW:

Procedure

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

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

setenv ipaddr 192.168.1.150
setenv serverip 192.168.1.75
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

600px

The bootloader is written to SPI Flash after automatic download from the TFTP Server:
600px

Reset the board. iMX6 Rex Module will start booting from SPI Flash. The bootloader will start to download Image from TFTP server by default:
600px

To change bootloader environment, stop autoboot:
600px