linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* kernel init exception
@ 2010-06-29 15:21 wilbur.chan
  2010-06-29 16:51 ` Segher Boessenkool
  0 siblings, 1 reply; 6+ messages in thread
From: wilbur.chan @ 2010-06-29 15:21 UTC (permalink / raw)
  To: linuxppc-dev

We are   porting linux 2.6.21.7 to a powerpc e500mc board , p4080.

But something is wrong when loading init file:

log:

free init memory...

init has generated signal  4  but has no handler for it


I found it print in _exception --->

                                   if (is_init(current)) {
                                         if (handler == SIG_DFL) {
    			  printk(KERN_CRIT "init has generated signal %d "
			        "but has no handler for it\n", signr);
			do_exit(signr);
		          }
                                   }


why there generated a signal 4  in  init  process?

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kernel init exception
  2010-06-29 15:21 kernel init exception wilbur.chan
@ 2010-06-29 16:51 ` Segher Boessenkool
  2010-06-30  0:46   ` David Gibson
  0 siblings, 1 reply; 6+ messages in thread
From: Segher Boessenkool @ 2010-06-29 16:51 UTC (permalink / raw)
  To: wilbur.chan; +Cc: linuxppc-dev

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kernel init exception
  2010-06-29 16:51 ` Segher Boessenkool
@ 2010-06-30  0:46   ` David Gibson
  2010-06-30 14:35     ` wilbur.chan
  0 siblings, 1 reply; 6+ messages in thread
From: David Gibson @ 2010-06-30  0:46 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: linuxppc-dev, wilbur.chan

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kernel init exception
  2010-06-30  0:46   ` David Gibson
@ 2010-06-30 14:35     ` wilbur.chan
  2010-06-30 22:31       ` Segher Boessenkool
  0 siblings, 1 reply; 6+ messages in thread
From: wilbur.chan @ 2010-06-30 14:35 UTC (permalink / raw)
  To: David Gibson; +Cc: linuxppc-dev

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kernel init exception
  2010-06-30 14:35     ` wilbur.chan
@ 2010-06-30 22:31       ` Segher Boessenkool
  2010-07-01  0:10         ` wilbur.chan
  0 siblings, 1 reply; 6+ messages in thread
From: Segher Boessenkool @ 2010-06-30 22:31 UTC (permalink / raw)
  To: wilbur.chan; +Cc: linuxppc-dev, David Gibson

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kernel init exception
  2010-06-30 22:31       ` Segher Boessenkool
@ 2010-07-01  0:10         ` wilbur.chan
  0 siblings, 0 replies; 6+ messages in thread
From: wilbur.chan @ 2010-07-01  0:10 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: linuxppc-dev, chen.yu10, David Gibson

2010/7/1 Segher Boessenkool <segher@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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-01  0:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 15:21 kernel init exception wilbur.chan
2010-06-29 16:51 ` Segher Boessenkool
2010-06-30  0:46   ` David Gibson
2010-06-30 14:35     ` wilbur.chan
2010-06-30 22:31       ` Segher Boessenkool
2010-07-01  0:10         ` wilbur.chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).