Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The path is now set for "busybox", FreeBSD style

12 views
Skip to first unread message

Adrian Chadd

unread,
Nov 13, 2010, 10:40:20 PM11/13/10
to
Hi everyone,

I've committed the below changes to -HEAD. You can now create and build your
own busybox style binary system, completely cross-compiled within the
existing Make framework. It isn't as impressive as it sounds though - a lot
of the framework is already there from just building crunchgen'ed
rescue/sysinstall binaries.

There's a few things which should be done. Specifically, being able to build
an alternative set of libraries before building the crunchgen target. The
base crosscompile system may include support for PAM, Kerberos, ATM/IPX, etc
but you may not want your crunch'ed image to have them. To do this right
now, you have to disable these features in the main build. That may be OK
for some.

But just to stress it - I've got a couple of access point images at home
running a crunchgen'ed environment under MIPS and besides the obvious binary
bloat, it works perfectly well. Besides a cut-down startup framework, the
image cross-builds entirely from the base FreeBSD source tree.

Let me know if you'd like to give it a shot and I'll put my "bsdbox"
Makefile scripts online to try.


Adrian

On 5 October 2010 10:36, Adrian Chadd <adr...@freebsd.org> wrote:

> Hi,
>
> I've broken out the crunchgen logic from src/rescue/rescue into a
> share/mk file - that way it can be reused in other areas.
>
> The diff is here: http://people.freebsd.org/~adrian/crunchgen-mk.diff<http://people.freebsd.org/%7Eadrian/crunchgen-mk.diff>
>
> This bsd.crunchgen.mk file is generic enough to use in my
> busybox-style thing as well as for src/rescue/rescue/.
>
> Comments, feedback, etc welcome!
>
>
> Adrian
>
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

John Hein

unread,
Nov 14, 2010, 12:43:38 PM11/14/10
to
Adrian Chadd wrote at 11:40 +0800 on Nov 14, 2010:
> I've committed the below changes to -HEAD. You can now create and build your
> own busybox style binary system, completely cross-compiled within the
> existing Make framework. It isn't as impressive as it sounds though - a lot
> of the framework is already there from just building crunchgen'ed
> rescue/sysinstall binaries.
>
> There's a few things which should be done. Specifically, being able to build
> an alternative set of libraries before building the crunchgen target. The
> base crosscompile system may include support for PAM, Kerberos, ATM/IPX, etc
> but you may not want your crunch'ed image to have them. To do this right
> now, you have to disable these features in the main build. That may be OK
> for some.
>
> But just to stress it - I've got a couple of access point images at home
> running a crunchgen'ed environment under MIPS and besides the obvious binary
> bloat, it works perfectly well. Besides a cut-down startup framework, the
> image cross-builds entirely from the base FreeBSD source tree.
>
> Let me know if you'd like to give it a shot and I'll put my "bsdbox"
> Makefile scripts online to try.

That's great.
I assume it be not be hard for someone to take your scripts as a
starting point and create a sysutils/bsdbox akin to sysutils/busybox?

Dirk-Willem van Gulik

unread,
Nov 15, 2010, 8:48:52 AM11/15/10
to

On 14 Nov 2010, at 03:40, Adrian Chadd wrote:

> I've committed the below changes to -HEAD. You can now create and build your
> own busybox style binary system, completely cross-compiled within the
> existing Make framework. It isn't as impressive as it sounds though - a lot
> of the framework is already there from just building crunchgen'ed
> rescue/sysinstall binaries.

Wonderful !

> Let me know if you'd like to give it a shot and I'll put my "bsdbox"
> Makefile scripts online to try.

Yes please,

Dw._______________________________________________

Adrian Chadd

unread,
Nov 16, 2010, 10:07:09 PM11/16/10
to
Nope. it's easy. That's why I've done it.

Adrian

On 15 November 2010 01:43, John Hein <jh...@symmetricom.com> wrote:

> Adrian Chadd wrote at 11:40 +0800 on Nov 14, 2010:

> > I've committed the below changes to -HEAD. You can now create and build
> your
> > own busybox style binary system, completely cross-compiled within the
> > existing Make framework. It isn't as impressive as it sounds though - a
> lot
> > of the framework is already there from just building crunchgen'ed
> > rescue/sysinstall binaries.
> >

> > There's a few things which should be done. Specifically, being able to
> build
> > an alternative set of libraries before building the crunchgen target.
> The
> > base crosscompile system may include support for PAM, Kerberos, ATM/IPX,
> etc
> > but you may not want your crunch'ed image to have them. To do this right
> > now, you have to disable these features in the main build. That may be
> OK
> > for some.
> >
> > But just to stress it - I've got a couple of access point images at home
> > running a crunchgen'ed environment under MIPS and besides the obvious
> binary
> > bloat, it works perfectly well. Besides a cut-down startup framework,
> the
> > image cross-builds entirely from the base FreeBSD source tree.
> >

> > Let me know if you'd like to give it a shot and I'll put my "bsdbox"
> > Makefile scripts online to try.
>

> That's great.
> I assume it be not be hard for someone to take your scripts as a
> starting point and create a sysutils/bsdbox akin to sysutils/busybox?
>
_______________________________________________

0 new messages