Re: kernel init exception

2010-06-30 Thread wilbur.chan
Hi, David, Segher,


Maybe it was caused by floating exception.I found that,system received
a program check exception,the reason for it was REASON_ILLEGAL.

I also use show_regs to print the NIP in exception,it seemed that
,this exception was caused by 'vmhaddshs' instruction in user mode of
init process .

Is vmhaddshs avaliable on e500mc? My cross compile tool is gcc-4.1.2-glibc-2.5.0
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: kernel init exception

2010-06-30 Thread Segher Boessenkool

Maybe it was caused by floating exception.I found that,system received
a program check exception,the reason for it was REASON_ILLEGAL.

I also use show_regs to print the NIP in exception,it seemed that
,this exception was caused by 'vmhaddshs' instruction in user mode of
init process .

Is vmhaddshs avaliable on e500mc? My cross compile tool is  
gcc-4.1.2-glibc-2.5.0


This isn't vmhaddshs (which is an AltiVec instruction), but something  
else

that also uses primary opcode 4.

It sounds like your toolchain isn't set up correctly for e500mc.


Segher

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: kernel init exception

2010-06-30 Thread wilbur.chan
2010/7/1 Segher Boessenkool seg...@kernel.crashing.org:
 Maybe it was caused by floating exception.I found that,system received
 a program check exception,the reason for it was REASON_ILLEGAL.

 I also use show_regs to print the NIP in exception,it seemed that
 ,this exception was caused by 'vmhaddshs' instruction in user mode of
 init process .

 Is vmhaddshs avaliable on e500mc? My cross compile tool is
 gcc-4.1.2-glibc-2.5.0

 This isn't vmhaddshs (which is an AltiVec instruction), but something else
 that also uses primary opcode 4.

 It sounds like your toolchain isn't set up correctly for e500mc.


 Segher



I 've used cross_tool (powerpc_mc)  that freescale provided,  to
compile the kernel image, and

use an ordinary powerpc cross tool to compile busybox into cpio ramdisk.
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: kernel init exception

2010-06-29 Thread Segher Boessenkool

why there generated a signal 4  in  init  process?


That's SIGILL; sounds like you compiled init with the wrong (sub-)arch
or cpu flags.


Segher

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: kernel init exception

2010-06-29 Thread David Gibson
On Tue, Jun 29, 2010 at 06:51:16PM +0200, Segher Boessenkool wrote:
 why there generated a signal 4  in  init  process?
 
 That's SIGILL; sounds like you compiled init with the wrong (sub-)arch
 or cpu flags.

Or it's been corrupted during load.

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev