All of lore.kernel.org
 help / color / mirror / Atom feed
* i.MX35 Kernel without ARM EABI support  cannot execute init
@ 2009-08-21 14:37 hoefle marco
  2009-08-21 16:12 ` Hector Oron
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: hoefle marco @ 2009-08-21 14:37 UTC (permalink / raw)
  To: linux-arm-kernel

Hello everybody on the new mailing list,
I have an issue with the ARM EABI kernel option.
right now we have two ARM boards and two embedded linux distributions
(Emdebian and OSELAS). The CPUs are PXA270 and Freescale i.MX35.
The aim is to have emdebian on both boards.
When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
kernel panic remains exactly the same) using the emdebian rootfs I get
this:

Kernel panic - not syncing: Attempted to kill init!
Backtrace: 
[<c0026430>] (dump_backtrace+0x0/0x10c) from [<c02515dc>] (dump_stack
+0x18/0x1c)
 r7:c7817f54 r6:c7813c40 r5:c7813c40 r4:00000004
[<c02515c4>] (dump_stack+0x0/0x1c) from [<c025161c>] (panic+0x3c/0x110)
[<c02515e0>] (panic+0x0/0x110) from [<c0034a14>] (do_exit+0x6c/0x5b8)
 r3:c0301bd4 r2:c7813c40 r1:c7817d14 r0:c02b478a
[<c00349a8>] (do_exit+0x0/0x5b8) from [<c0034fe0>] (do_group_exit
+0x80/0xb4)
[<c0034f60>] (do_group_exit+0x0/0xb4) from [<c003ea60>]
(get_signal_to_deliver+0x2c0/0x2f0)
 r4:00000004
[<c003e7a0>] (get_signal_to_deliver+0x0/0x2f0) from [<c0024ecc>]
(do_signal+0x58/0x4e4)
[<c0024e74>] (do_signal+0x0/0x4e4) from [<c0025384>] (do_notify_resume
+0x2c/0x30)
[<c0025358>] (do_notify_resume+0x0/0x30) from [<c0022dac>] (work_pending
+0x1c/0x20)


The PXA270 kernel (same settings except ARM system type and ARM EABI
disabled) boots the emdebian root file-system successfully.

The i.MX35 Kernel boots with ARM EABI support the OSELAS file-system.
Both Kernels are version 2.6.30.4 and were compiled with the same
arm-linux-gnu-gcc compiler.

>From my understanding it should be possible to use the same root
file-system on both CPUs.

Has anybody an idea why this is not working?

Thanks,
Marco

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
  2009-08-21 16:12 ` Hector Oron
@ 2009-08-21 15:32   ` Bill Gatliff
  0 siblings, 0 replies; 9+ messages in thread
From: Bill Gatliff @ 2009-08-21 15:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hector Oron wrote:
> Hello,
>
> On Fri, Aug 21, 2009 at 04:37:15PM +0200, hoefle marco wrote:
>   
>> When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
>> kernel panic remains exactly the same) using the emdebian rootfs I get
>> this:
>>
>> Kernel panic - not syncing: Attempted to kill init!
>> Has anybody an idea why this is not working?
>>     

I've seen something like this when the .config doesn't include a FP 
emulation selection.


b.g.

-- 
Bill Gatliff
bgat at billgatliff.com

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
  2009-08-21 14:37 i.MX35 Kernel without ARM EABI support cannot execute init hoefle marco
@ 2009-08-21 16:12 ` Hector Oron
  2009-08-21 15:32   ` Bill Gatliff
  2009-08-21 16:57   ` H Hartley Sweeten
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Hector Oron @ 2009-08-21 16:12 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

On Fri, Aug 21, 2009 at 04:37:15PM +0200, hoefle marco wrote:
> When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
> kernel panic remains exactly the same) using the emdebian rootfs I get
> this:
> 
> Kernel panic - not syncing: Attempted to kill init!
> Has anybody an idea why this is not working?

I have not much idea on what is missing, but Debian usually requires you to have an initrd image of your kernel and modules.
I am sorry I can help much.

Cheers,
		-- H?ctor Or?n

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

* [Buildroot] i.MX35 Kernel without ARM EABI support cannot execute init
  2009-08-21 14:37 i.MX35 Kernel without ARM EABI support cannot execute init hoefle marco
@ 2009-08-21 16:57   ` H Hartley Sweeten
  2009-08-21 16:57   ` H Hartley Sweeten
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: H Hartley Sweeten @ 2009-08-21 16:57 UTC (permalink / raw)
  To: buildroot

On Friday, August 21, 2009 7:37 AM, hoefle marco wrote:
> Hello everybody on the new mailing list,
> I have an issue with the ARM EABI kernel option.
> right now we have two ARM boards and two embedded linux distributions
> (Emdebian and OSELAS). The CPUs are PXA270 and Freescale i.MX35.
> The aim is to have emdebian on both boards.
> When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
> kernel panic remains exactly the same) using the emdebian rootfs I get
> this:
> 
> Kernel panic - not syncing: Attempted to kill init!
> Backtrace: 
> [<c0026430>] (dump_backtrace+0x0/0x10c) from [<c02515dc>] (dump_stack
> +0x18/0x1c)
>  r7:c7817f54 r6:c7813c40 r5:c7813c40 r4:00000004
> [<c02515c4>] (dump_stack+0x0/0x1c) from [<c025161c>] (panic+0x3c/0x110)
> [<c02515e0>] (panic+0x0/0x110) from [<c0034a14>] (do_exit+0x6c/0x5b8)
>  r3:c0301bd4 r2:c7813c40 r1:c7817d14 r0:c02b478a
> [<c00349a8>] (do_exit+0x0/0x5b8) from [<c0034fe0>] (do_group_exit
> +0x80/0xb4)
> [<c0034f60>] (do_group_exit+0x0/0xb4) from [<c003ea60>]
> (get_signal_to_deliver+0x2c0/0x2f0)
>  r4:00000004
> [<c003e7a0>] (get_signal_to_deliver+0x0/0x2f0) from [<c0024ecc>]
> (do_signal+0x58/0x4e4)
> [<c0024e74>] (do_signal+0x0/0x4e4) from [<c0025384>] (do_notify_resume
> +0x2c/0x30)
> [<c0025358>] (do_notify_resume+0x0/0x30) from [<c0022dac>] (work_pending
> +0x1c/0x20)
> 
> The PXA270 kernel (same settings except ARM system type and ARM EABI
> disabled) boots the emdebian root file-system successfully.
> 
> The i.MX35 Kernel boots with ARM EABI support the OSELAS file-system.
> Both Kernels are version 2.6.30.4 and were compiled with the same
> arm-linux-gnu-gcc compiler.
> 
> >From my understanding it should be possible to use the same root
> file-system on both CPUs.
> 
> Has anybody an idea why this is not working?

Curious.  I'm having the same issue on a ep93xx system.

I switched from an OABI toolchain to an EABI one a while back.  Everything
was working fine but I realized that my rootfs was still built with the
older OABI toolchain.  So I nuked the rootfs and re-built everything.

Now the kernel boots fine but it hangs with the same Kernel panic you
are seeing.

In my case I think it's an issue with the external toolchain support
in buildroot.  The toolchain I am using (CodeSourcery 2009q1-203) is
a multilib toolchain and needs the -march=armv4t option to use the
correct instructions for the architecture.  It also needs this option
to correctly identify the directory location for the libraries.

I have been able to staticlly compile a test init and replaced the
one in my rootfs.  Doing that I don't get the Kernel panic so I think
I'm on the right track to finding a fix.

Are you also using buildroot?  Could your problem be similar?

I have cc'ed the buildroot list and Thomas Petrazzoni just in case
your issue is the same.

Regards,
Hartley

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
@ 2009-08-21 16:57   ` H Hartley Sweeten
  0 siblings, 0 replies; 9+ messages in thread
From: H Hartley Sweeten @ 2009-08-21 16:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday, August 21, 2009 7:37 AM, hoefle marco wrote:
> Hello everybody on the new mailing list,
> I have an issue with the ARM EABI kernel option.
> right now we have two ARM boards and two embedded linux distributions
> (Emdebian and OSELAS). The CPUs are PXA270 and Freescale i.MX35.
> The aim is to have emdebian on both boards.
> When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
> kernel panic remains exactly the same) using the emdebian rootfs I get
> this:
> 
> Kernel panic - not syncing: Attempted to kill init!
> Backtrace: 
> [<c0026430>] (dump_backtrace+0x0/0x10c) from [<c02515dc>] (dump_stack
> +0x18/0x1c)
>  r7:c7817f54 r6:c7813c40 r5:c7813c40 r4:00000004
> [<c02515c4>] (dump_stack+0x0/0x1c) from [<c025161c>] (panic+0x3c/0x110)
> [<c02515e0>] (panic+0x0/0x110) from [<c0034a14>] (do_exit+0x6c/0x5b8)
>  r3:c0301bd4 r2:c7813c40 r1:c7817d14 r0:c02b478a
> [<c00349a8>] (do_exit+0x0/0x5b8) from [<c0034fe0>] (do_group_exit
> +0x80/0xb4)
> [<c0034f60>] (do_group_exit+0x0/0xb4) from [<c003ea60>]
> (get_signal_to_deliver+0x2c0/0x2f0)
>  r4:00000004
> [<c003e7a0>] (get_signal_to_deliver+0x0/0x2f0) from [<c0024ecc>]
> (do_signal+0x58/0x4e4)
> [<c0024e74>] (do_signal+0x0/0x4e4) from [<c0025384>] (do_notify_resume
> +0x2c/0x30)
> [<c0025358>] (do_notify_resume+0x0/0x30) from [<c0022dac>] (work_pending
> +0x1c/0x20)
> 
> The PXA270 kernel (same settings except ARM system type and ARM EABI
> disabled) boots the emdebian root file-system successfully.
> 
> The i.MX35 Kernel boots with ARM EABI support the OSELAS file-system.
> Both Kernels are version 2.6.30.4 and were compiled with the same
> arm-linux-gnu-gcc compiler.
> 
> >From my understanding it should be possible to use the same root
> file-system on both CPUs.
> 
> Has anybody an idea why this is not working?

Curious.  I'm having the same issue on a ep93xx system.

I switched from an OABI toolchain to an EABI one a while back.  Everything
was working fine but I realized that my rootfs was still built with the
older OABI toolchain.  So I nuked the rootfs and re-built everything.

Now the kernel boots fine but it hangs with the same Kernel panic you
are seeing.

In my case I think it's an issue with the external toolchain support
in buildroot.  The toolchain I am using (CodeSourcery 2009q1-203) is
a multilib toolchain and needs the -march=armv4t option to use the
correct instructions for the architecture.  It also needs this option
to correctly identify the directory location for the libraries.

I have been able to staticlly compile a test init and replaced the
one in my rootfs.  Doing that I don't get the Kernel panic so I think
I'm on the right track to finding a fix.

Are you also using buildroot?  Could your problem be similar?

I have cc'ed the buildroot list and Thomas Petrazzoni just in case
your issue is the same.

Regards,
Hartley

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
  2009-08-21 14:37 i.MX35 Kernel without ARM EABI support cannot execute init hoefle marco
  2009-08-21 16:12 ` Hector Oron
  2009-08-21 16:57   ` H Hartley Sweeten
@ 2009-08-21 18:37 ` Rabin Vincent
  2009-08-24 10:17 ` Robert Schwebel
  3 siblings, 0 replies; 9+ messages in thread
From: Rabin Vincent @ 2009-08-21 18:37 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Aug 21, 2009 at 04:37:15PM +0200, hoefle marco wrote:
> When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
> kernel panic remains exactly the same) using the emdebian rootfs I get
> this:
> 
> Kernel panic - not syncing: Attempted to kill init!

If you build your kernel with CONFIG_DEBUG_USER=y and pass in
"user_debug=31" on your kernel command line, you'll get some info on why
init is being killed.

Rabin

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
  2009-08-21 14:37 i.MX35 Kernel without ARM EABI support cannot execute init hoefle marco
                   ` (2 preceding siblings ...)
  2009-08-21 18:37 ` Rabin Vincent
@ 2009-08-24 10:17 ` Robert Schwebel
  2009-08-24 10:53   ` hoefle marco
  3 siblings, 1 reply; 9+ messages in thread
From: Robert Schwebel @ 2009-08-24 10:17 UTC (permalink / raw)
  To: linux-arm-kernel

Marco,

On Fri, Aug 21, 2009 at 04:37:15PM +0200, hoefle marco wrote:
> right now we have two ARM boards and two embedded linux distributions
> (Emdebian and OSELAS). The CPUs are PXA270 and Freescale i.MX35. The
> aim is to have emdebian on both boards.

Why? :-)

> When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
> kernel panic remains exactly the same) using the emdebian rootfs I get
> this:
>
> Kernel panic - not syncing: Attempted to kill init!
> Backtrace:
> [<c0026430>] (dump_backtrace+0x0/0x10c) from [<c02515dc>] (dump_stack
> +0x18/0x1c)
>  r7:c7817f54 r6:c7813c40 r5:c7813c40 r4:00000004
> [<c02515c4>] (dump_stack+0x0/0x1c) from [<c025161c>] (panic+0x3c/0x110)
> [<c02515e0>] (panic+0x0/0x110) from [<c0034a14>] (do_exit+0x6c/0x5b8)
>  r3:c0301bd4 r2:c7813c40 r1:c7817d14 r0:c02b478a
> [<c00349a8>] (do_exit+0x0/0x5b8) from [<c0034fe0>] (do_group_exit
> +0x80/0xb4)
> [<c0034f60>] (do_group_exit+0x0/0xb4) from [<c003ea60>]
> (get_signal_to_deliver+0x2c0/0x2f0)
>  r4:00000004
> [<c003e7a0>] (get_signal_to_deliver+0x0/0x2f0) from [<c0024ecc>]
> (do_signal+0x58/0x4e4)
> [<c0024e74>] (do_signal+0x0/0x4e4) from [<c0025384>] (do_notify_resume
> +0x2c/0x30)
> [<c0025358>] (do_notify_resume+0x0/0x30) from [<c0022dac>] (work_pending
> +0x1c/0x20)
>
> The PXA270 kernel (same settings except ARM system type and ARM EABI
> disabled) boots the emdebian root file-system successfully.
>
> The i.MX35 Kernel boots with ARM EABI support the OSELAS file-system.
> Both Kernels are version 2.6.30.4 and were compiled with the same
> arm-linux-gnu-gcc compiler.
>
> >From my understanding it should be possible to use the same root
> file-system on both CPUs.
>
> Has anybody an idea why this is not working?

Are you sure your toolchains generate the right code for your CPUs? If
you want to have root fs for both, PXA270 and i.MX35, you probably need
an ARMv4 Toolchain. Unfortunately, your "arm-linux-gnu-gcc" compiler
name doesn't suggest anything about what code this compiler generates.

If you use the OSELAS.BSP from Phytec which was made for the i.MX35, it
was probably made with an ARM1136EJ-S compiler and builds optimized code
for that CPU.

However, within PTXdist / OSELAS.BSP one can build either specialized
platforms for each of the CPUs (which basically means that you get a
separate set of ipkg archives for each cpu) or use a "least common"
v4t toolchain.

rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
  2009-08-24 10:17 ` Robert Schwebel
@ 2009-08-24 10:53   ` hoefle marco
  2009-08-24 10:57     ` Robert Schwebel
  0 siblings, 1 reply; 9+ messages in thread
From: hoefle marco @ 2009-08-24 10:53 UTC (permalink / raw)
  To: linux-arm-kernel


> Marco,
> 
> On Fri, Aug 21, 2009 at 04:37:15PM +0200, hoefle marco wrote:
> > right now we have two ARM boards and two embedded linux distributions
> > (Emdebian and OSELAS). The CPUs are PXA270 and Freescale i.MX35. The
> > aim is to have emdebian on both boards.
> 
> Why? :-)

Because the aim is to have one linux distribution for all projects
(independent from the CPU). Also the emdebian package administration is
quite handy and identical to the "PC Debian".

> 
> > When trying to boot the i.MX35 Kernel (with ARM EABI or without, the
> > kernel panic remains exactly the same) using the emdebian rootfs I get
> > this:
> >
> > Kernel panic - not syncing: Attempted to kill init!
> > Backtrace:
> > [<c0026430>] (dump_backtrace+0x0/0x10c) from [<c02515dc>] (dump_stack
> > +0x18/0x1c)
> >  r7:c7817f54 r6:c7813c40 r5:c7813c40 r4:00000004
> > [<c02515c4>] (dump_stack+0x0/0x1c) from [<c025161c>] (panic+0x3c/0x110)
> > [<c02515e0>] (panic+0x0/0x110) from [<c0034a14>] (do_exit+0x6c/0x5b8)
> >  r3:c0301bd4 r2:c7813c40 r1:c7817d14 r0:c02b478a
> > [<c00349a8>] (do_exit+0x0/0x5b8) from [<c0034fe0>] (do_group_exit
> > +0x80/0xb4)
> > [<c0034f60>] (do_group_exit+0x0/0xb4) from [<c003ea60>]
> > (get_signal_to_deliver+0x2c0/0x2f0)
> >  r4:00000004
> > [<c003e7a0>] (get_signal_to_deliver+0x0/0x2f0) from [<c0024ecc>]
> > (do_signal+0x58/0x4e4)
> > [<c0024e74>] (do_signal+0x0/0x4e4) from [<c0025384>] (do_notify_resume
> > +0x2c/0x30)
> > [<c0025358>] (do_notify_resume+0x0/0x30) from [<c0022dac>] (work_pending
> > +0x1c/0x20)
> >
> > The PXA270 kernel (same settings except ARM system type and ARM EABI
> > disabled) boots the emdebian root file-system successfully.
> >
> > The i.MX35 Kernel boots with ARM EABI support the OSELAS file-system.
> > Both Kernels are version 2.6.30.4 and were compiled with the same
> > arm-linux-gnu-gcc compiler.
> >
> > >From my understanding it should be possible to use the same root
> > file-system on both CPUs.
> >
> > Has anybody an idea why this is not working?
> 
> Are you sure your toolchains generate the right code for your CPUs? If
> you want to have root fs for both, PXA270 and i.MX35, you probably need
> an ARMv4 Toolchain. Unfortunately, your "arm-linux-gnu-gcc" compiler
> name doesn't suggest anything about what code this compiler generates.
If I compile the kernel with the debian "arm-linux-gnu-gcc" compiler and the kernel has enabled ARM EABI
the OSELAS root filesystem still boots.

The emdebian Busybox was also compiled with that compiler. I don't see a
reason why this Kernel panic occurs. 

> If you use the OSELAS.BSP from Phytec which was made for the i.MX35, it
> was probably made with an ARM1136EJ-S compiler and builds optimized code
> for that CPU.
> 
> However, within PTXdist / OSELAS.BSP one can build either specialized
> platforms for each of the CPUs (which basically means that you get a
> separate set of ipkg archives for each cpu) or use a "least common"
> v4t toolchain.
> 
> rsc

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

* i.MX35 Kernel without ARM EABI support  cannot execute init
  2009-08-24 10:53   ` hoefle marco
@ 2009-08-24 10:57     ` Robert Schwebel
  0 siblings, 0 replies; 9+ messages in thread
From: Robert Schwebel @ 2009-08-24 10:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Aug 24, 2009 at 12:53:24PM +0200, hoefle marco wrote:
> > On Fri, Aug 21, 2009 at 04:37:15PM +0200, hoefle marco wrote:
> > > right now we have two ARM boards and two embedded linux
> > > distributions (Emdebian and OSELAS). The CPUs are PXA270 and
> > > Freescale i.MX35. The aim is to have emdebian on both boards.
> >
> > Why? :-)
>
> Because the aim is to have one linux distribution for all projects
> (independent from the CPU). Also the emdebian package administration
> is quite handy and identical to the "PC Debian".

"one fits it all" is often the opposite of "optimized" for an embedded
device". But that's another discussion :-)

> > > Has anybody an idea why this is not working?
> >
> > Are you sure your toolchains generate the right code for your CPUs?
> > If you want to have root fs for both, PXA270 and i.MX35, you
> > probably need an ARMv4 Toolchain. Unfortunately, your
> > "arm-linux-gnu-gcc" compiler name doesn't suggest anything about
> > what code this compiler generates.
>
> If I compile the kernel with the debian "arm-linux-gnu-gcc" compiler
> and the kernel has enabled ARM EABI the OSELAS root filesystem still
> boots.
>
> The emdebian Busybox was also compiled with that compiler. I don't see
> a reason why this Kernel panic occurs.

Is there a reason why you are trying a "mixed" system at all? Getting
such problems right is often a matter of using tools in a consistent
way.

Does a simple boot with "init=/bin/sh" work? If not, you might want to
try a statically linked shell for that; it gives often more hints for
debugging when you have access to Linux.

rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

end of thread, other threads:[~2009-08-24 10:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-21 14:37 i.MX35 Kernel without ARM EABI support cannot execute init hoefle marco
2009-08-21 16:12 ` Hector Oron
2009-08-21 15:32   ` Bill Gatliff
2009-08-21 16:57 ` [Buildroot] " H Hartley Sweeten
2009-08-21 16:57   ` H Hartley Sweeten
2009-08-21 18:37 ` Rabin Vincent
2009-08-24 10:17 ` Robert Schwebel
2009-08-24 10:53   ` hoefle marco
2009-08-24 10:57     ` Robert Schwebel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.