Go to Post I've be addicted for 15 years. Tried to quit but failed. - Gdeaver [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #25   Spotlight this post!  
Unread 04-01-2009, 03:10
spicyj spicyj is offline
Registered User
FRC #2036
 
Join Date: Jan 2009
Location: Boulder, CO
Posts: 3
spicyj is an unknown quantity at this point
Re: Anyone install windriver on linux yet?

Quote:
Originally Posted by AustinSchuh View Post
I guess you could compile your own cross compiler, but that sounds like a lot of unnecessary work and that could introduce problems in the output executable.
I think I did it. After installing the latest WindRiver update on Windows, copy the entire C:\WindRiver\vxworks-6.3\target\ directory to your Ubuntu box, and put it in a directory that we'll use for the build files (~/frc/ or similar works just fine).

On your Ubuntu box, cd to the directory you just made for the build files, then run these commands in order: http://pastie.org/352039 (you can change $PREFIX to change the install directory). Those instructions should be accurate for building gcc to cross-compile to Ubuntu. Included is a patchfile for what seems to be a fix to be a small problem with the libgcov code.

When you finish, you should have a complete cross-compiler suite in /usr/local/powerpc-wrs-vxworks, complete with binaries, headers, and static libraries. PLEASE tell me if you find any errors with what I've written up. (P.S. Whenever you use this compiler, you should need to have $WIND_BASE and $WIND_USR set; also required is a preprocessor flag _WRS_KERNEL which you can specify on the gcc command line using the argument -D_WRS_KERNEL.)


Now that the compiler works (well, for me, at least), it seems like it's time to try to get the SimpleRobot kernel-module example code template to compile using this compiler. Right now I'm getting problems with case sensitivity and load path order. Can someone try to get that working? My Makefile attempt is at http://gist.github.com/43030.

My final concern is how to upload an application to the cRIO into the RAM (not saving into flash memory). Seems like FTP is only for using the flash memory, but for code debugging, RAM is much less dangerous. Anyone figure out how to do this? Maybe we need to reverse-engineer the communications between Workbench and the cRIO.

Last edited by spicyj : 04-01-2009 at 04:29.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble booting Linux from hard drive after CD install edomus Technical Discussion 2 01-11-2004 08:03
Anyone registered yet? Gary Dillard General Forum 54 20-10-2004 01:22
anyone know how to install gallery on a webserver? Greg Needel Website Design/Showcase 5 19-08-2004 14:40
anyone at epcot yet? Jgreenwd1 Chit-Chat 3 24-04-2002 18:26


All times are GMT -5. The time now is 08:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi