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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,628 Views
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.

Labels (1)
0 Kudos
Reply
1 Solution
1,892 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
1,892 Views
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 Kudos
Reply
1,893 Views
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 Kudos
Reply
1,892 Views
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 Kudos
Reply