Building an old uClibc version with gcc

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Tue Aug 23 03:01:10 UTC 2011


On Tue, Aug 23, 2011 at 02:29:58PM +1200, Ian Barnes wrote:
> Hopefully I have picked a suitable list for this question, I realise this
> isn't strictly a development question - but I couldn't find a better place
> to ask.
> 
> I have an embedded appliance running linux that I am trying to build a tool
> chain for. The manufacturer supplies no tool chain, they don't even follow
> the GPL. I know that the appliance is based on the following software:
> 
> linux-2.6.22.19
> gcc-3.4.2
> uClibc-0.9.27
> 
> I have a reasonable experience with linux and embedded systems, but I have
> never built a cross compiler before. I understand the easiest option is to
> use the buildroot system that will download the sources and compile a
> toolchain. In my instance I don't think this is possible because I am tied
> to using the specific versions above and they are not selectable options in
> the current buildroot system.
> 
> I have done a lot of searching in google and found quite a few sites that
> describe some of the process at varying points in time, and of varying
> quality. But I have not found something definitive that I have been
> confident is the correct/optimal procedure.
> 
> Could anyone point me to a suitable guide on the steps I should follow to
> compile the tool chain? My end goal is to compile a small httpd server that
> I can run on the existing firmware in the appliance.

Given the way uclibc is configured, I suspect that if you don't match
the kernel config and uclibc config, your binaries might not run
on the system.  They might, but they might not.  It can be tricky.
Now if you happen to be staticly linking then you may have more luck,
as long as the kernel likes what you are giving it.

So what CPU architecture is it running?

-- 
Len Sorensen


More information about the uClibc mailing list