[BusyBox] newbie question

Vladimir N. Oleynik dzo at simtreas.ru
Thu Jun 28 11:24:47 UTC 2001


Mark Whitley wrote:
> 
> On Thu, Jun 28, 2001 at 09:48:29AM -0600, Erik Andersen wrote:
> > On Thu Jun 28, 2001 at 11:15:22AM -0400, John F Davis wrote:
> > >
> > > When, I do a make install in the busybox tree, I get a directory which
> > > contains:
> > >      /bin
> > >      /sbin
> > >      /usr
> > >
> > > I don't get a /etc, /dev/, or /proc filesystem.  Dont you have to have
> > > those
> > > inorder to have a working system?
> >
> > Busybox (by itself) will no give you a fully working system unless you
> > statically link it.  You typically need to add in all those other things
> > to build a working system.  The things you install depend heavily on what
> > your system is supposed to do.
> 
> John, if you want to see an example of a minimal, working system that uses
> busybox and uClibc, check out the bootfloppy/ directory in the busybox/ dir.
> As the name suggests, you can use it to build a working bootfloppy. If you
> just look at the scripts, you can see what's going on and get an idea of
> what's needed to make a working system.

Also my HOWTO: first lines from my rc script:
1) requires only /bin/sh (sym)link to busybox
2) enable BB_MAKEDEVS (default disable)

#!/bin/sh
busybox mount -a
busybox mkdir mnt floppy tmp var var/lock var/run sbin usr/sbin home
busybox --install

cd /dev
M=makedevs
echo $M
$M hda b 3   0 0 8 s
$M hdb b 3  64 0 8 s
$M hdc b 22  0 0 8 s
$M hdd b 22 64 0 8 s
$M sda b 8   0 0 4 s
$M sdb b 8  16 0 4 s
$M sdc b 8  32 0 4 s
$M sdd b 8  48 0 4 s
$M sde b 8  64 0 4 s
$M sdf b 8  80 0 4 s
$M sdg b 8  96 0 4 s
$M sdh b 8 112 0 4 s
$M ttyS c 4 64 0 9
$M lp c 6 0 0 2
$M loop b 7 0 0 7
.....
cd /
echo /bin/sh > etc/shells
syslogd -O /dev/tty3 & 
update &



--w
vodz





More information about the busybox mailing list