[BusyBox] busybox and uClibc booting problem

Tim M. Sanders tsanders at thesanders.org
Thu Mar 14 00:15:04 UTC 2002


This is for an i386 system.
Dynamic library build versus static build of busybox.

I installed busybox.stable.  I installed uClibc.  Both from CVS.
I compile uClibc.  And then do "make install".
I compile busybox, changing the makefile to use the uClibc libs 

    # To compile vs uClibc, just use the compiler wrapper built by uClibc...
    # Everything should compile and work as expected these days...
    CC=/usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc

I follow the instructions in the bootfloppy directory of busybox for
creating a boot disk.  It appears as if the there is a bug:

    mkdir loop/lib
    (chdir to uClibc directory)
    cp -a libc.so* uClibc*.so \
    ld.so-1/d-link/ld-linux-uclibc.so* \
    ld.so-1/libdl/libdl.so* \
    crypt/libcrypt.so* \
    (path to)loop/lib

When I compile uClibc I do not have an ld.so-1 directory.  So I just
copy the entire uClibc/lib directory to the root filesystem's lib/ dir.
I finish with the instructions.  When I boot my system the kernel can
not find an init routine.

    Kernel panic:  No init found.  Try passing init= option to kernel.

However, if I build busybox statically, it works as it should because it
does not need any of the libs.  But I want the dynamic version to work.
Obviously it works because the mailing list is full of people who have
gotten it to work.  I am obviously missing something simple.  

Can anyone please help me.

thanks.


-- 

============================
Tim M. Sanders
tsanders at thesanders.org



More information about the busybox mailing list