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

Re: [microblaze-uclinux] Doing an out-of-tree application and compilingunder Windows



Hello John

John Prestwich wrote:
> So since I have not heard from anyone on this I assume
> that either I sent my inquiry to the wrong place, 

no

or
> it is a really stupid question and I should
> intuitively know the answer, 

no

or the answer is that it
> can't be done.  

no

My question is which one is it.

none of the above.

The real answer is "no-one has yet taken the time to answer your 
original question".

>>I am trying to figure out if it is possible to
>>compile
>>and out-of-tree application (i.e., an executible
>>that
>>is not part of the main distribution tree)using the
>>Xilinx tools under Windows.  

Here's problem number 1.  Development under Windows (we.g. cygwin) is 
really not supported.  See the archives of this list and uclinux-dev for 
the myriad reasons.  but, keep reading...

Several emails that I
>>have seen in the archive list lead me to believe
>>that
>>it is possible but it is obvious from my attempts to
>>compile one that I am still missing some of the
>>picture.

Yes it is possible, search the archives of this list for messages from 
Scott Thibault - IIRC he managed it a while back.

http://www.google.com.au/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=site:www.itee.uq.edu.au+thibault

If he's still subscribed, the mention of his name might catch his attention!

>>I have seen the emails that say that you need to
>>obtain a copy of mb-elf2flt that works under Windows
>>and that you need a script called mb-ld which
>>replaces
>>the program mb-ld which is then renamed mb-ld.real. 
>>After downloading the elf2flt code from
>>cvs.uclinux.org and trying to compile it, without
>>much
>>luck, 

building elf2flt can be a bit tricky until you know how (and even then). 
You need a local working copy of the libbfd.a and libiberty.a libraries 
that are part of the GNU binutils.  so, you'd need to grab the mb-gcc 
sources from xilinx, build mb-binutils, then configure elf2flt 
appropriately, and finally build it.

I looked through my EDK directories and found
>>that there is a mb-elf2flt, a mb-ld script, and a
>>mb-ld.real already there in the 7.1 version of the
>>EDK
>>tools.  I then tried to write a "hello world"
>>appplication and compile it giving the mb-gcc
>>compiler
>>either a -Wl and -elf2flt option but never was able
>>to
>>get anything that looked like it was a flat binary
>>to
>>me.

Google for "microblaze-uclinux out of tree".  It's the first hit.

>>In future reading I have seen some discussion about
>>needing to tell the compiler (linker?) to use
>>certain
>>libraries from the uCLinux distribution also.

yes.

>>
>>My questions are:
>>
>>1.  Am I on the right track using the mb-elf2flt and
>>mb-ld script that come with the 7.1 versions of EDK
>>or
>>do I really need to find a way to compile the
>>elf2flt
>>from cvs.uclinux.org?

Not really - I think you should be ok to use the version that comes with 
EDK7.1.  Try it and see..

>>2.  When I have a valid mb-elf2flt how do I get the
>>mb-gcc compiler to use it?  Or do I have to use the
>>mb-elf2flt tool separately?  Either way how is it
>>done?

See the out of tree compile tips mentioned above.

>>3.  If I do need to use libraries for the uCLinux
>>dist. which ones do I need and how do I make mb-gcc
>>use them instead of the Xilinx ones?

As above.

John

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