public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Re: init (busybox) problem on OSK5912
@ 2006-05-10  7:21 chetan.kapoor
  0 siblings, 0 replies; 9+ messages in thread
From: chetan.kapoor @ 2006-05-10  7:21 UTC (permalink / raw)
  To: linux-omap-open-source

Hi,

I have made some findings to resolve this issue. May be this is helpful for
you.

We were also facing the similar issue where the gdbserver when linked
dynamically was always resulting in a segmentation fault. We have ensured
that the version of libraries used while compilation are same in the target
also. But still , the gdbserver was resulting in a crash (always before
accept system call). 

After going through other mailing lists, I have found that this issue is
happening because of a bug in glibc libraries. I have rebuilt the glibc
libraries (2.3.5 version) for arm after deleting the sysdeps/arm/memset.S
file. I have used the newly built "libc.so.6" and "ld-linux.so.2" for
compilation and runtime environment. This time gdbserver and other
dynamically shared program worked fine.

May be you can give this step a try. I have followed the steps for building
toolchain from http://frank.harvard.edu/~coldwell/toolchain/

Regards,
Dinesh

++ Sent by Chetan Kapoor on behalf of Dinesh Arora ++

***********************  FSS-Unclassified   ***********************

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: init (busybox) problem on OSK5912
@ 2006-05-10  7:38 Chetan Kapoor
  0 siblings, 0 replies; 9+ messages in thread
From: Chetan Kapoor @ 2006-05-10  7:38 UTC (permalink / raw)
  To: linux-omap-open-source

Hi,

I have made some findings to resolve this issue. May be this is helpful for you.

We were also facing the similar issue where the gdbserver when linked
dynamically was always resulting in a segmentation fault. We have
ensured that the version of libraries used while compilation are same
in the target also. But still , the gdbserver was resulting in a crash
(always before accept system call).

After going through other mailing lists, I have found that this issue
is happening because of a bug in glibc libraries. I have rebuilt the
glibc libraries (2.3.5 version) for arm after deleting the
sysdeps/arm/memset.S file. I have used the newly built "libc.so.6" and
"ld-linux.so.2" for compilation and runtime environment. This time
gdbserver and other dynamically shared program worked fine.

May be you can give this step a try. I have followed the steps for
building toolchain from http://frank.harvard.edu/~coldwell/toolchain/

Regards,
Dinesh

++ Sent by Chetan Kapoor on behalf of Dinesh Arora ++

***********************  FSS-Unclassified   ***********************

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: init (busybox) problem on OSK5912
@ 2006-05-10  7:08 Chetan Kapoor
  0 siblings, 0 replies; 9+ messages in thread
From: Chetan Kapoor @ 2006-05-10  7:08 UTC (permalink / raw)
  To: linux-omap-open-source; +Cc: egallofin



^ permalink raw reply	[flat|nested] 9+ messages in thread
* Fw: init (busybox) problem on OSK5912
@ 2006-05-04  7:19 Chetan Kapoor
  2006-05-04  7:59 ` Eduardo Gallofin
  0 siblings, 1 reply; 9+ messages in thread
From: Chetan Kapoor @ 2006-05-04  7:19 UTC (permalink / raw)
  To: Eduardo Gallofin; +Cc: linux-omap-open-source

Ed

Could you tell me where is the option of compiling busybox with or without 
shared libs. I have Busybox 1.0.0 running on OMAP 730 P2, it was fine till 
we used the included apps (ls, pwd etc), but we then tried running 
gdbserver on the target, which gives a segmentation fault while running, 
seems as if my problem is also related to shared libs. Also, I had to 
manually copy libc-2.3.2.so & libthread_db-1.0.so to make gdbserver start 
on the target, before which we were not even able to launch gdbserver on 
the target.

If I complie Busybox with shared libs, will I see a 'lib' folder at path 
/lib or /usr/local/lib on the target's rootfs?

Your reply will be of great help.

Cheers!!

Chetan
 



Eduardo Gallofin <egallofin@yahoo.com> 
Sent by: linux-omap-open-source-bounces@linux.omap.com
05/04/2006 12:17 PM


To
linux-omap-open-source@linux.omap.com
cc

Subject
init (busybox) problem on OSK5912






I'm replying to my own query to give update ....

I managed to have init working by using an older
version of busybox (1.00-pre8), however another
problem happens with /bin/sh (ash) crashing and
restarting over and over.

The problem seems to happen only when busybox is
compiled with shared libraries. other busybox applets
(like ls -l) also terminate with segmentation fault.
strace shows that they seg fault when connecting or
binding to a socket.

any thoughts why these only happen with shared
libraries?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source



***********************  FSS-Unclassified   ***********************

***********************  FSS-Unclassified   ***********************

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20060503194919.7EDC38062D@linux.omap.com>]
[parent not found: <20060501170002.24B3A8062B@linux.omap.com>]

end of thread, other threads:[~2006-05-10  7:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-10  7:21 init (busybox) problem on OSK5912 chetan.kapoor
  -- strict thread matches above, loose matches on Subject: below --
2006-05-10  7:38 Chetan Kapoor
2006-05-10  7:08 Chetan Kapoor
2006-05-04  7:19 Fw: " Chetan Kapoor
2006-05-04  7:59 ` Eduardo Gallofin
     [not found] <20060503194919.7EDC38062D@linux.omap.com>
2006-05-04  6:47 ` Eduardo Gallofin
2006-05-04 16:43   ` andrzej zaborowski
2006-05-05  0:10     ` Eduardo Gallofin
2006-05-05  2:39     ` Eduardo Gallofin
     [not found] <20060501170002.24B3A8062B@linux.omap.com>
2006-05-02  7:09 ` Eduardo Gallofin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox