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

From Voipac Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
* Voipac iMX6 TinyRex Development kit in Ultra configuration
 
* Voipac iMX6 TinyRex Development kit in Ultra configuration
 
* USB to Micro-USB cable
 
* USB to Micro-USB cable
 +
* Ethernet cable
  
 
''''' Recommended SW: '''''
 
''''' Recommended SW: '''''
 
* Serial line terminal
 
* Serial line terminal
 
* [http://downloads.voipac.com/index.php?p=iMX6_TinyRex_Development_kit/module/software/uboot/binaries&dl=u-boot-imx6-tinyrexultra-2.3.imx The appropriate file]
 
* [http://downloads.voipac.com/index.php?p=iMX6_TinyRex_Development_kit/module/software/uboot/binaries&dl=u-boot-imx6-tinyrexultra-2.3.imx The appropriate file]
 +
* TFTP server with the image file stored
  
 
== Procedure ==
 
== Procedure ==
''''' Note: ''' In case of module Open MfgTool appropriate BAT file to load bootloader over USB OTG port. Use this step only
+
''''' Note: ''' In case of booting malfunction, follow [[iMX6 TinyRex USB Booting|USB Booting steps]] to load the firmware from a PC.<br /><br />
for “VIRGIN” module as described in the above MfgTool Chapter of this document.
+
 
 +
Stop autoboot in your serial line terminal. Type or paste commands separately to download appropriate bootloader file from TFTP server:
 +
<syntaxhighlight lang="bash">
 +
setenv ipaddr 192.168.1.150
 +
setenv serverip 192.168.1.75
 +
mw.b 0x10800000 0xFF 0x80000
 +
tftp 0x10800000 u-boot-imx6-tinyrexultra-2.3.imx; sf probe 0:0;sf erase
 +
0x0 0x80000;sf write 0x10800000 0x400 0x7fc00
 +
</syntaxhighlight>

Revision as of 10:42, 15 March 2021

iMX6 TinyRex Base Board contains SPI Flash memory which can be used for bootloader storage and acts as an alternative to default SD card firmware location. This guide shows how to flash u-boot and configure it. There is also a possibility to update efuses in an existing module to use SPI memory by default.

Recommended HW:

  • PC with USB port
  • Voipac iMX6 TinyRex 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 to load the firmware from a PC.

Stop autoboot in your serial line terminal. Type or 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
tftp 0x10800000 u-boot-imx6-tinyrexultra-2.3.imx; sf probe 0:0;sf erase
0x0 0x80000;sf write 0x10800000 0x400 0x7fc00