cfimager error -22

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

cfimager error -22

2,312 次查看
thekarl
Contributor I

Hello!

I'm having problems with a custom board with an i.MX28 processor (see https://community.nxp.com/message/653838?et=watches.email.thread#comment-653838). I have a theory that the problem is related to the flash memory, so I want to run the i.MX28 On-Board Diagnostics Suite. I have built the obds binary and am trying to flash it to an SD-card with cfimager (part of the obds package). The command I've run and its output is as follows:

>cfimager.exe -f mx28-obds.sb -d h -a

Failed to unlock drive, closing anyway!

Error: error -22

I've failed to find any information of what error -22 means. Can someone here help me figure it out?

Is there an alternative to cfimager?

标签 (1)
标记 (3)
0 项奖励
回复
4 回复数

2,031 次查看
thekarl
Contributor I

I found the cause for the failure to unlock the drive. The program did not run with admin rights. When it's run as admin, wrting to the sd card works.

But I've run in to aother problem. When I try to boot the device from the sd card I get the following output on the usb debug interface:

HTLLCLLJ
Undefined InsHTLLCLLJ
Undefined InsHTLLCLLJ
Undefined InsHTLLCLLJ
Undefined InsHTLLCLLJ
Undefined InsHTLLCLLJ
Undefined InsHTLLCLLJ


The Undefined InsHTLLCLLJ part repeats forever.

Is something wrong with the boot image?

0 项奖励
回复

2,031 次查看
Yuri
NXP Employee
NXP Employee

Hello,


The "Undefined Ins" message may be caused because of memory bug.

Also please take a look at the next thread :

What does 'Undefined Ins' mean in u-boot? 

Regards,

Yuri.

0 项奖励
回复

2,031 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Karl-Johan

could you try :

cfimager.exe -f ./output/mx28/bin/mx28-obds.sb -d g 

(use -a option for the first time when format is needed)

Best regards

igor

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

Note: If this post answers your question, please click the Correct Answer button. Thank you!

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

0 项奖励
回复

2,031 次查看
thekarl
Contributor I

That command gives me the same output, so I don't think it's the -a option that is the problem.

The SD-card i'm trying to flash is formatted as FAT32, if that matters.

0 项奖励
回复