Difference between revisions of "CAPSDAQ"
Jump to navigation
Jump to search
(14 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
=Steps to installing Their MVME5100 into ISUs CODA system= | =Steps to installing Their MVME5100 into ISUs CODA system= | ||
− | It looks like they were using VxWorks 5.4 | + | It looks like they were using VxWorks 5.4 and I use version 5.5 |
+ | |||
+ | Now I need to make a choice to either | ||
+ | |||
+ | # install VxWorks version 5.4 and run their kernel or | ||
+ | # upgrade their kernel to using VxWorks version 5.5 | ||
== Install their ROC OS== | == Install their ROC OS== | ||
+ | |||
+ | === ROC config changes=== | ||
+ | <pre> | ||
+ | [VxWorks Boot]: c | ||
+ | |||
+ | '.' = clear field; '-' = go to previous field; ^D = quit | ||
+ | |||
+ | boot device : fei0 | ||
+ | processor number : 0 | ||
+ | host name : daq1 | ||
+ | file name : /usr/local/coda/LaTechCoda/kern/5.4/vx5110-256MB | ||
+ | inet on ethernet (e) : 134.50.3.216 138:fffffc00 | ||
+ | inet on backplane (b): | ||
+ | host inet (h) : 134.50.3.210 | ||
+ | gateway inet (g) : | ||
+ | user (u) : daq | ||
+ | ftp password (pw) (blank = use rsh): | ||
+ | flags (f) : 0x20 | ||
+ | target name (tn) : roc2 | ||
+ | startup script (s) : /usr/local/coda/LaTechCoda/kern/bootscripts/roc2.boot | ||
+ | other (o) : | ||
+ | </pre> | ||
+ | |||
+ | ===New bootscript=== | ||
+ | |||
+ | in the file | ||
+ | |||
+ | /usr/local/coda/LaTechCoda/kern/bootscripts/roc2.boot | ||
+ | |||
+ | I wrote the bootscript below based on a merging of their boots script and mine | ||
+ | |||
+ | <pre> | ||
+ | # Boot file for CODA ROC 2.0 | ||
+ | # PowerPC version | ||
+ | |||
+ | hostAdd "daq1","10.1.1.1" | ||
+ | |||
+ | |||
+ | # up the sliding window | ||
+ | tcp_sendspace=0x8000 | ||
+ | tcp_recvspace=0x8000 | ||
+ | |||
+ | # Setup environment / load coda_roc | ||
+ | putenv "MSQL_TCP_HOST=localdaq" | ||
+ | putenv "EXPID=LDS" | ||
+ | putenv "TCL_LIBRARY=/usr/local/coda/2.5/common/lib/tcl7.4" | ||
+ | putenv "ITCL_LIBRARY=/usr/local/coda/2.5/common/lib/itcl2.0" | ||
+ | putenv "DP_LIBRARY=/usr/local/coda/2.5/common/lib/dp" | ||
+ | putenv "CMLOG_PORT=8102" | ||
+ | putenv "TOKEN_PORT=5555" | ||
+ | putenv "SESSION=DAQ" | ||
+ | |||
+ | |||
+ | # Download Message logging libraries/client | ||
+ | ld < /usr/local/coda/LaTechCoda/cmlog/2.0/bin/ppc-5.4/cmlogClientD | ||
+ | ld < /usr/local/coda/LaTechCoda/cmlog/2.0/lib/ppc-5.4/libcmlog.a | ||
+ | ld < /usr/local/coda/LaTechCoda/cmlog/2.0/bin/ppc-5.4/cmlogVxLogMsg | ||
+ | #cd "/usr/local/coda/2.5/VXWORKSPPC55/lib" | ||
+ | #ld < libcamac.o | ||
+ | |||
+ | cd "/usr/local/coda/LaTechCoda/VXWORKSPPC54/bin" | ||
+ | ld < coda_roc | ||
+ | #ld < caSrvr | ||
+ | # Spawn tasks | ||
+ | sp cmlogClientD | ||
+ | #sp cmlogVxLogMsg | ||
+ | taskDelay (60*5) | ||
+ | # spawn the CAMAC remote server | ||
+ | #taskSpawn "caServ",110,spTaskOptions,10000,caSrvr_main | ||
+ | # spawn the roc task | ||
+ | |||
+ | taskSpawn ("ROC",200,0x8,250000,coda_roc,"","-s","DAQ","-objects","roc2 ROC") | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | ===Copy their libraries=== | ||
+ | |||
+ | When logged into their capdaq machine I did the following commands | ||
+ | |||
+ | <pre> | ||
+ | scp -r /daq/vxworks/kern daq@134.50.3.210:/usr/local/coda/LaTechCoda | ||
+ | scp -r /apps/daq/cmlog daq@134.50.3.210:/usr/local/coda/LaTechCoda | ||
+ | scp -r /daq/apps/coda/2.5/VXWORKSPPC54 daq@134.50.3.210:/usr/local/coda/LaTechCoda | ||
+ | </pre> |
Latest revision as of 17:57, 12 April 2009
The DAQ configuration at LaTech
ROC configuration
[VxWorks Boot]: c '.' = clear field; '-' = go to previous field; ^D = quit boot device : fei0 processor number : 0 host name : capsdaq file name : /daq/vxworks/kern/5.4/vx5110-256MB inet on ethernet (e) : 138.47.37.31:fffffc00 inet on backplane (b): host inet (h) : 138.47.37.25 gateway inet (g) : user (u) : daq ftp password (pw) (blank = use rsh): flags (f) : 0x20 target name (tn) : roc2 startup script (s) : /daq/vxworks/kern/bootscripts/roc2.boot other (o) :
Steps to installing Their MVME5100 into ISUs CODA system
It looks like they were using VxWorks 5.4 and I use version 5.5
Now I need to make a choice to either
- install VxWorks version 5.4 and run their kernel or
- upgrade their kernel to using VxWorks version 5.5
Install their ROC OS
ROC config changes
[VxWorks Boot]: c '.' = clear field; '-' = go to previous field; ^D = quit boot device : fei0 processor number : 0 host name : daq1 file name : /usr/local/coda/LaTechCoda/kern/5.4/vx5110-256MB inet on ethernet (e) : 134.50.3.216 138:fffffc00 inet on backplane (b): host inet (h) : 134.50.3.210 gateway inet (g) : user (u) : daq ftp password (pw) (blank = use rsh): flags (f) : 0x20 target name (tn) : roc2 startup script (s) : /usr/local/coda/LaTechCoda/kern/bootscripts/roc2.boot other (o) :
New bootscript
in the file
/usr/local/coda/LaTechCoda/kern/bootscripts/roc2.boot
I wrote the bootscript below based on a merging of their boots script and mine
# Boot file for CODA ROC 2.0 # PowerPC version hostAdd "daq1","10.1.1.1" # up the sliding window tcp_sendspace=0x8000 tcp_recvspace=0x8000 # Setup environment / load coda_roc putenv "MSQL_TCP_HOST=localdaq" putenv "EXPID=LDS" putenv "TCL_LIBRARY=/usr/local/coda/2.5/common/lib/tcl7.4" putenv "ITCL_LIBRARY=/usr/local/coda/2.5/common/lib/itcl2.0" putenv "DP_LIBRARY=/usr/local/coda/2.5/common/lib/dp" putenv "CMLOG_PORT=8102" putenv "TOKEN_PORT=5555" putenv "SESSION=DAQ" # Download Message logging libraries/client ld < /usr/local/coda/LaTechCoda/cmlog/2.0/bin/ppc-5.4/cmlogClientD ld < /usr/local/coda/LaTechCoda/cmlog/2.0/lib/ppc-5.4/libcmlog.a ld < /usr/local/coda/LaTechCoda/cmlog/2.0/bin/ppc-5.4/cmlogVxLogMsg #cd "/usr/local/coda/2.5/VXWORKSPPC55/lib" #ld < libcamac.o cd "/usr/local/coda/LaTechCoda/VXWORKSPPC54/bin" ld < coda_roc #ld < caSrvr # Spawn tasks sp cmlogClientD #sp cmlogVxLogMsg taskDelay (60*5) # spawn the CAMAC remote server #taskSpawn "caServ",110,spTaskOptions,10000,caSrvr_main # spawn the roc task taskSpawn ("ROC",200,0x8,250000,coda_roc,"","-s","DAQ","-objects","roc2 ROC")
Copy their libraries
When logged into their capdaq machine I did the following commands
scp -r /daq/vxworks/kern daq@134.50.3.210:/usr/local/coda/LaTechCoda scp -r /apps/daq/cmlog daq@134.50.3.210:/usr/local/coda/LaTechCoda scp -r /daq/apps/coda/2.5/VXWORKSPPC54 daq@134.50.3.210:/usr/local/coda/LaTechCoda