Marc has modified tcpborphserver3 to work with normal 8 bit writes now.
Please get the latest one here: https://github.com/ska-sa/roach2_nfs_uboot (the
files are in "boot"). If you are running a NFS just copy the file to
nfs_path/usr/local/sbin

The latest romfs includes the new tcpborphserver3. To update:

ROACH2 Test machine set-up instructions:
https://docs.google.com/a/ska.ac.za/document/d/1tqw4C6uZ6EULl1OykTFL_vQTnK52UBr0aYqTg44E5wg/edit
)

1. Set up a tftp and dhcp server (see the tftp section in the test machine
setup instructions).
2. Create a symlink or rename the romfs image to romfs e.g. "ln -s
 roach2-root-2012-10-18.romfs romfs" in the tftp directory.
3. At the uboot prompt type: run tftproot
4. This takes a long time! About 5 minutes.
5. Using a terminal emulator like minicom access the console (minicom
ttyUSB2)
6. Login using root (password is blank)
7. rm /usr/.keep
8. reboot -f

To measure temperatures, voltages and currents:
All sensors are available using kcp commands. You can telnet to the board
to run kcp commands (telnet board_ip 7147) or if you have access to the
console you can run the commands using the program kcpcmd ("kcpcmd
sensor-list" note that there is no ?)
?sensor-list - lists all the sensors
?sensor-value - lists all the current values
?sensor-sampling sensor_name event - this will give updates when the sensor
changes.

If anything is unclear please don't hesitate to ask.

Regards
Alec

PS. For rev1 boards please make the following changes to
/etc/tcpborphserver3.init (after removing .keep and rebooting). Note that
on rev1 3v3aux is actually 12v and 12v and 5vaux will read 0:
#3v3 sense resistor: 0.002 ohm, gain resistor: 200 ohm
?sensor-limit raw.current.3v3 mult 998
?sensor-limit raw.current.3v3 div 1000
#2v5 sense resistor: 0.005 ohm, gain resistor: 499 ohm
?sensor-limit raw.current.2v5 mult 993
?sensor-limit raw.current.2v5 div 1000
#1v8 sense resistor: 0.002 ohm, gain resistor: 200 ohm
?sensor-limit raw.current.1v8 mult 998
?sensor-limit raw.current.1v8 div 1000
#1v5 sense resistor: 0.001 ohm, gain resistor: 100 ohm
?sensor-limit raw.current.1v5 mult 999
?sensor-limit raw.current.1v5 div 1000
#1v sense resistor: 0.00025 ohm, gain resistor: 100 ohm
?sensor-limit raw.current.1v mult 399
?sensor-limit raw.current.1v div 100
#12v sense resistor: 0.005 ohm
?sensor-limit raw.current.12v mult 100
?sensor-limit raw.current.12v div 500
#5v sense resistor: 0.002 ohm
?sensor-limit raw.current.5v mult 100
?sensor-limit raw.current.5v div 200
#12v voltage divider (on rev1 boards the 12v is measured on the 3v3aux line)
?sensor-limit raw.voltage.3v3aux mult 29600
?sensor-limit raw.voltage.3v3aux div 10000

Reply via email to