Noob question on adding programs to Busybox
Bernd Petrovitsch
bernd at petrovitsch.priv.at
Wed Feb 10 17:30:41 UTC 2010
On Mit, 2010-02-10 at 10:02 -0700, Pete Helgren wrote:
[...]
> Here is the situation: I have a device that has Busybox installed
> (BusyBox v1.1.3 (2007.10.23-16:18+0000) Built-in shell (ash) ). What is
> missing in this particular build on this device is any kind of http
> server. I want to be able to send a request to the device and have it
The (current) busybox-1.15*.rpm on Fedora 12 has an httpd. Usual
small/embedded HTTP servers are boa, thttpd and/or lighttpd. There are
others but I don´t know them.
> return a file to me. After looking at the options, it seems that an
> http server, with maybe a cgi app that parses and returns the data might
> be the easiest way to do it. I could probably do it with FTP as well.
Yes, sounds like a classical CGI-App (oder FastCGI).
> The whole idea is to send a request for data, query the sqlite DB and
> send back a file of the data.
The next question is how to implement that CGI-program/script.
> So, finally, the question: Can I compile an application on Busybox and
> have it work? Or, do I need to follow the cross compile instructions
Should be. If calling "/bin/busybox" - or wherever it lives on your
system - doesn´t reveal "httpd", you can rebuild busybox and include the
httpd applet.
If the above version is too old, perhaps you can replace it with a newer
one. That might be tricky and risky BTW (and cross-compiling a complete
independent http server maybe the risk-less way to go).
Bernd
--
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.at
More information about the busybox
mailing list