简体   繁体   中英

Debain i2c driver builtin no /dev/i2c-*

I've a problem and can't solve it by myself, soo...

I have an OrangePi zero and I use Debian on it. The i2C module is a buildin driver but I don't know how to use it.

$ uname -a
Linux d621 5.3.5+ #2 SMP Fri Nov 15 16:24:33 CST 2019 armv7l GNU/Linux
$ find /sys/bus/platform -name *i2c*
/sys/bus/platform/drivers/mv64xxx_i2c
/sys/bus/platform/drivers/brcmstb-i2c
$ modprobe -D modprobe -D brcmstb-i2c
builtin i2c_brcmstb
$ modprobe i2c-brcmstb --first-time
modprobe: ERROR: could not insert 'i2c_brcmstb': Module already in kernel

Even though the module is already loaded in the kernel, I've no /dev/i2c-* . Someone can help me to get them.

EDIT: i2c-dev already builtin

$ modprobe i2c-dev -D
builtin i2c_dev

EDIT 2:

$ cat /boot/orangepiEnv.txt 
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=i2c0 i2c1 i2c2

dmesg

My guess is that you need to load i2c-dev module as well, so just check that one if it's built in or loaded. Also read through the demsg output, probably gives a hint if something goes wrong. If you can't find it, just share the dmesg output here, and we can look further

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM