All of lore.kernel.org
 help / color / mirror / Atom feed
* Init fails with segfault on AVR32
@ 2008-02-07 13:08 Alex
  2008-02-12 11:19 ` Alex
  0 siblings, 1 reply; 4+ messages in thread
From: Alex @ 2008-02-07 13:08 UTC (permalink / raw)
  To: openembedded-devel

Hi

I finally got minimal-image compiled in OE for AVR32 and the kernel can 
boot just to the point where it tries to load init.

This will fail with a segfault. Last messages on boot log:

VFS: Mounted root (jffs2 
filesystem).                                          
Freeing init memory: 68K (90000000 - 
90011000)                                 
init[1]: segfault at 00000008 pc 2aaabbe8 sp 7fabbf40 ecr 
24                   
init has generated signal 11 but has no handler for 
it                         
Kernel panic - not syncing: Attempted to kill init!   

I tried NFS boot and boot from flash which both produced the same 
result. I am using U-Boot 1.3.0.atmel.2 (from Atmel buildroot).

Anyone an idea what could be wrong?

To find the problem I did the following:

I have a working rootfs (from AVR buildroot). Booting with OE-Kernel and 
Buildroot rootfs works. I can mount OE-rootfs via NFS and then I can 
execute programs such as sbin/init => this seems to be valid AVR32 
binaries.

I copied init.sysvinit into my buildroot-rootfs. Now the system doesn't 
segfault anymore.

Thanks for any hint

Alex



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

* Re: Init fails with segfault on AVR32
  2008-02-07 13:08 Init fails with segfault on AVR32 Alex
@ 2008-02-12 11:19 ` Alex
  2008-02-12 11:43   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Alex @ 2008-02-12 11:19 UTC (permalink / raw)
  To: openembedded-devel

Hi

While waiting for support from the mailinglist I tried a few more things 
to get my atngw100 system running.

I tried to use init from (statically linked) busybox. This will suffer 
the same problem but gives me a better clue where
the problem lies.

I found out that in a first step /bin/mount.util-linux is responsible 
for the segfault. And this is due to the shared library
"ld-uClibc-0.9.28".

If I replace this library with ld-uClibc-0.9.29 from atmel's buildroot. 
The segfault is gone!

There are rumours that some of you have OE running on ATNGW100 hardware. 
So what can I make wrong?
Can someone send me his local.conf?
I update OE from time to time in the hope this will save my problems.

I use:
- bitbake version 1.18.11
- monotone 0.31

And I update OE using the following commands:
 > mtn --db=/oe/OE.mtn pull monotone.openembedded.org org.openembedded.dev
 > cd /oe/org.openembedded.dev && mtn update

Hope someone can help me. I'm trying for weeks to get this stuff 
running....

Best regards,
Alex
> Hi
>
> I finally got minimal-image compiled in OE for AVR32 and the kernel can 
> boot just to the point where it tries to load init.
>
> This will fail with a segfault. Last messages on boot log:
>
> VFS: Mounted root (jffs2 
> filesystem).                                          
> Freeing init memory: 68K (90000000 - 
> 90011000)                                 
> init[1]: segfault at 00000008 pc 2aaabbe8 sp 7fabbf40 ecr 
> 24                   
> init has generated signal 11 but has no handler for 
> it                         
> Kernel panic - not syncing: Attempted to kill init!   
>
> I tried NFS boot and boot from flash which both produced the same 
> result. I am using U-Boot 1.3.0.atmel.2 (from Atmel buildroot).
>
> Anyone an idea what could be wrong?
>
> To find the problem I did the following:
>
> I have a working rootfs (from AVR buildroot). Booting with OE-Kernel and 
> Buildroot rootfs works. I can mount OE-rootfs via NFS and then I can 
> execute programs such as sbin/init => this seems to be valid AVR32 
> binaries.
>
> I copied init.sysvinit into my buildroot-rootfs. Now the system doesn't 
> segfault anymore.
>
> Thanks for any hint
>
> Alex
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>   




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

* Re: Init fails with segfault on AVR32
  2008-02-12 11:19 ` Alex
@ 2008-02-12 11:43   ` Richard Purdie
  2008-02-12 12:19     ` Alex
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2008-02-12 11:43 UTC (permalink / raw)
  To: openembedded-devel

On Tue, 2008-02-12 at 12:19 +0100, Alex wrote:
> While waiting for support from the mailinglist I tried a few more things 
> to get my atngw100 system running.
> 
> I tried to use init from (statically linked) busybox. This will suffer 
> the same problem but gives me a better clue where
> the problem lies.
> 
> I found out that in a first step /bin/mount.util-linux is responsible 
> for the segfault. And this is due to the shared library
> "ld-uClibc-0.9.28".
> 
> If I replace this library with ld-uClibc-0.9.29 from atmel's buildroot. 
> The segfault is gone!
> 
> There are rumours that some of you have OE running on ATNGW100 hardware. 
> So what can I make wrong?
> Can someone send me his local.conf?
> I update OE from time to time in the hope this will save my problems.
> 
> I use:
> - bitbake version 1.18.11
> - monotone 0.31
> 
> And I update OE using the following commands:
>  > mtn --db=/oe/OE.mtn pull monotone.openembedded.org org.openembedded.dev
>  > cd /oe/org.openembedded.dev && mtn update
> 
> Hope someone can help me. I'm trying for weeks to get this stuff 
> running....

I don't have any AVR hardware but narrowing it down to a library like
that is a great step forward. Can you see any differences in the patches
or versions used to build uclibc between buildroot and OE?

Cheers,

Richard




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

* Re: Init fails with segfault on AVR32
  2008-02-12 11:43   ` Richard Purdie
@ 2008-02-12 12:19     ` Alex
  0 siblings, 0 replies; 4+ messages in thread
From: Alex @ 2008-02-12 12:19 UTC (permalink / raw)
  To: openembedded-devel

Hi
>> While waiting for support from the mailinglist I tried a few more things 
>> to get my atngw100 system running.
>>
>>     
.....
>> Hope someone can help me. I'm trying for weeks to get this stuff 
>> running....
>>     
>
> I don't have any AVR hardware but narrowing it down to a library like
> that is a great step forward. Can you see any differences in the patches
> or versions used to build uclibc between buildroot and OE?
>
>   
Yes, Atmel's buildroot uses uClibc 0.9.29, OE uses 0.9.28. I was 
thinking of trying to compile Version 0.9.29 but I don't have the
propre OE background to do this. For someone who knows the OE stuff it 
should be easy, as all the necessary patches could be taken
from buildroot.

Alex
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>   




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

end of thread, other threads:[~2008-02-12 12:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 13:08 Init fails with segfault on AVR32 Alex
2008-02-12 11:19 ` Alex
2008-02-12 11:43   ` Richard Purdie
2008-02-12 12:19     ` Alex

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.