android4.0系统,在/dev/目录下没有,i2c-0 ,i2c-1...只有个i2c-dev,设备号是10,貌似不是我的i2c设备
root@android:$ ls -l /dev/i2c-dev
crw------- root root 10, 54 2012-09-28 08:26 i2c-dev
以下是另外一个设备的/dev/目录,这个有i2c-0, i2c-1,主设备号为89,这才是我想要的,
/********************************************************************/
/ # ls -l /dev
crw------- root root 89, 1 2020-09-28 14:42 i2c-1
crw------- root root 89, 0 2020-09-28 14:42 i2c-0
/ # ls -l /sys/bus/i2c/devices/
lrwxrwxrwx root root 2012-09-28 10:42 0-0001 -> ../../../devices/i2c-0/0-0001
lrwxrwxrwx root root 2012-09-28 10:42 0-0021 -> ../../../devices/i2c-0/0-0021
lrwxrwxrwx root root 2012-09-28 10:42 1-0018 -> ../../../devices/i2c-1/1-0018
lrwxrwxrwx root root 2012-09-28 10:42 2-0034 -> ../../../devices/i2c-2/2-0034