On 06/16/11 17:08, Dan Fandrich wrote:
On Thu, Jun 16, 2011 at 02:50:47PM +0200, Berend Dekens wrote:
I am attempting to build busybox for a Microblaze system.
While I have found old, prebuild busybox versions (giving me the
impression it should work, or worked in the past) my own attempts
have gotten me nowhere. I am using the Xilinx 12.2 GCC build chain
(which sets the __MICROBLAZE__ define).
For example, the first issue I run into is that "byteswap.h" is
missing. When I modify "platform.h" to use the other headers if
__MICROBLAZE__ is set, I get the error that "features.h" could not be
found and so on.
So is Microblaze no longer supported or is there some special way to
build busybox? The lack of documentation about busybox on this
platform is rather discouraging.
You don't say what your target OS is or what libc you're using. Busybox
is targetted at Linux with glibc or uClibc and that's what it's mostly
tested on. The processor shouldn't matter (mostly) as long as as there's
a gcc for it, which yours clearly has. There is some support for other
OSes and libcs, but you'll find that not all applets will compile.
Cheers for your answer.
When I started out, I tried to build glibc or uClibc for Microblaze but
I didn't know if I could get busybox to compile without it ( it seems
not ;-) ). While uClibc supports the Microblaze CPU, it does not support
the Xilinx MMU (strange as the linux kernel does). In my system, the MMU
is used so that a problem. As it seems impossible to build glibc or
uClibc for Microblaze with MMU support, I reverted to a prebuild
GCC+GLIBC from http://xilinx.wikidot.com/mb-gnu-tools .
Using this toolchain busybox compiled and ran fine.
Regards,
Berend Dekens
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox