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
0e02bb87
Commit
0e02bb87
authored
Sep 28, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary: adding a separate init script for Eyesis 2 bottom cameras
parent
3896da9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
1 deletion
+90
-1
Makefile
src/Makefile
+7
-1
init_eyesis_bottom2.sh
src/init_eyesis_bottom2.sh
+83
-0
No files found.
src/Makefile
View file @
0e02bb87
...
@@ -15,7 +15,8 @@ INSTMODE = 0755
...
@@ -15,7 +15,8 @@ INSTMODE = 0755
SCRIPT1
=
init_elphel393.py
SCRIPT1
=
init_elphel393.py
SCRIPT2
=
init_elphel393
SCRIPT2
=
init_elphel393
SCRIPT3
=
init_elphel393.sh
SCRIPT3
=
init_elphel393.sh
# used for Eyesis 12-sensors
SCRIPT4
=
init_eyesis_bottom2.sh
all
:
all
:
@
echo
"make all in src"
@
echo
"make all in src"
...
@@ -34,6 +35,11 @@ install:
...
@@ -34,6 +35,11 @@ install:
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT3).tmp
$(CONFDIR)/$(SCRIPT3)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT3).tmp
$(CONFDIR)/$(SCRIPT3)
rm
$(SCRIPT3).tmp
rm
$(SCRIPT3).tmp
sed
-e
's/192.168.0.9/$(REMOTE_IP)/'
$(SCRIPT4)
>
$(SCRIPT4).tmp
$(INSTALL)
$(OWN)
-d
$(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT4).tmp
$(CONFDIR)/$(SCRIPT4)
rm
$(SCRIPT4).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
...
...
src/init_eyesis_bottom2.sh
0 → 100644
View file @
0e02bb87
#/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"
#Using same min_init as for multiplexed Eyesis, phase will likely be wrong (correct separately)
wget
-O
-
"localhost/framepars.php?sensor_port=3&cmd=min_init"
wget
-O
-
"localhost/framepars.php?sensor_port=2&cmd=min_init"
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