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
3896da9b
Commit
3896da9b
authored
Sep 28, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
restored init_elphel393.sh for temporary use with Eyesis
parents
f748e407
42edd190
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
20 deletions
+47
-20
Makefile
src/Makefile
+7
-0
init_elphel393.sh
src/init_elphel393.sh
+40
-20
No files found.
src/Makefile
View file @
3896da9b
...
@@ -15,6 +15,7 @@ INSTMODE = 0755
...
@@ -15,6 +15,7 @@ INSTMODE = 0755
SCRIPT1
=
init_elphel393.py
SCRIPT1
=
init_elphel393.py
SCRIPT2
=
init_elphel393
SCRIPT2
=
init_elphel393
SCRIPT3
=
init_elphel393.sh
all
:
all
:
@
echo
"make all in src"
@
echo
"make all in src"
...
@@ -28,6 +29,12 @@ install:
...
@@ -28,6 +29,12 @@ install:
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT1).tmp
$(CONFDIR)/$(SCRIPT1)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT1).tmp
$(CONFDIR)/$(SCRIPT1)
rm
$(SCRIPT1).tmp
rm
$(SCRIPT1).tmp
sed
-e
's/192.168.0.9/$(REMOTE_IP)/'
$(SCRIPT3)
>
$(SCRIPT3).tmp
$(INSTALL)
$(OWN)
-d
$(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT3).tmp
$(CONFDIR)/$(SCRIPT3)
rm
$(SCRIPT3).tmp
#INITSTRING default is defined in local.conf, weak default - meta-core/init/init.bb
#INITSTRING default is defined in local.conf, weak default - meta-core/init/init.bb
sed
-e
's/init_elphel393.py/$(INITSTRING)/'
$(SCRIPT2)
>
$(SCRIPT2).tmp
sed
-e
's/init_elphel393.py/$(INITSTRING)/'
$(SCRIPT2)
>
$(SCRIPT2).tmp
$(INSTALL)
$(OWN)
-d
$(INITDIR)
$(INSTALL)
$(OWN)
-d
$(INITDIR)
...
...
src/init_elphel393.sh
View file @
3896da9b
#/bin/sh
#/bin/sh
#ifconfig eth0 down
#Do it early (add DT configuration), it takes ~1 sec to drop voltage to < 1.0V
#ifconfig eth0 hw ether 00:0e:64:10:00:02 192.168.0.7
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)
# select sensor type: 5 Mpx (set 5) or 14 Mpx (set 14)
# 14MPix does not work with framepars & parsedit!!!
# 14MPix does not work with framepars & parsedit!!!
...
@@ -19,39 +21,56 @@ ifconfig eth0 192.168.0.9
...
@@ -19,39 +21,56 @@ ifconfig eth0 192.168.0.9
PYDIR
=
/usr/local/bin
PYDIR
=
/usr/local/bin
VERILOG_DIR
=
/usr/local/verilog
VERILOG_DIR
=
/usr/local/verilog
$PYDIR
/test_mcntrl.py @
${
VERILOG_DIR
}
/hargs
#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
echo
imgsrv
-p
2323
imgsrv
-p
2323
imgsrv
-p
2323
#restart PHP - it can get errors while opening/mmaping at startup, then some functions fail
#restart PHP - it can get errors while opening/mmaping at startup, then some functions fail
killall lighttpd
;
/usr/sbin/lighttpd
-f
/etc/lighttpd.conf
killall lighttpd
;
/usr/sbin/lighttpd
-f
/etc/lighttpd.conf
/www/pages/exif.php
init
=
/etc/Exif_template.xml
/www/pages/exif.php
init
=
/etc/Exif_template.xml
#echo "TURN 10359 power in the next 10 seconds"
#sleep 10
#exit 0
echo
"init sensor port"
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=0&cmd=init"
wget
-O
/dev/null
"localhost/framepars.php?sensor_port=1&cmd=init"
wget
-O
/dev/null
"localhost/framepars.php?sensor_port=2&cmd=init"
wget
-O
/dev/null
"localhost/framepars.php?sensor_port=3&cmd=init"
echo
"start autoexposure daemons on each sensor port"
#wget -O /dev/null "localhost/framepars.php?sensor_port=3&cmd=min_init"
autoexposure
-p
0
-c
0
-b
0
-d
1 &
#wget -O /dev/null "localhost/framepars.php?sensor_port=2&cmd=min_init"
autoexposure
-p
1
-c
0
-b
0
-d
1 &
wget
-O
-
"localhost/framepars.php?sensor_port=3&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=2&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=1&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=0&cmd=min_init"
sleep
2
cat
/proc/interrupts
#sleep 1
#cat /proc/interrupts
autoexposure
-p
2
-c
0
-b
0
-d
1 &
autoexposure
-p
2
-c
0
-b
0
-d
1 &
autoexposure
-p
3
-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 &
echo
"Set autoexposure parameters and enable autoesposure for each sensor port, delay startup of daemon until enough frames are acquired"
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=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=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=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=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"
echo
"set up white balance parameters"
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"
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=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=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=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
if
[
$SATA_EN
-eq
1
]
;
then
$PYDIR
/x393sata.py
$PYDIR
/x393sata.py
...
@@ -59,6 +78,7 @@ if [ $SATA_EN -eq 1 ]; then
...
@@ -59,6 +78,7 @@ if [ $SATA_EN -eq 1 ]; then
sleep
2
sleep
2
echo
1
>
/sys/devices/soc0/amba@0/80000000.elphel-ahci/load_module
echo
1
>
/sys/devices/soc0/amba@0/80000000.elphel-ahci/load_module
fi
fi
echo
"starting temperature monitor with fan control disabled"
tempmon.py
--control_fan
off &
echo
"/etc/init_elphel393.sh done"
echo
"/etc/init_elphel393.sh done"
exit
0
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