Problem in load u-boot through JTAG

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem in load u-boot through JTAG

4,231 次查看
hwei
Contributor III

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?

标签 (2)
标记 (4)
0 项奖励
回复
9 回复数

1,976 次查看
hwei
Contributor III

You need to setup the DDR manually and correctly before load the u-boot.

Or as above mentioned by developing a bare-metal program.

0 项奖励
回复

1,976 次查看
Zozobra
Contributor II

Hello, I have exactly the same need.  Did this ever get resolved?  I cannot find a download for the SDK mentioned.

0 项奖励
回复

1,976 次查看
Zozobra
Contributor II

Yes it got resolved.  I had to ask my Freescale App person and she got me a copy of the SDK.  It is no longer supported (but they should have kept it for download).

0 项奖励
回复

1,976 次查看
julianmp
Contributor II

Zozobra

Have you managed to run a sdk app and upload by JTAG?

0 项奖励
回复

1,978 次查看
igorpadykov
NXP Employee
NXP Employee

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!

-----------------------------------------------------------------------------------------------------------------------

1,978 次查看
hwei
Contributor III

Hi chipexpert,

Is there a way to burn u-boot directly into the spi-flash of an imx6 board through JTAG? Or it can only be accomplished in u-boot through serial port?

Thanks

0 项奖励
回复

1,978 次查看
igorpadykov
NXP Employee
NXP Employee

Hi H

I think there is no easy/ready way, but one can

write some custom scipt, based on (for example) SDK ecspi example.

Best regards

chip

1,978 次查看
hwei
Contributor III

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?

0 项奖励
回复

1,978 次查看
igorpadykov
NXP Employee
NXP Employee

Hi H

please try SDK examples, read Readme.pdf

how to run tests

i.MX 6Series Platform SDK : Bare-metal SDK

Best regards

chip

0 项奖励
回复