[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Instructions for compiling uClibc?



Hi Chris,

On Sat, May 30, 2009 at 5:12 PM, Chris Ziomkowski <cziom@xxxxxxxxx> wrote:
> I am attempting to use petalinux-v0.30-rc1 in a project. I have been working
> on it for several months, and .40 was not available at the time. Upgrading
> would not be practical at the moment, so if you can reference the .30
> release in any response that would be ideal.

Are you using the 2.6 or 2.4 kernel?

> My current problem is that libc.a is not properly synchronized with the
> kernel system calls.  When I do an ls from busybox, I see all the file
> attributes returned as zero. When I place traps in the kernel, I can see the
> attributes are being properly returned.

Hmmm, very strange.

> When I attempted to start debugging uClibc to figure out what was going on,
> I realized that the code is actually using a precompiled libc.a from the
> toolchain. The source for uClibc is included in the distribution, but there
> are no make rules to actually recompile it.

> Can someone suggest the steps I need to take to recompile uClibc? Has anyone
> actually successfully done this for microblaze ? At the beginning of this
> project I did try and get the entire gcc toolchain to recompile from source,
> until I found out that gcc-4.3 won't actually build the cross compiler. At
> that point, I gave up and downloaded the precompiled binary. Apparently this
> already had libc.a and I didn't realize until now that uClibc was never
> built.

In menuconfig, under the top level kernel/library option, you can
change "C library" from "none" to "uClibc", and this will cause a
local uClibc build.  However, this is not recommended and should not
be necessary.

I'm pretty surprised you've found this to be necessary to be honest.

Regards,

John
-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/