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

From Voipac Wiki
Jump to navigation Jump to search
(Created page with "Category:iMX6 TinyRex Development kit Category:iMX6 TinyRex Pro <!-- --> iMX6 TinyRex Base Board contains SPI Flash memory which can be used for bootloader storage and...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:iMX6 TinyRex Development kit]]
+
[[Category:iMX6 TinyRex Development Kit]]
 
[[Category:iMX6 TinyRex Pro]]
 
[[Category:iMX6 TinyRex Pro]]
 
<!-- -->
 
<!-- -->
iMX6 TinyRex Base Board contains SPI Flash memory which can be used for bootloader storage and act as an alternative to the default SD card firmware location. This guide shows how to flash u-boot and configure it for SPI memory. An option to update efuses in an existing module to use SPI memory by default is possible as well.<br /><br />  
+
iMX6 TinyRex Base Board contains SPI Flash memory which can be used for bootloader storage and act as an alternative to the default SD card firmware location. This guide shows how to flash U-Boot and configure it for SPI memory. An option to update eFuses in an existing module to use SPI memory by default is possible as well.<br /><br />  
  
 
''''' Recommended HW: '''''
 
''''' Recommended HW: '''''
 
* PC with USB port
 
* PC with USB port
* Voipac iMX6 TinyRex Development kit in Pro configuration
+
* Voipac iMX6 TinyRex Development Kit in Pro configuration
 
* USB to Micro-USB cable
 
* USB to Micro-USB cable
 
* Ethernet cable
 
* Ethernet cable
Line 12: Line 12:
 
''''' 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-tinyrexpro-2.3.imx Appropriate binary file]
+
* [http://downloads.voipac.com/files/iMX6_TinyRex_Development_Kit/module/software/uboot/binaries/u-boot-imx6-tinyrexpro-2.3.imx Appropriate binary file]
 
* TFTP server with the image file stored
 
* TFTP server with the image file stored
  
Line 18: Line 18:
 
''''' Note: ''''' In case of booting malfunction, follow [[iMX6 TinyRex USB Booting|USB Booting steps]] first to load the firmware from PC.<br /><br />
 
''''' Note: ''''' In case of booting malfunction, follow [[iMX6 TinyRex USB Booting|USB Booting steps]] first to load the firmware from PC.<br /><br />
  
Stop autoboot in your serial line terminal. Copy and paste commands separately to download appropriate bootloader file from TFTP server:
+
Stop autoboot in serial line terminal. Copy and paste commands separately to download appropriate bootloader file from TFTP server:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
setenv ipaddr 192.168.1.150
 
setenv ipaddr 192.168.1.150
Line 26: Line 26:
 
0x0 0x80000;sf write 0x10800000 0x400 0x7fc00
 
0x0 0x80000;sf write 0x10800000 0x400 0x7fc00
 
</syntaxhighlight>
 
</syntaxhighlight>
[[image:iMX6_TinyRex_Development_kit-SPI_bootloader_write.jpg|600px]]<br /><br />
+
[[image:iMX6_TinyRex_Development_Kit-SPI_bootloader_write.png|580px]]<br /><br />
  
 
The bootloader is written to Base Board SPI Flash after automatic download from the TFTP Server:<br />
 
The bootloader is written to Base Board SPI Flash after automatic download from the TFTP Server:<br />
[[image:iMX6_TinyRex_Development_kit-SPI_bootloader_written.jpg|600px]]<br /><br />
+
[[image:iMX6_TinyRex_Development_Kit-SPI_bootloader_written.png|580px]]<br /><br />
  
 
Reset the board. iMX6 TinyRex Module will start booting from SPI Flash. The bootloader will start to download Image from TFTP server by default:<br />
 
Reset the board. iMX6 TinyRex Module will start booting from SPI Flash. The bootloader will start to download Image from TFTP server by default:<br />
[[image:iMX6_TinyRex_Development_kit-SPI_bootloader_loaded.jpg|600px]]<br /><br />
+
[[image:iMX6_TinyRex_Development_Kit-SPI_bootloader_loaded.png|580px]]<br /><br />
  
 
To change bootloader environment, stop autoboot:<br />
 
To change bootloader environment, stop autoboot:<br />
[[image:iMX6_TinyRex_Development_kit-SPI_bootloader_loaded_stopped.jpg|600px]]
+
[[image:iMX6_TinyRex_Development_Kit-SPI_bootloader_loaded_stopped.png|580px]]

Latest revision as of 21:24, 26 October 2021

iMX6 TinyRex Base Board contains SPI Flash memory which can be used for bootloader storage and act as an alternative to the default SD card firmware location. This guide shows how to flash U-Boot and configure it for SPI memory. An option to update eFuses in an existing module to use SPI memory by default is possible as well.

Recommended HW:

  • PC with USB port
  • Voipac iMX6 TinyRex Development Kit in Pro 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 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
tftp 0x10800000 u-boot-imx6-tinyrexpro-2.3.imx; sf probe 0:0;sf erase
0x0 0x80000;sf write 0x10800000 0x400 0x7fc00

iMX6 TinyRex Development Kit-SPI bootloader write.png

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

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

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