AnsweredAssumed Answered

start imx6 uboot using JTAG

Question asked by Anand Mistry on Sep 20, 2016
Latest reply on Sep 21, 2016 by igorpadykov

Hi,

 

We are facing difficulties trying to boot u-boot on imx6 using JTAG.

 

We were able to initialise and check the RAM access. We're also able to load u-boot. But we are still struggling to execute it.

 

Our Setup
   Board:    Nitrogen6_max from Boundary Devices
   Debugger: J-Link plus from Segger
   Software: OpenOCD V 0.9.0

   U-boot: compiled from Android release of boundary-imx-kk4.4.3_2.0.0-ga 

 

Our steps:
 1. Start the board in USB boot mode.
 2. enter the following command in one terminal to start jtag emulator
      $ sudo openocd -f ./bd_n6max.cfg
      # see attachment for bd_n6max.cfg

 

 3. open another terminal and start gdb-for-arm
      $ ./gdb-for-arm

 

 4. enter the following gdb commands to connect, reset, load and run uboot
      (gdb) target remote localhost:3333
      (gdb) mon reset
      (gdb) load ./u-boot


      # till here everything is fine, the prints shows various sections of u-boot to be loaded with .text being loaded at 0x17800000
      # we also verified program counter to be set to 0x17800000
      
      # after executing following command, we see no prints on uart , gdb and openocd
      (gdb) cont

 

Can anyone please tell me what wrong are we doing?

 


Thanks and Regards,
Anand Mistry

Original Attachment has been moved to: bd_n6max.cfg.zip

Outcomes