Ticket #1116 (closed defect: fixed)
busybox 1.2.1 is old and broken -- 1.7.2 works fine
| Reported by: | cwixon@… | Owned by: | mickey@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Applications & Dependencies | Version: | 2007.2 |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
Openmoko images and builds include busybox 1.2.1, but the command 'which' (and
who knows what else) is broken in that crufty old version of busybox:
$ which ls
* glibc detected * which: free(): invalid next size (fast): 0x000c4058 *
Aborted
Here's how busybox 1.2.1 is apparently selected:
openmoko.conf requires . . .
angstrom-2007.1.conf, which in turn includes . . .
angstrom-2007-preferred-versions.inc, which specifies . . .
busybox 1.2.1
Busybox 1.7.2 is much newer, builds without issues, and (at least) 'which' seems
to work much better. angstrom-2008.1.conf specifies this newer version, but
unless/until openmoko adopts that entire configuration, consider adding:
PREFERRED_VERSION_busybox ?= "1.7.2"
to openmoko.conf.
Change History
comment:2 Changed 5 years ago by cwixon@…
The newest version for which there is a recipe in upstream OE remains 1.7.2 --
but I see poky does indeed have 1.8.2 in their own repository. Hey guys, push
that up!
http://svn.o-hand.com/repos/poky/trunk/meta/packages/busybox/busybox_1.8.2.bb
That's a problem for OE, not OM, but I'll leave this bug open because by default
it's still broken (presumably until the next snapshot, at least).
comment:3 Changed 5 years ago by cwixon@…
The default set of utilities configured by busybox could also stand to be
updated. In both 1.2.1 and 1.7.2 (and for that matter, 1.8.2 in Poky's
repository), the provided (default) defconfig specifies:
- no 'nice' command (but 'renice' is there);
- 'xargs' doesn't support the '-0' flag (even though 'find' has '-print0'); and
- 'find' doesn't have the '-delete' expression
Other changes might also be useful, so I'd encourage a thorough re-evaluation of
all of the default options by someone who knows their stuff.
And to fix part of another bug I submitted (that would be #870), I
personally would set "CONFIG_INSTALL_NO_USR=y" so people can mount a memory card
partition at /usr and still allow the boot/init process to complete successfully
without it.

Poky has 1.8.2 working (non-default) if you want it