Hi, how can I burn u-boot into a imx.6q board by a JTAG connector?
I have a Boundarydevices Sabrelite board, I have to burn u-boot.bin into it's eprom by openocd and a JTAG connector.
First, I tried to use command like flash, nand, program. but no flash could be found.
Then I tried to use load_image to load u-boot.bin into ram, it always fail with errors:
> init
> halt
> poll
background polling: on
TAP: imx6.dap (enabled)
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x600001f3 pc: 0x00000fc4
MMU: disabled, D-Cache: disabled, I-Cache: enabled
> load_image u-boot.bin
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x2800062, MEM_AP_TAR 0x0
Failed to write memory at 0x00000000
in procedure 'load_image'
Could anyone help me with this? Or is there another way to burn u-boot by JTAG?
Hi H
I would suggest to look at SDK (shows how to load and run small tests with
jtag) and create similar jtag initialization script for custom board.
Also I believe one needs to load elf file (u-boot), not bin (u-boot.bin).
i.MX 6Series Platform SDK : Bare-metal SDK
One needs to be careful not to initialize modules twice (in jtag init script and Uboot).
It may be helpful to look at i.MX25 jtag initialization of Uboot.
http://www.denx-cs.de/sites/all/files/U-Boot_install_TX25.txt
Best regards
chip
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi chipexpert, thanks for your reply.
I've tried to use the initialization script before, and it's modified from u-boot configuration.
I also tried to load the elf format u-boot in gdb and it always failed with errors:
(gdb) load u-boot
Loading section .text, size 0x3a008 lma 0x17800000
Load failed
while openocd prompted with similar error:
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x428000d0, MEM_AP_TAR 0x96027e0a
Error: Failed to read memory at 0x96027e0a
It seems to be the same problem. Besides, I tried to load some other files to ram, always same error.
Is this error a hardware problem or something else? Or is there any specific preparation required?
Hi H
please try SDK examples, read Readme.pdf
how to run tests
i.MX 6Series Platform SDK : Bare-metal SDK
Best regards
chip