Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2008 17:40:27 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        freebsd-stable@freebsd.org
Subject:   busybox port available (was Re: busybox and small scripting languages on FreeBSD...)
Message-ID:  <20080819154027.GA24372@onelab2.iet.unipi.it>
In-Reply-To: <4894E8C3.5060004@freebsd.org>
References:  <372128.56919.qm@web51502.mail.re2.yahoo.com> <20080802.002039.58462077.imp@bsdimp.com> <4894A9D8.2090606@freebsd.org> <20080802225643.GA84798@onelab2.iet.unipi.it> <4894E8C3.5060004@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
replying to a thread of a couple of weeks ago...

I managed to build a reasonable subset of busybox (1.11.1)
on FreeBSD, you can find patches at

	http://info.iet.unipi.it/~luigi/FreeBSD/#busybox-port

The linux-specific things (e.g. those relying on /proc or system
APIs that we don't have) clearly do not work, and I did not bother
trying to implement replacement for them.

But many userland commands do work and maybe they are useful to
have around in a small system.

A sample of the file sizes (the 'dec' column from the 'size' command):

   37136 work/busybox-1.11.1/shell/ash.o
   18492 work/busybox-1.11.1/libbb/appletlib.o
   18258 work/busybox-1.11.1/editors/vi.o
   17995 work/busybox-1.11.1/editors/awk.o
    9878 work/busybox-1.11.1/networking/httpd.o
    9289 work/busybox-1.11.1/archival/bzip2.o
    7609 work/busybox-1.11.1/editors/diff.o
    6378 work/busybox-1.11.1/miscutils/less.o
    6258 work/busybox-1.11.1/editors/sed.o
    6170 work/busybox-1.11.1/archival/gzip.o
    5367 work/busybox-1.11.1/editors/ed.o
    5317 work/busybox-1.11.1/archival/libunarchive/decompress_unzip.o
    5132 work/busybox-1.11.1/networking/wget.o
    4485 work/busybox-1.11.1/networking/traceroute.o
    4277 work/busybox-1.11.1/libbb/dump.o
    ...

overall, the binary in this configuration is around 330kb.

	cheers
	luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080819154027.GA24372>