Bug 6794 - Busybox compiled from buildroot hangs on pass from intiramfs to init
Summary: Busybox compiled from buildroot hangs on pass from intiramfs to init
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2013.11
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 21:26 UTC by anthonysepa
Modified: 2014-02-23 14:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anthonysepa 2014-01-13 21:26:15 UTC
I use the same binary in a initramfs that processes an init script. At the time that it passes off the processing to the busybox on my rootfs as /sbin/init it hangs. If I replace the binaries with an "out of tree" compiled version it works fine.

If I replace the installed binary with the binary in the output/build/busybox-1.21.1 it works fine also. In trying to track down the problem I noticed that the installed binary is different from the built binary and was modified 3 minutes later in the build process.

I am cross compiling on a Ubuntu 64 bit machine for an arm gaming device.
Comment 1 Thomas De Schampheleire 2014-02-07 08:27:56 UTC
All binaries are stripped later in the build process, which explains the difference between the binary in output/build/busybox... and the one in output/target.

However, stripping should not affect runtime behavior.

Have you found a solution to this problem?
Is this an unmodified busybox version?

A workaround is to specify the busybox binary in option BR2_STRIP_EXCLUDE_FILES but it is not a real solution of course.
Comment 2 Thomas De Schampheleire 2014-02-23 14:48:48 UTC
Many people are using busybox inside an initramfs without problems. Therefore, I am closing this bug. If you still experience this problem, please reopen and provide more details about this problem, ideally with a reproducible configuration. Thanks.