[NTLUG:Discuss] cross-compile to vxworks (m68k) from linux

Corley, Mark mark.corley at lmco.com
Thu Aug 19 15:07:28 CDT 1999


Hi Seth,

I personally don't have any experience trying to compile to a VxWorks target
under Linux; however, I have run across this web page that supposedly has
some details about doing what you are contemplating:

	http://kofa.as.arizona.edu/vxworks/

The person who did this work seems to have built a cross-compiler version of
gcc (and it supporting GNU utilities) using a "-target" option to configure
of the following:

	i386-wrs-vxworks

which builds a cross version of gcc for an Intel x86 processor running
VxWorks. They also refer to building a cross version of gcc to m68k
processor running VxWorks using a "--target" option to configure of the
following:

	m68k-wrs-vxworks

The page is pretty detailed and definitely worth checking out.

Hope that this helps!!

later,
mark
--------------------------------------------------------------
email(home) => macorley at ticnet.com
email(work)  => mark.corley at lmco.com
"y2k compliant since 32nd Februark 00"


> ----------
> From: 	Seth Daniel[SMTP:seth at ti.com]
> Reply To: 	discuss at ntlug.org
> Sent: 	Thursday, August 19, 1999 2:04 PM
> To: 	discuss at ntlug.org
> Subject: 	Re: [NTLUG:Discuss] cross-compile to vxworks (m68k) from
> linux
> 
> I'm beginning to suspect that my target is wrong.  I have a few
> pre-compiled binaries that work fine under vxworks, but if I 
> run a ``m68k-elf-nm'' on one of these binaries it complains
> that it doesn't recognize the format.  I wonder if there are more
> m68k targets for gcc than m68k-coff and m68k-elf??  
> 
> On Thu, Aug 19, 1999 at 01:27:30PM -0500, Greg E wrote:
> > When you cross-compile for another target you need to link with
> > libraries for that target as well.  I'm not familar with vxworks
> > off hand, I assume it's an OS for the device?  Device dependend
> > libraries and drivers you will either need to get from the OEM or
> > develop yourself.  Check the GNU site for a generic m68k 
> > cross-compiler.
> > 
> > Greg E
> > 
> > 
> > Seth Daniel wrote:
> > > 
> > > Greg,
> > > 
> > > I have no less than two cross-compilers compiled
> > > here.  One is GCC which targets "m68k-coff" platforms, the
> > > other targets "m68k-elf" platforms.  I compiled a simple
> > > hello world program and attempted to ``ld'' the program
> > > from the vxworks prompt.  Neither one worked.  I don't
> > > know if it's something obvious I'm missing in the code
> > > portion, or if it's something with the cross-compiling.
> > > Either way I could not get it to work. :o(
> > > 
> > > I can send the code, or the output from ``ld'' if anyone
> > > thinks they can help.
> > > 
> > > On Thu, Aug 19, 1999 at 10:19:43AM -0500, Greg E wrote:
> > > > Seth Daniel wrote:
> > > > Seth,
> > > >
> > > > Cross-compilers are really pretty simple as all they really do is
> > > > produce the code native to the target selected.  I've never looked
> > > > for a Linux cross-compiler but I'd be supprised if GNU doesn't have
> > > > one considering Linux runs on M68K systems.  If the worst case and
> > > > you can't find a Linux version you could get a DOS version and run
> > > > it with dosemu.  I use to use a cross-compiler in the MK Tool Kit
> > > > package several years ago that was pretty good, don't know about
> > > > cost and I can't remember the company off hand but they were out
> > > > of Canada.  Another company here in Dallas called Microtech Research
> > > > makes an Xray68k product that would work, atleast use to make.  I've
> > > > been out of embedded work for almost 5 years so I've lost touch with
> > > > the status of the current available tools.
> > > >
> > > > Greg E
> > > >
> > > >
> > > > >
> > > > > All,
> > > > >
> > > > > A quite a bit different question from all the talk about
> > > > > Linux Demo Day.
> > > > >
> > > > > Basically I have a device which runs vxworks.  It contains
> > > > > a Motorola 68xxx chip.  I'd like to do some programming for
> > > > > this in my spare time, but I don't have the cash to pay
> > > > > Wind River (http://www.windriver.com) for the full development
> > > > > environment.  Even if I could I don't believe it would run under
> > > > > Linux.
> > > > >
> > > > > --
> > > > > seth daniel
> > > > >
> > 
> > _______________________________________________
> > http://ntlug.org/mailman/listinfo/discuss
> 
> -- 
> seth daniel  |  Texas Instruments DMOS4/5
> seth at ti.com  |   Automation Engineering
> 
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
> 




More information about the Discuss mailing list