"undefined instruction"

Post Reply
krd
Posts: 2
Joined: Mon Apr 27, 2009 5:51 pm

"undefined instruction"

Post by krd » Thu Apr 08, 2010 5:22 pm

Hi all,

I'm having a problem with my linux crashing with error message "undefined instruction" and I'm hoping somebody had similar problem. The offending instruction is "add lr, pc, #10" and it's located early in the kernel boot process (in the file head.s). The hex code for that instruction is "e28fe068" and looking at the manual for s3c2440 it does seem like invalid code. But I'm using a ARM compilers so I have no idea why image file has incorrect code for instruction.

I would greatly appreciate any thoughts as on what might be the problem.

Thanks

qazwsx
Posts: 1
Joined: Sun Jan 11, 2009 2:49 am

Re: "undefined instruction"

Post by qazwsx » Fri Apr 09, 2010 1:30 pm

add this flags in your makefile

-march=armv4t -mtune=arm920t

krd
Posts: 2
Joined: Mon Apr 27, 2009 5:51 pm

Re: "undefined instruction"

Post by krd » Sun Apr 11, 2010 4:58 pm

Thanks for the tip, qazwsx. I tried it but it still crashes.

There's something fundamentally wrong that I must doing in compiling the kernel. I inserted simple patch into the assembly code that displays simple message and it doesn't work. On the other hand, I downloaded uImage for another board and I got the "unrecognized/unsupported machine ID"- now that's the kind of error I was expecting.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests