Difference between revisions of "i.MX25 SODIMM PC Loading bootloader"
Line 8: | Line 8: | ||
=== OpenOCD 0.6.0 === | === OpenOCD 0.6.0 === | ||
==== Using Windows OS based computer ==== | ==== Using Windows OS based computer ==== | ||
− | JTAG Debugger and Programmer Installation | + | JTAG Debugger and Programmer Installation requires these initial steps to be followed: |
* Connect JTAG Cable to USB port on a computer. JTAG device should be automatically recognized and prepared for usage. | * Connect JTAG Cable to USB port on a computer. JTAG device should be automatically recognized and prepared for usage. | ||
* Download [http://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/tools/jtag/binaries/openocd-0.6.0-vmx0.zip OpenOCD v0.6.0 software] | * Download [http://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/tools/jtag/binaries/openocd-0.6.0-vmx0.zip OpenOCD v0.6.0 software] | ||
Line 24: | Line 24: | ||
=== Using Linux OS based computer === | === Using Linux OS based computer === | ||
− | Download [ | + | Download [https://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/tools/jtag/vmx25-oocd-0.6.0.cfg the configuration files] and [https://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/module/software/barebox/binaries/barebox-vmx25-1.0.img barebox binary]: |
+ | <syntaxhighlight lang="bash"> | ||
+ | wget https://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/tools/jtag/vmx25-oocd-0.6.0.cfg | ||
+ | wget https://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/module/software/barebox/binaries/barebox-vmx25-1.0.img | ||
+ | </syntaxhighlight> | ||
+ | Instal OpenOCD utility: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | sudo apt-get install openocd | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Run the On-Chip Debugger routine with the i.MX25 SODDIMM Module configuration file: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | /opt/openocd/bin/openocd -f vmx25-oocd-0.6.0.cfg | ||
+ | </syntaxhighlight> | ||
== Connecting to Open On-Chip Debugger session == | == Connecting to Open On-Chip Debugger session == |
Revision as of 06:59, 24 April 2022
This page shows the steps how to initiate On-Chip Debugging and load bootloader into i.MX25 SODIMM PC - Development Kit.
Running Open On-Chip Debugger
OpenOCD 0.6.0
Using Windows OS based computer
JTAG Debugger and Programmer Installation requires these initial steps to be followed:
- 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
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 vmx25w.cfg
Debugging session is opened and running:
Using Linux OS based computer
Download the configuration files and barebox binary:
wget https://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/tools/jtag/vmx25-oocd-0.6.0.cfg wget https://downloads.voipac.com/files/i.MX25_SODIMM_PC-Development_Kit/module/software/barebox/binaries/barebox-vmx25-1.0.img
Instal OpenOCD utility:
sudo apt-get install openocd
Run the On-Chip Debugger routine with the i.MX25 SODDIMM Module configuration file:
/opt/openocd/bin/openocd -f vmx25-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
Telnet session is active and ready for use:
Using terminal emulator
To open Telnet service using TeraTerm program, click on File/New Connection, select TCP/IP option and type 4444 into TCP port# field. The IP address to connect to is localhost (127.0.0.1):
TeraTerm session is running and ready for use:
Establishing serial connection
Open TeraTerm program, click on File/New Connection, choose Serial and select the port which was assigned to the serial console:
A successful connection is created only if the following serial port settings are applied (115200, 8n1):
Boot mode options
H902 jumper (BOOTMODE) allows to choose different bootloader sources:
- Direct boot is enabled when a link is placed between pins 1 and 2. This mode is chosen by default.
- Serial Boot (Internal boot) is selected when pins 2 and 3 are shortened.
Direct Boot | Serial Boot |
Important: No boot mode changes are required during firmware loading.
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
vmx25_init
boot
Barebox was loaded into the i.MX25 SODIMM PC Module SRAM and executed:
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.