Difference between revisions of "i.MX53 SODIMM PC Loading bootloader"

From Voipac Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
<!-- -->
 
<!-- -->
 
<div style="float:right">__TOC__</div>
 
<div style="float:right">__TOC__</div>
This page shown the steps how to initiate On-Chip Debugging and load bootloader into i.MX53 SODIMM PC - Development kit.
+
This page shows the steps how to initiate On-Chip Debugging and load bootloader into i.MX53 SODIMM PC - Development kit.
  
 
== JTAG Debugger and Programmer Installation ==
 
== JTAG Debugger and Programmer Installation ==
Line 33: Line 33:
 
=== Using terminal emulator ===
 
=== Using terminal emulator ===
 
To open Telnet service using TeraTerm program, click on File/New Connection, check TCP/IP and type 4444 into TCP port# field. IP adrress to connect to is localhost (127.0.0.1):<br />
 
To open Telnet service using TeraTerm program, click on File/New Connection, check TCP/IP and type 4444 into TCP port# field. IP adrress to connect to is localhost (127.0.0.1):<br />
[[image:i.MX25_SODIMM_Base_Board-Telnet_session.jpg|600px]]<br /><br />
+
[[image:i.MX25_SODIMM_Base_Board-Telnet_session.jpg|400px]]<br /><br />
  
 
TeraTerm session is active and ready for use:<br />
 
TeraTerm session is active and ready for use:<br />
Line 40: Line 40:
 
== Establishing serial connection ==
 
== Establishing serial connection ==
 
Open TeraTerm program, click on File/New Connection, check Serial and choose the port which was assigned to the JTAG device:<br />
 
Open TeraTerm program, click on File/New Connection, check Serial and choose the port which was assigned to the JTAG device:<br />
[[image:i.MX25_SODIMM_Base_Board-Serial_connection.jpg|600px]]<br /><br />
+
[[image:i.MX25_SODIMM_Base_Board-Serial_connection.jpg|400px]]<br /><br />
  
 
A successful connection is established only if the following settings are applied (115200, 8n1):<br />
 
A successful connection is established only if the following settings are applied (115200, 8n1):<br />
Line 85: Line 85:
 
[[image:i.MX53_SODIMM_PC-Development_Kit-OpenOCD_boot.jpg|600px]]<br /><br />
 
[[image:i.MX53_SODIMM_PC-Development_Kit-OpenOCD_boot.jpg|600px]]<br /><br />
  
Barebox is loaded into the i.MX53 SODIMM PC Module SRAM and executed:<br />
+
Barebox is loaded into the i.MX53 SODIMM PC Module SRAM and executed:
 
[[image:i.MX53_SODIMM_PC-Development_Kit-Bootloader_loaded.jpg|600px]]<br /><br />
 
[[image:i.MX53_SODIMM_PC-Development_Kit-Bootloader_loaded.jpg|600px]]<br /><br />
  
 
As the barebox is stored in SRAM at this point, switching the module off causes Barebox erase. To store Barebox and use it automatically after power on, flashing the image is required. Follow [[i.MX53_SODIMM_PC_Flashing_images|this section]] to do so.
 
As the barebox is stored in SRAM at this point, switching the module off causes Barebox erase. To store Barebox and use it automatically after power on, flashing the image is required. Follow [[i.MX53_SODIMM_PC_Flashing_images|this section]] to do so.

Revision as of 11:29, 3 April 2021

This page shows the steps how to initiate On-Chip Debugging and load bootloader into i.MX53 SODIMM PC - Development kit.

JTAG Debugger and Programmer Installation

  • Connect JTAG Cable to USB port on the computer. JTAG device should be automatically recognized and prepared for usage.
  • Download OpenOCD v0.6.0 software
  • Unzip the files

400px

Running Open On-Chip Debugger

Locate the folder where the software has been unpacked. Run OpenOCD utility in command line (by using Total Commander or Windows Command Prompt):

openocd -f vmx53w.cfg

600px

Debugging session is opened and running:
600px

Connecting to Open On-Chip Debugger session

Using Windows Telnet Client

Click on Start/Run (or press Windows key + R), and open the Telnet session using 4444 port:

telnet localhost 4444

Telnet session is active and ready for use:
600px

Using terminal emulator

To open Telnet service using TeraTerm program, click on File/New Connection, check TCP/IP and type 4444 into TCP port# field. IP adrress to connect to is localhost (127.0.0.1):
400px

TeraTerm session is active and ready for use:
600px

Establishing serial connection

Open TeraTerm program, click on File/New Connection, check Serial and choose the port which was assigned to the JTAG device:
400px

A successful connection is established only if the following settings are applied (115200, 8n1):
600px

Selecting boot mode

In order to disable the direct boot, H902 jumper (BOOTMODE) must be placed between pins 1 and 2. This enables the serial boot and loading files over Telnet service. The main reason for using this mode is to rewrite bootloader image in case od update or recovery.

Direct Boot (Boot from E-Fuses) is selected again when BOOTMODE jumper pins 2 and 3 are shortened. This is the default mode of module operation.

i.MX25 SODIMM Base Board-Serial boot.jpg i.MX25 SODIMM Base Board-Serial boot.jpg
Serial Boot Direct Boot (Boot from E-Fuses)

Loading bootloader

The following commands need to be placed inside Localhost Telnet session and executed one by one. Console logs are included for comparison:

reset_halt

600px

step

600px

resume

600px

vmx53_init

600px

boot

600px

Barebox is loaded into the i.MX53 SODIMM PC Module SRAM and executed: 600px

As the barebox is stored in SRAM at this point, switching the module off causes Barebox erase. To store Barebox and use it automatically after power on, flashing the image is required. Follow this section to do so.