[BusyBox] Problem executing external commands in BusyBox/ash (0.60.5)
Michael Boman
michael.boman at securecirt.com
Fri Nov 8 06:55:03 UTC 2002
On Fri, Nov 08, 2002 at 10:24:51AM +0100, Magnus Damm wrote:
> Stupid question:
>
> Did you compile the non-busybox commands yourself?
Yes
> If not - do you have the correct libraries installed?
I belive all the libraries I need are installed, but I can't check as I
can't execute external commands (so I can't run 'ldd' and check).
I compile the stuff (uClibc, BusyBox, e2fsprogs, util-linux) like this
(cut&paste from my build.sh script):
--8<---8<--
echo "Building and Installing uClibc"
(
cd $BUILDROOT/INSTALLER/usr/src/uClibc* &&
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make install
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make PREFIX=$BUILDROOT/cdrom_fs install_target
)
echo "Building and Installing BusyBox"
(
PATH=$BUILDROOT/INSTALLER/usr/i386-linux-uclibc/bin:$PATH &&
cd $BUILDROOT/INSTALLER/usr/src/busybox* &&
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make PREFIX=$BUILDROOT/cdrom_fs
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make install PREFIX=$BUILDROOT/cdrom_fs
)
echo "Building and Installing util-linux"
(
PATH=$BUILDROOT/INSTALLER/usr/i386-linux-uclibc/bin:$PATH &&
cd $BUILDROOT/INSTALLER/usr/src/util-linux* &&
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ./configure
cd fdisk
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make sfdisk
strip sfdisk
install -m 755 -o root -g root sfdisk $BUILDROOT/cdrom_fs/bin/
)
echo "Building and Installing ext2/ext3 tools"
(
PATH=$BUILDROOT/INSTALLER/usr/i386-linux-uclibc/bin:$PATH &&
cd $BUILDROOT/INSTALLER/usr/src/e2fsprogs* &&
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ./configure
CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" make
install -m 755 -o root -g root misc/mke2fs $BUILDROOT/cdrom_fs/bin/
)
--8<---8<--
Best regards
Michael Boman
> Michael Boman wrote:
> >
> > First of all I want to apology in advance for the lengthy email.
> >
> > I have installed (read copied) a few utilities from util-linux (and
> > e2fsprogs) to my installer disk (live FS on CDROM) togeather with utils
> > from BusyBox and almost everything works except executing external
> > (non-BusyBox) commands
<big snip of debugging information>
More information about the busybox
mailing list