JLAB PCI TI: Difference between revisions
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
'''TIpcieUS''' | |||
== initial setting after installing card into new machine == | |||
Login as ''clasrun'' and run command ''ti_config'', enter root password in a process. It will save TIpcieUS's driver ''config'' file to ''/root'' directory. Later in case of problems, driver can be effectively restored by running script ''ti_reload''. | |||
It should be 3 scripts in ''$CODA/src/scripts'' directory with following contents: | |||
ti_config: | |||
#!/bin/csh | |||
# | |||
# save TIpcieUS driver config file into /root | |||
# | |||
set temp = `lspci | awk -F' ' '/9038/{print $1}'` | |||
echo $temp | |||
set dest = "/sys/bus/pci/devices/0000:$temp" | |||
echo $dest/config | |||
echo "Enter root password" | |||
su - root -c "cp $dest/config /root/config" | |||
ti_reload: | |||
#!/bin/csh | |||
# | |||
# TIpcieUS driver reload | |||
# | |||
set temp = `lspci | awk -F' ' '/9038/{print $1}'` | |||
echo $temp | |||
set dest = "/sys/bus/pci/devices/0000:$temp" | |||
echo $dest | |||
echo "Enter root password" | |||
su - root -c "cp -f /root/config $dest" | |||
ti_menu: | |||
#!/usr/bin/tcsh | |||
# | |||
# William's menu | |||
# | |||
~jgu/PCIeTI/TIpcieUS/tools/TIcontrol /dev/xdma0_user | |||
== TIpcieUS == | == TIpcieUS == | ||
| Line 54: | Line 96: | ||
'''NOTE:''' controlling tool can be used as following: | '''NOTE:''' controlling tool can be used as following: | ||
ssh as root | ssh as root | ||
Latest revision as of 13:19, 2 February 2026
TIpcieUS
initial setting after installing card into new machine
Login as clasrun and run command ti_config, enter root password in a process. It will save TIpcieUS's driver config file to /root directory. Later in case of problems, driver can be effectively restored by running script ti_reload.
It should be 3 scripts in $CODA/src/scripts directory with following contents:
ti_config:
#!/bin/csh
#
# save TIpcieUS driver config file into /root
#
set temp = `lspci | awk -F' ' '/9038/{print $1}'`
echo $temp
set dest = "/sys/bus/pci/devices/0000:$temp"
echo $dest/config
echo "Enter root password"
su - root -c "cp $dest/config /root/config"
ti_reload:
#!/bin/csh
#
# TIpcieUS driver reload
#
set temp = `lspci | awk -F' ' '/9038/{print $1}'`
echo $temp
set dest = "/sys/bus/pci/devices/0000:$temp"
echo $dest
echo "Enter root password"
su - root -c "cp -f /root/config $dest"
ti_menu:
#!/usr/bin/tcsh # # William's menu # ~jgu/PCIeTI/TIpcieUS/tools/TIcontrol /dev/xdma0_user
TIpcieUS
Manual 2024 (pdf)
Old manual 2020 (pdf)
Pinout of the 34-pin connector (TI CPI has 40-pin connector, but first 34 pins are the same, although they are typically NOT ECL but LVDS)
Pin name Signal Name Signal Level
1 / 2 BUSY_out + / - ECL 3 / 4 Trigger_out + / - ECL 5 / 6 UserControlled_out1 + / - ECL 7 / 8 UserControlled_out2 + / - ECL 9 / 10 UserControlled_out3 + / - ECL 11 / 12 UserControlled_out4 + / - ECL 13 / 14 OT1 + / - ECL 15 / 16 PromptTrigger_out + / - ECL 17 / 18 Inhibit_in + / - ECL 19 / 20 Trigger_in + / - ECL 21 / 22 Trigger_ch#1_in + / - ECL 23 / 24 Trigger_ch#2_in + / - ECL 25 / 26 Trigger_ch#3_in + / - ECL 27 / 28 Clock_in + / - ECL 29 / 30 Trigger_ch#4_in + / - ECL 31 / 32 Trigger_ch#5_in + / - ECL 33 / 34 Trigger_ch#6_in + / - ECL
35 / 36 37 / 38 39 / 40 CLK output
Installing driver on newly built machine
ssh boiarino@...
For release 1.4.0 on RHEL7 mchines:
cd /usr/clas12/release/1.4.0/coda/src/TIpcieUS/xdma
For release 2.0.0:
cd /usr/clas12/release/2.0.0/coda/src/TIpcieUS-devel/xdma
make -B
Become superuser (su) and run following:
make install reboot
NOTE: controlling tool can be used as following:
ssh as root
Run TI control script:
cd ~jgu/PCIeTI/TIpcieUS/tools ./TIcontrol /dev/xdma0_user
or run following if exists:
/root/ti_init
For slave mode, type '2', then type '9'. It should bring TIpcie board to the right state. After that you can start the daq from scratch.
For Sampa setup, set TI board to the 'bridge' mode by typing '15'.
Another useful option is 4 - it shows temperature etc parameters.
old version
Manual for TI board in PCI format in (pdf)
On some DELL servers (R440 for example) booter will give an pci error and ask to push F1. To disable F1 pushing, in BIOS go to 'System BIOS Settings' -> 'Miscellaneous Settings' -> 'F1/F2 Prompt on Error' and click 'Disabled'.
Sometimes device /dev/TIpcie may be removed during patching or/and rebooting process. To restore it do following as root:
cd $CODA/src/TIpcie/linux_driver ./reload_driver.sh