Linux FAQ's & Manuals

next up previous contents
next: building curses and dialog up: making linux installation disks previous: building uclibc   contents

building busybox

first cd into the $myboot/busybox-0.60.5 subdirectory.

edit the file conf.h as follows:

edit the makefile as follows:

now build the program.

 make make prefix=$myboot/rootfs install 

because you have linked with the dynamic uclibc library and these are not installed in the host system's /lib directory, the program cannot run. there is a trick to work around it: by using the chroot command, you can run a program whose root directory is the specified directory. become root and type the following command:

 /usr/sbin/chroot $myboot/rootfs /bin/sh 
the shell that you are now in is the shell inside the $myboot/rootfs directory. this shell thinks that this rootfs directory is in fact the root directory: even the shared libraries of uclibc in the /lib directory will be found. type the command ls / and it will be clear. exit the chroot subshell with control-d and everything will be back to normal.

now you have most common unix utilities including an editor and a shell and you've spent only 614kb of disk space!


next up previous contents
next: building curses and dialog up: making linux installation disks previous: building uclibc   contents
lennart benschop 2003-07-16