Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-init
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-init
Commits
479334a1
Commit
479334a1
authored
Sep 29, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
startup script for two 12-sensor cameras in Eyesis
parent
b649a43c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
0 deletions
+92
-0
init_eyesis12.sh
src/init_eyesis12.sh
+92
-0
No files found.
src/init_eyesis12.sh
0 → 100644
View file @
479334a1
#/bin/sh
#Do it early (add DT configuration), it takes ~1 sec to drop voltage to < 1.0V
echo
"0x101"
>
/sys/devices/soc0/elphel393-pwr@0/gpio_10389
# power on (it is actually already on)
echo
"0x100"
>
/sys/devices/soc0/elphel393-pwr@0/gpio_10389
# power off
sleep
1
# select sensor type: 5 Mpx (set 5) or 14 Mpx (set 14)
# 14MPix does not work with framepars & parsedit!!!
SENSOR_TYPE
=
5
# imgsrv port number
IMGSRV_PORT
=
2323
# camogm port number
CAMOGM_PORT
=
3456
# camogm command pipe name
CAMOGM_PIPE
=
/var/volatile/camogm_cmd
# enable SATA, set this to 1 if camera is equipped with SSD drive
SATA_EN
=
1
#IP will be modified to the $(REMOTE_IP) by the Makefile during install. You may change it in your
ifconfig eth0 192.168.0.9
PYDIR
=
/usr/local/bin
VERILOG_DIR
=
/usr/local/verilog
#echo "exiting before power on"
#exit 0;
$PYDIR
/test_mcntrl.py @
${
VERILOG_DIR
}
/hargs-eyesis
#$PYDIR/test_mcntrl.py @${VERILOG_DIR}/hargs
echo
imgsrv
-p
2323
imgsrv
-p
2323
#restart PHP - it can get errors while opening/mmaping at startup, then some functions fail
killall lighttpd
;
/usr/sbin/lighttpd
-f
/etc/lighttpd.conf
/www/pages/exif.php
init
=
/etc/Exif_template.xml
#echo "TURN 10359 power in the next 10 seconds"
#sleep 10
#exit 0
cat
/usr/local/verilog/x359.bit
>
/dev/sfpgaconfjtag0
cat
/usr/local/verilog/x359.bit
>
/dev/sfpgaconfjtag1
cat
/usr/local/verilog/x359.bit
>
/dev/sfpgaconfjtag2
cat
/usr/local/verilog/x359.bit
>
/dev/sfpgaconfjtag3
#exit 0
#wget -O /dev/null "localhost/framepars.php?sensor_port=3&cmd=min_init"
#wget -O /dev/null "localhost/framepars.php?sensor_port=2&cmd=min_init"
# Prepare all, but do not switch to triggered mode yet
wget
-O
-
"localhost/framepars.php?sensor_port=0&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=1&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=2&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=3&cmd=min_init"
#now switch to triggered mode
sleep
2
cat
/proc/interrupts
wget
-O
-
"localhost/framepars.php?sensor_port=0&cmd=eyesis_trig"
wget
-O
-
"localhost/framepars.php?sensor_port=1&cmd=eyesis_trig"
wget
-O
-
"localhost/framepars.php?sensor_port=2&cmd=eyesis_trig"
wget
-O
-
"localhost/framepars.php?sensor_port=3&cmd=eyesis_trig"
sleep
2
cat
/proc/interrupts
#sleep 1
#cat /proc/interrupts
autoexposure
-p
2
-c
0
-b
0
-d
1 &
autoexposure
-p
3
-c
0
-b
0
-d
1 &
autoexposure
-p
1
-c
0
-b
0
-d
1 &
autoexposure
-p
0
-c
0
-b
0
-d
1 &
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=2&COMPRESSOR_RUN=2&DAEMON_EN=1*12&AUTOEXP_ON=1&AEXP_FRACPIX=0xff80&AEXP_LEVEL=0xf800&AE_PERIOD=4&AE_THRESH=500&HIST_DIM_01=0x0a000a00&HIST_DIM_23=0x0a000a00&EXP_AHEAD=3"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=3&COMPRESSOR_RUN=2&DAEMON_EN=1*12&AUTOEXP_ON=1&AEXP_FRACPIX=0xff80&AEXP_LEVEL=0xf800&AE_PERIOD=4&AE_THRESH=500&HIST_DIM_01=0x0a000a00&HIST_DIM_23=0x0a000a00&EXP_AHEAD=3"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=1&COMPRESSOR_RUN=2&DAEMON_EN=1*12&AUTOEXP_ON=1&AEXP_FRACPIX=0xff80&AEXP_LEVEL=0xf800&AE_PERIOD=4&AE_THRESH=500&HIST_DIM_01=0x0a000a00&HIST_DIM_23=0x0a000a00&EXP_AHEAD=3"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=0&COMPRESSOR_RUN=2&DAEMON_EN=1*12&AUTOEXP_ON=1&AEXP_FRACPIX=0xff80&AEXP_LEVEL=0xf800&AE_PERIOD=4&AE_THRESH=500&HIST_DIM_01=0x0a000a00&HIST_DIM_23=0x0a000a00&EXP_AHEAD=3"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=2&COMPRESSOR_RUN=2&DAEMON_EN=1&WB_EN=0x1&WB_MASK=0xd&WB_PERIOD=16&WB_WHITELEV=0xfae1&WB_WHITEFRAC=0x028f&WB_SCALE_R=0x10000&WB_SCALE_GB=0x10000&WB_SCALE_B=0x10000&WB_THRESH=500&GAIN_MIN=0x18000&GAIN_MAX=0xfc000&ANA_GAIN_ENABLE=1&GAINR=0x10000&GAING=0x10000&GAINGB=0x10000&GAINB=0x10000"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=3&COMPRESSOR_RUN=2&DAEMON_EN=1&WB_EN=0x1&WB_MASK=0xd&WB_PERIOD=16&WB_WHITELEV=0xfae1&WB_WHITEFRAC=0x028f&WB_SCALE_R=0x10000&WB_SCALE_GB=0x10000&WB_SCALE_B=0x10000&WB_THRESH=500&GAIN_MIN=0x18000&GAIN_MAX=0xfc000&ANA_GAIN_ENABLE=1&GAINR=0x10000&GAING=0x10000&GAINGB=0x10000&GAINB=0x10000"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=1&COMPRESSOR_RUN=2&DAEMON_EN=1&WB_EN=0x1&WB_MASK=0xd&WB_PERIOD=16&WB_WHITELEV=0xfae1&WB_WHITEFRAC=0x028f&WB_SCALE_R=0x10000&WB_SCALE_GB=0x10000&WB_SCALE_B=0x10000&WB_THRESH=500&GAIN_MIN=0x18000&GAIN_MAX=0xfc000&ANA_GAIN_ENABLE=1&GAINR=0x10000&GAING=0x10000&GAINGB=0x10000&GAINB=0x10000"
wget
-O
/dev/null
"localhost/parsedit.php?immediate&sensor_port=0&COMPRESSOR_RUN=2&DAEMON_EN=1&WB_EN=0x1&WB_MASK=0xd&WB_PERIOD=16&WB_WHITELEV=0xfae1&WB_WHITEFRAC=0x028f&WB_SCALE_R=0x10000&WB_SCALE_GB=0x10000&WB_SCALE_B=0x10000&WB_THRESH=500&GAIN_MIN=0x18000&GAIN_MAX=0xfc000&ANA_GAIN_ENABLE=1&GAINR=0x10000&GAING=0x10000&GAINGB=0x10000&GAINB=0x10000"
if
[
$SATA_EN
-eq
1
]
;
then
$PYDIR
/x393sata.py
modprobe ahci_elphel &
sleep
2
echo
1
>
/sys/devices/soc0/amba@0/80000000.elphel-ahci/load_module
fi
echo
"starting temperature monitor with fan control disabled"
tempmon.py
--control_fan
off &
echo
"/etc/init_elphel393.sh done"
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment