Installation of New Software ---------------------------- Jianhui Gu and Stan Durkin Files to Download from http://www.physics.ohio-state.edu/~durkin/software fast_daq.tar.gz data.tar.gz d360.tar.gz schar_xxxx.tar.gz LINUX Software Installation --------------------------- Since this software is so different than the previous software we make a separate login account /home/fast/. You probably should do this as well. For the home fast account you mearly type: 1. gunzip fast_daq.tar.gz;tar xvf fast_daq.tar 2. gunzip data.tar.gz;tar xvf data.tar To compile the routines (you may have to update links jtag and ddu): 1. a. cd /home/fast/fast_daq/driver b. ln -s jtag-5.2 jtag c. cd jtag d. edit inet.h changing ethernet address for dynatem. Port should be set to 6030 for command line d360.bin. e. link_program 2. a. cd /home/fast/fast_daq/driver b. ln -s ddu_gigabit_schar ddu c. cd ddu d. gcc -c ddu.c The VME slots and motherboard configuration have to be setup in the configuration file: /home/fast2/data/daqmb_config/daqmb_config_0023. Presently the Rice CCB is in VME slot 8 and the DAQMB is in VME slot 10. The routines osu_start(dp->daqmb_slot); and rice_start(dp->ccb_slot); set the VME slot. These are called in /home/fast2/fast_daq/daqmb/ezwx/cfeb_control.c. Dynatem uClinux Software ________________________ This assumes you that the Dynatem is already running uCLinux with a NFS mounted disk on a remove Linux PC. On the Dynatems NFS mounted disk type: 1. gunzip d360.tar.gz;tar -xvf d360.tar 2. make This of course uses the D360 cross compiler. To run this code (must be done before you run cfeb_control) type at the dynatem console: 1. d360.bin The program should pause waiting for a socket connection. We have left the program running for days, starting up and ending cfeb_control many times in the interrim. We will run D360 as a Daemon process when people are happy with it. Gigabit Ethernet Installation ----------------------------- We have provided you with a D-LINK Gigabit ethernet card. It will run 64 bit/ 66 MHz, 64/33, 32/64, or 32/33 pci. Now the board must be configured for point to point ethernet (no outside users). To do this in control-panel set the ethernet address for the board to 192.168.0.3. Do not activate the board. You must now make the character device in /dev. Execute the command: mknod /dev/schar c 42 0 The file schar_xxxx.tar contains the driver for the ethernet card. Unpack the driver, and as root run ethreset to load driver. You will have to specify the correct driver, ether ethreset_dgelin (D-LINK) or ethreset_acenic (3COM, others...). You may have to modify this script changing eth1 to the specific interface (e.g. eth0,eth1,eth2,eth3). Two drivers are loaded: either acenic.o and eth_hook.o or alternatively dgelin.o and eth_hook.o. You may also have to recompile the drivers. Once the drivers are loaded you should be able to track gigabit packet statistics by typing: cat /proc/sys/dev/schar/0. To configure the board run as root: Running /sbin/ifconfig you should see something like: eth1 Link encap:Ethernet HWaddr 00:50:BA:F3:B3:9E inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING NOARP PROMISC MULTICAST MTU:9000 Metric:1 RX packets:2002 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:5 Base address:0xe400 Memory:febfec00-febfed00 Running the Program ------------------ To run the program, after starting D360 (above), and installing the gigabit ethernet card, on types as root: 1. cd /home/fast/fast_daq/daqmb 2. cfeb_control or /home/fast/bin/cfeb_control Since the board eproms have been preloaded there is no reason for you to reload them. To reset the system one mearly goes through the following commands. Config -> Setup -> Program All(bckpln) Config -> Setup -> Reset All(bckpln) Config -> Setup -> Full Setup The first command forced the CCB board to reprogram all the cfeb and daqmb fpgas from their respective eproms. The second command forces a CCB reset signal to all cfeb and daqmb fpgas. The last command shifts the buckeyes, and sets up timing on the daqmb.