Commit a4ce8e63 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Update init scripts

Increase temperature limits in tempmon, add imgsrv and camogm start code to
init_elphel393
parent 02c80082
......@@ -4,11 +4,15 @@
# select sensor type: 5 Mpx (set 5) or 14 Mpx (set 14)
SENSOR_TYPE=14
# imgsrv port number
IMGSRV_PORT=2323
# camogm command pipe name
CAMOGM_PIPE=/var/volatile/camogm_cmd
ifconfig eth0 192.168.0.9
if [ ! -d /usr/local/ ]; then
ln -sf /mnt/mmc/local/ /usr/local/
fi
#if [ ! -d /usr/local/ ]; then
# ln -sf /mnt/mmc/local/ /usr/local/
#fi
cd /usr/local/verilog/
if [ $SENSOR_TYPE -eq 5 ]; then
/usr/local/bin/test_mcntrl.py @startup5 >> /dev/null 2>&1 &
......@@ -19,11 +23,53 @@ sleep 10
/usr/local/bin/test_mcntrl.py @includes -c compressor_control all 1 None None None None None
/usr/local/bin/test_mcntrl.py @includes -c compressor_control all 0 None None None None None
# create circular buffer files
if [ ! -e /dev/circbuf0 ]; then
mknod /dev/circbuf0 c 135 32
fi
if [ ! -e /dev/circbuf1 ]; then
mknod /dev/circbuf1 c 135 33
fi
if [ ! -e /dev/circbuf2 ]; then
mknod /dev/circbuf2 c 135 34
fi
if [ ! -e /dev/circbuf3 ]; then
mknod /dev/circbuf3 c 135 35
fi
if [ ! -e /dev/jpeghead0 ]; then
mknod /dev/jpeghead0 c 135 48
fi
if [ ! -e /dev/jpeghead1 ]; then
mknod /dev/jpeghead1 c 135 49
fi
if [ ! -e /dev/jpeghead2 ]; then
mknod /dev/jpeghead2 c 135 50
fi
if [ ! -e /dev/jpeghead3 ]; then
mknod /dev/jpeghead3 c 135 51
fi
# debug code follows, should be removed later
# inable interrupts
echo 1 > /dev/circbuf0
# set frame size
if [ $SENSOR_TYPE -eq 5 ]; then
echo "6 2592:1936" > /dev/circbuf0
else
echo "6 4384:3280" > /dev/circbuf0
fi
# end of debug code
/usr/local/bin/test_mcntrl.py @includes -c compressor_control all 3 None None None None None
#sleep 5
cd /usr/local/circbuf/; ./circbuf_start.sh
#/usr/local/bin/test_mcntrl.py -C compressor_control all 3
if [ -f /usr/bin/imgsrv ]; then
imgsrv -p $IMGSRV_PORT &
fi
if [ -f /usr/bin/camogm ]; then
camogm $CAMOGM_PIPE &
fi
#/mnt/mmc/local/bin/x393sata.py
#insmod /mnt/mmc/ahci_elphel.ko # &
......
......@@ -32,9 +32,9 @@ from posix import EX_OSFILE, F_OK
DEBUG = 0
""" Set temperature when the fan should be turned on. """
TEMP_FAN_ON = 35.0
TEMP_FAN_ON = 55.0
""" Set temperature when the system should be turned off. """
TEMP_SHUTDOWN = 60.0
TEMP_SHUTDOWN = 80.0
""" Temperature hysteresis in degrees. """
TEMP_HYSTERESIS = 2.0
""" Temperature sampling time in seconds. This constant may be a floating point value. """
......@@ -215,4 +215,4 @@ if __name__ == "__main__":
tm.monitor()
else:
sys.exit(1)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment