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

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

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

跳至解决方案
3,417 次查看
JHY
Contributor IV

I use i.MX28, uboot and spl.

After board_init_ll (SPL) returned, before board_init_f (uboot) executed, 'Undefined Ins' is printed out in my console and system is hanging.

I can not find 'Undefined Ins' in uboot or spl source.

What is it executed between SPL and uboot.

标签 (1)
0 项奖励
回复
1 解答
2,681 次查看
JerryFan
NXP Employee
NXP Employee

It is likely that the "Undefined Instruction" been printed by ROM code. And ROM code should print "r14_undef" and followed with LR value which points the place where the exception occurred. Do you see these ever?

B.R
Jerry

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,681 次查看
fabio_estevam
NXP Employee
NXP Employee

Also, I've seen cases where 'Undefined Ins' was caused when the wrong toolchain was used: for example - using a toolchain for armv7 (mx6) to build code for arm926 (mx28). Make sure you have a suitable toolchain for mx28.

0 项奖励
回复
2,682 次查看
JerryFan
NXP Employee
NXP Employee

It is likely that the "Undefined Instruction" been printed by ROM code. And ROM code should print "r14_undef" and followed with LR value which points the place where the exception occurred. Do you see these ever?

B.R
Jerry

0 项奖励
回复
2,681 次查看
SergioSolis
NXP Employee
NXP Employee

Please take a look at this past thread, it might be able to help you:

iMX28evk u-boot sd-card -> Undefined Ins

0 项奖励
回复