Cross compiling and running code on the ETRAX processor

Connect to hadeb05 computer

Type ssh .

Set environment variables for your Development Board/ Device Server SDK

Change to your devboard directory and type . initenv . If devboard is not installed, see InstallationOfAxisDeveloperBoardDeviceServerSDK for more information.

Cross compile your c program helloWorld

If you don't have a helloWorld program, downoad it from here: helloWorld.c Now cross compile with criss: martin@hadeb05:~/devboard-R2_01/apps/helloWorld> cris-gcc helloWorld.c -o helloWorld -mlinux

This seems to be the command with the least arguments, otherwise look at the Makefile .

Copy your program to the disk the ETRAX processor is using

Copy with secure copy (scp), e.g.: martin@hadeb05:~/devboard-R2_01/apps/helloWorld> scp helloWorld hadaq@lxhadesdaq:/var/diskless/etrax/martin/ .

Log in on the ETRAX processor

Type telnet de-etrax020 . You are asked for a username and a password. Enter root as username and the corresponding password.

Run the program

Now change to your directory, e.g. cd /home/hadaq/martin/ , and run the program: ./helloWorld

-- MartinFeldmann - 23 Oct 2006

  • Makefile: A makefile which was stolen and modified to let programs be cross compiled with more ease
Topic attachments
I Attachment Action Size Date Who Comment
MakefileEXT Makefile manage 0.5 K 2006-10-25 - 08:41 UnknownUser A makefile which was stolen and modified to let programs be cross compiled with more ease helloWorld.c manage 0.1 K 2006-10-25 - 08:34 UnknownUser simple helloWorld program
Topic revision: r4 - 2006-10-26, MartinFeldmann
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)