Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To develop RCE code:

Code Block

ssh rdusr102 #machine in lab1

...


#ssh rddev102 #if you want to then go to a sometimes faster build machine

...



source /afs/slac/g/npa/setup/npa_49.csh

#if If you don't already have a release area setup, you need to make one:

Code Block

cvs co -d <mydir> release

...


cd <mydir>

...


cvs co rce

...


cvs co rceusr

...


cvs co rceapp

...



#for example see ~ahaas/myrelease_new

Then build:

Code Block

gmake ppc-rtems-rce405-dbg #builds rce apps

...


#gmake i386-linux-dbg #if you want to build linux apps

To run netbeans:

Code Block

source /afs/slac/g/npa/setup/npa_49.csh #make sure you've done this first
~ahaas/netbeans-6.5.1/bin/netbeans &

Import your release area via:

"File->New Project..."

"C/C++ Project From Existing Code"

"Existing Makefile:" enter the "<release directory>/Makefile"

Change "Build Command:" to "gmake ppc-rtems-rce405-dbg"

Next, Next, Finish, then build the project.

To run RCE code:

Code Block

telnet rce22

...


root (nopass)

...



mount -t nfs 172.21.5.150:/nfsexport/home /nfs #got ip address from "mount" on rddev102

...


cd /nfs/ahaas/myrelease_new/build/rceapp/mod/ppc-rtems-rce405

...


runtask -N test ./hellomod.1.0.test.so

Other handy RCE commands:

Code Block

task

...


cpuuse

...


stackuse

...


stoptask -N test

...


syslog

...


syslog -l 10 #just last ten lines

...


syslog -c #clear (see myrelease_new/rce/shell/src/syslog.cc)