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

Re: [microblaze-uclinux] bridge-utils conversion to flat binary



Thanks--the program is executing now.

However, my "friend" couldn't figure out how to apply the patch so he did it
manually but looking at the file.  For future reference, how should he have
done it using the patch command?

I hope this patch can be submitted to the mainline uclinux repository. 
However, I still don't see the GPIO update at
http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/uClinux-dist/vendors/Xilinx/uclinux-auto/Makefile?rev=1.1.1.4;content-type=text%2Fplain
Do you know the schedule for the next uClinux-dist release(s)?

Paul

Quoting John Williams <jwilliams@xxxxxxxxxxxxxx>:
> Hi Paul,
>
> Paul Hartke wrote:
> > I am working on getting bridge-utils up and running in Microblaze
> uclinux
> > but somehow the compilation isn't working properly:
> >
> > # brctl
> > BINFMT_FLAT: bad magic/rev (0x1020100, need 0x4)
> > BINFMT_FLAT: bad magic/rev (0x1020100, need 0x4)
> >  ELF   : not found
>
> It's an ELF binary, elf2flt hasn't run on it yet.
>
> > I've used
> >
>
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/wiki/index.php/OutOfTreeCompile
> > before but there is nothing specific in there about explicitly linking
> > against the uClinux libraries and converting to a flat binary.
>
> I've just tweaked that Wiki page to add the line
> PATH=$(PATH):${ROOTDIR)/tools
>
> to the out of tree Makefile.  It's necessary to pick up the ucfront tool
> that is now part of the build process.
>
> but, that's not the problem you are seeing...
>
> > user/bridge-utils/brctl/Makefile has Microblaze options in the CFLAGS
> var so
> > it knows about Microblaze uclinux.  I'm not sure where to look next...
>
> The LDFLAGS build variable (with -W,elf2flt) isn't getting passed into
> the GNU autoconfigure Makefiles.  Try the attached patch.
>
> Regards,
>
> John
>
___________________________
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/