i.MX53 SODIMM PC Loading bootloader
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 a computer. JTAG device should be automatically recognized and prepared for usage.
- Download OpenOCD v0.6.0 software
- Unzip the files
Running Open On-Chip Debugger
Using Windows OS based computer
Locate the folder where the software was unpacked. Run OpenOCD utility in command line (by using Total Commander or Windows Command Prompt):
openocd.exe -f vmx53w.cfg
Using Linux OS based computer
Download the configuration files:
Instal OpenOCD utility:
sudo apt-get install openocd
Run the On-Chip Debugger routine using the following command:
/opt/openocd/bin/openocd -f vmx53-oocd-0.6.0.cfg
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
Using terminal emulator
Establishing serial connection
Selecting boot mode
In order to disable direct boot, H902 jumper (BOOTMODE) must be placed between pins 1 and 2. This enables serial boot and loading files over Telnet service. The main reason for using this mode is to rewrite bootloader image in case of update or recovery.
Direct Boot (Boot from E-Fuses) is selected when BOOTMODE jumper pins 2 and 3 are shortened. This is the default mode of module operation.
|Serial Boot||Direct Boot (Boot from E-Fuses)|
The following commands need to be placed inside Localhost Telnet session and executed one by one. Console logs are included for comparison:
As this fresh Barebox is stored in SRAM only at this point, switching the module off causes the bootloader to be erased. To store the new Barebox and use it automatically after power on, image flashing is required. Follow this section to do so.