Difference between revisions of "Driverless mode 393"
From ElphelWiki
(→init) |
(→Instructions) |
||
Line 7: | Line 7: | ||
* to load bitstream for MT9F002 appropriate changes need to be made to: | * to load bitstream for MT9F002 appropriate changes need to be made to: | ||
** device tree | ** device tree | ||
− | set sensors to '''mt9f002''' in ''elphel393-detect_sensors,sensors'' entry | + | <font size=2>set sensors to '''mt9f002''' in ''elphel393-detect_sensors,sensors'' entry</font> |
− | ** /etc/elphel393/default_10389.xml for setup w/o 10389 or 10389's eeprom otherwise | + | ** /etc/elphel393/default_10389.xml for setup w/o 10389 or 10389's eeprom otherwise write '''MT9F002''' as application |
− | |||
* Disable driver | * Disable driver | ||
− | root@elphel393~# touch /etc/elphel393/disable_driver | + | <font size=2>root@elphel393~# touch /etc/elphel393/disable_driver |
− | # then reboot | + | # then reboot</font> |
===init=== | ===init=== | ||
Line 18: | Line 17: | ||
root@elphel393~# cd /usr/local/verilog/; test_mcntrl.py @hargs-after | root@elphel393~# cd /usr/local/verilog/; test_mcntrl.py @hargs-after | ||
* init (if the driver is not disabled the i2c writes will not work): | * init (if the driver is not disabled the i2c writes will not work): | ||
− | + | <font size=2>setup_all_sensors True None 0x1 False 4384 3280 | |
− | + | write_sensor_i2c 0 1 0 0x31c08000 # hispi timing | |
− | + | write_sensor_i2c 0 1 0 0x030600b4 # pll multiplier | |
− | + | write_sensor_i2c 0 1 0 0x31c68400 # hispi control status | |
− | + | write_sensor_i2c 0 1 0 0x306e9280 # datapath select | |
− | + | write_sensor_i2c 0 1 0 0x301a001c # reset and start streaming | |
− | + | hispi_phases_adjust 0 | |
− | + | write_sensor_i2c 0 1 0 0x301a001c # reset and start streaming | |
− | + | setup_all_sensors True None 0x1 False 4384 3280 | |
− | + | compressor_control all None None None None None 2 | |
− | + | program_gamma all 0 0.57 0.04 | |
− | + | write_sensor_i2c 0 1 0 0x3028000a # global gain | |
− | + | write_sensor_i2c 0 1 0 0x302c000d # some gain | |
− | + | write_sensor_i2c 0 1 0 0x302e0010 # some gain | |
− | + | write_sensor_i2c 0 1 0 0x30120080 # coarse exposure | |
− | + | jpeg_acquire_write | |
− | + | #write_sensor_i2c 0 1 0 0x301a0018 # put to standby</font> | |
* inspect image: | * inspect image: | ||
− | http://192.168.0.9/img.jpeg | + | <font size=2>http://192.168.0.9/img.jpeg</font> |
[[Category:393]] | [[Category:393]] |
Revision as of 08:37, 3 April 2018
Contents
Description
Instructions on how to disable sensor driver and get images from image sensor (for MT9F002 sensor)
Instructions
pre
- to load bitstream for MT9F002 appropriate changes need to be made to:
- device tree
set sensors to mt9f002 in elphel393-detect_sensors,sensors entry
- /etc/elphel393/default_10389.xml for setup w/o 10389 or 10389's eeprom otherwise write MT9F002 as application
- Disable driver
root@elphel393~# touch /etc/elphel393/disable_driver # then reboot
init
- start python session:
root@elphel393~# cd /usr/local/verilog/; test_mcntrl.py @hargs-after
- init (if the driver is not disabled the i2c writes will not work):
setup_all_sensors True None 0x1 False 4384 3280 write_sensor_i2c 0 1 0 0x31c08000 # hispi timing write_sensor_i2c 0 1 0 0x030600b4 # pll multiplier write_sensor_i2c 0 1 0 0x31c68400 # hispi control status write_sensor_i2c 0 1 0 0x306e9280 # datapath select write_sensor_i2c 0 1 0 0x301a001c # reset and start streaming hispi_phases_adjust 0 write_sensor_i2c 0 1 0 0x301a001c # reset and start streaming setup_all_sensors True None 0x1 False 4384 3280 compressor_control all None None None None None 2 program_gamma all 0 0.57 0.04 write_sensor_i2c 0 1 0 0x3028000a # global gain write_sensor_i2c 0 1 0 0x302c000d # some gain write_sensor_i2c 0 1 0 0x302e0010 # some gain write_sensor_i2c 0 1 0 0x30120080 # coarse exposure jpeg_acquire_write #write_sensor_i2c 0 1 0 0x301a0018 # put to standby
- inspect image:
http://192.168.0.9/img.jpeg