[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Building microblaze toolchain
Scott Thibault wrote:
> In my continued quest to build microblaze uClinux executables on
> Windows, I'm trying to build the tool chain with MinGW. I tried using
> the EDK 6.3 cross-compiler, but I get a bad magic error when trying to
> load them under uClinux. I'm guessing here that there are some version
> differences between the uClinux and the EDK toolchain.
Nothing so serious - to build uClinux executables you have to use a
special little tool called elf2flt - it converts elf binaries into so
called "flat binaries" with relocation information.
Here's what to do - in your edk6.3 toolchain, rename mb-ld to
mb-ld.real, and copy the mb-ld file from a linux toolchain. It's
actually a script, so it should run just fine under some sort of *n*x
This script is a wrapper that runs elft2flt if necessary, and passes
files on to the real linker (mb-ld.real).
Then grab the elf2flt sources from cvs.uclinux.org - configure and build
it, put it in your toolchain bin directory renamed as mb-elf2flt
The configuration is a little tricky, you have to point it at various
BFD and libiberty headers and libs that are produced when you build the
binutils. ./configure --help will tell you the options you need to provide.
> In any case, the Web site references a build_toolchain script file, but
> I can't find it anywhere. Where do I get this file?
I'll have a look - I got all enthusiastic about putting up toolchain
build instructions a while ago, but it sort of died...
> I just tried ./configure; make in the binutils directory and everything
> when okay (after a few trials), but I get something with the host and
> target = i686-pc-mingw32.
You'll need to specify target=microblaze...
microblaze-uclinux mailing list
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/