sinfo
(sensor info) is a kernel module to detect the image sensor attached via the I2C bus on an Ingenic SoC based device.
Example usage:
Upload the module for your SoC to the camera as sinfo.ko
:
scp -O sinfo-t31.ko [email protected]:/tmp/sinfo.ko
Login to the camera over ssh and run
insmod /tmp/sinfo.ko
echo 1 > /proc/jz/sinfo/info
dmesg | tail
A successful detection will appear in the dmesg logs as:
[ 62.669237] sinfo: Successful sensor detection: sc3335, I2C Bus: 0, I2C Address: 0x30
For convenience, you can run this one liner on a working thingino system:
soc="$(soc -f)"; curl -L "https://github.com/themactep/ingenic-sdk/releases/download/sinfo/sinfo-$soc.ko" -o "/tmp/sinfo-$soc.ko" && insmod "/tmp/sinfo-$soc.ko" && echo 1 > /proc/jz/sinfo/info && dmesg | grep Successful