mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-09-11 05:09:56 -05:00
licheervnano: add camera test script
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
ramdisk/rootfs/overlay/cv1812cp_licheerv_nano_sd/opt/sensor_test_gc4653
Executable file
BIN
ramdisk/rootfs/overlay/cv1812cp_licheerv_nano_sd/opt/sensor_test_gc4653
Executable file
Binary file not shown.
Reference in New Issue
Block a user