July 2001 J. D. Monnier HOW TO RECONFIGURE THE NAME AND IP ADDRESSES OF VME CPUS -------------------------------------------------------- *** Note Added: This procedure didn't work. There was a shared memory problem in cpu0, probably related to memory issues and some hardware specific issues we don't know about. If we figure this out, we will update this file. However, the other stuff will probably be useful someday. See comments by M. Brewer at end of this document. *** We are renaming iota-ppc0 -> iota-ppc2 and iota-ppc2 -> iota-ppc0 Connect tip to iota-ppc2 tip a > reboot -- then press a key immediately to stop auto-booting [Vxworks Boot]: p -- to see parameters [Vxworks Boot]: c -- configure -- now go through each of the parameters, entering to not change Change: processor number: 0 inet on ethernet (3): 192.168.51.134:ffffff00 -- 134:cpu0, 135:cpu1, etc target name (tn): iota-ppc0 Connect tip to iota-ppc0 (original) -- Now do the same thing, changing processor to 2, and inet on ethernet, and -- the name. ------------------ Now we must change certain shmem block locations. Actually, only the DAQ and STAR_TRACK. /home/tornado/map/.gmem: Rename STAR_TRACK STAR_TRACK:1 REMOVE STAR:1 Rename DAQ DAQ:2 ------------------ Now we will change the ~iota/iotamc/lmt/mc/xml/Shmem.xml file so that the startracker shmem object points to the right location.. Go to ~iota/iotamc/lmt/mc/xml/Shmem.xml Edit : STAR_TRACK -> STAR_TRACK:1 ------------------ Now we have to generate new machine-generated code based on the xml files for the OT, and then recompile it and the java. cd ~iota/iotamc source SOURCEME make help -- for help make rm make clean -- ignore error messages make src make cc make jni make java ----------------- Lastly we have to change all references to STAR_TRACK -> STAR_TRACK:1 and DAQ -> DAQ:2 This includes all the IDL call_external C programs which interact with shmem, and of course the vxworks code running on the vmes. July, 16 2001 ------------- Response by M. Brewer: This didn't work because the shared memory is located in the upper 2 Mb of onboard memory and ppc0 has 64 Mb of memory whereas ppc2 has 32 Mb. To get it to work you would need to change the entries for the local memory addresses in .gmem. The entries for ppc0 03E00000 and ppc2 01E00000 would need to be exchanged. There might also be some other subtleties that I don't know about as Kamal set this up.