[BusyBox] ifupdown package

Tony Saladino tsaladino at broadcom.com
Mon Jun 30 13:43:22 UTC 2003


Eric,

I think I may have found the problem.  I was using the stable stream.  I
believe you were using the unstable stream.

In applets.h of the unstable stream(busybox-unstable-20030630.tar.bz2) it's
written this way:

#ifdef CONFIG_IFCONFIG
	APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_IFUPDOWN
	APPLET(ifdown, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_IFUPDOWN
	APPLET(ifup, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_INETD
	APPLET(inetd, inetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
#endif

whereas in the stable stream(busybox-stable-20030630.tar.bz2) it's this way:

#ifdef BB_IFCONFIG
	APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
#endif
#ifdef BB_INIT
	APPLET(init, init_main, _BB_DIR_SBIN)
#endif

The 0.60.5 release used by buildroot is the same way, and when I did it by
hand, I used the 0.60.5 release.

Also, the unstable release has ifupdown.c in the networking directory while
ifupdown.c does not exist in the stable release.

As an aside, the version of applets.h that includes ifupdown is revision
1.76 submitted on Nov 9, 2002, while 0.60.5 was released on Oct 26, 2002.
This means that it would not have been in the official release downloaded by
buildroot anyway.


Tony

-----Original Message-----
From: Erik Andersen [mailto:andersen at codepoet.org]
Sent: Wednesday, June 25, 2003 4:09 PM
To: Tony Saladino
Cc: 'Andrew Dennison'; busybox at busybox.net
Subject: Re: [BusyBox] ifupdown package


On Wed Jun 25, 2003 at 03:29:25PM -0400, Tony Saladino wrote:
> I still don't have ifup and ifdown on my system.
>
> I've re-built using buildroot from scratch.  I've attached the buildroot
> Makefile, busybox.config, and busybox.links files.

Just out of curiosity...  What do you see when you
run the 'locale' command on your build system?

It does not appear you are cross compiling.  You are doing a
native build on a mipsel box, right?  I have run buildroot
natively on my mipsel box within the last week.  Busybox built
properly and 'busybox ifup' works as expected...

> I did some editting of the Makefile,
> I did some editting of the Makefile, but busybox.config and busybox.links
> are automatically generated and I did not touch them.  busybox.config has
> CONFIG_IFUPDOWN=y.  I also editted the system-linux.mk file, to have it
> point to the kernel that I'm using.

ok.

> After loading the rootfs, I checked "busybox ifup -a" and it returned:
> "ifup: applet not found".

Since you are using buildroot...  Try doing

    rm -rf build_mipsel/busybox* sources/dl/busybox*

and then running make again.  It is possible there is
some stale stuff lurking somewhere.

My current best guess is there is some bit of either busybox or
buildroot that is improperly locale dependant.  But that is just
an operating guess at the moment.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--






More information about the busybox mailing list