licheervnano: add camera test script

This commit is contained in:
Lu
2024-01-18 14:43:28 +08:00
parent 70f1d0086e
commit 5a73da879e
2 changed files with 17 additions and 1 deletions

View File

@@ -2,4 +2,20 @@
THISDIR=$(dirname $(realpath $0))
cp -fv $THISDIR/sensor_cfg.ini /mnt/data
if [ ! -e /mnt/data/sensor_cfg.ini ]
then
cp -fv $THISDIR/sensor_cfg.ini /mnt/data
fi
echo "snsr_r 0 0" > /proc/mipi-rx
devmem 0x03002814 32 0x00308101
echo "snsr_on 0 1 4" > /proc/mipi-rx
SENSOR_TEST=/opt/sensor_test_gc4653
cd /tmp/
# test camera
echo "
1
0
10" | $SENSOR_TEST