Orange pi zero: i2c is not under /dev
Hi I am working with Orange pi zero. Although I enable i2c-tools under make menuconfig and i2c support under make linux-menuconfig when I use i2cdetect -y 0 I get the error below.I am stuck at that point. I want to use i2c bus to use my imu sensor. Please help me.
Error: Could not open file /dev/i2c-0' or /dev/i2c/0': No such file or directory
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
Hello,
Quoted 7 lines · On Wed, 15 May 2019 23:35:19 -0500 (CDT) muhammet <[email protected]> wrote:
Hi I am working with Orange pi zero. Although I enable i2c-tools under make menuconfig and i2c support under make linux-menuconfig when I use i2cdetect -y 0 I get the error below.I am stuck at that point. I want to use i2c bus to use my imu sensor. Please help me.
Error: Could not open file
/dev/i2c-0' or/dev/i2c/0': No such file or directory
Make sure CONFIG_I2C_CHARDEV is enabled in your kernel configuration.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
<http://buildroot-busybox.2317881.n4.nabble.com/file/t2724/IMG_20190516_093129.jpg>
Hello
I enabled it as a module and directly. But the result didn't change. I am new to buildroot and embedded systems. I don't know what and where to look.
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
Hello,
Quoted 2 lines · On Thu, 16 May 2019 01:40:31 -0500 (CDT) muhammet <[email protected]> wrote:
I enabled it as a module and directly. But the result didn't change. I am new to buildroot and embedded systems. I don't know what and where to look.
Then you don't have any I2C bus enabled on your platform perhaps ? Check what you have in /sys/bus/i2c/devices/.
But your question really isn't Buildroot related at all at this point, I'm afraid.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hello,
There are/sys/bus/platform/drivers/i2c-sunxi-pwi/sys/bus/platform/drivers/mv64xxx_i2c/sys/bus/i2c/sys/bus/i2c/drivers/axp20x-i2c
but no/sys/bus/i2c/devices/
what am i missing?
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"muhammet" == muhammet <[email protected]> writes:
Hello,
There are/sys/bus/platform/drivers/i2c-sunxi-pwi/sys/bus/platform/drivers/mv64xxx_i2c/sys/bus/i2c/sys/bus/i2c/drivers/axp20x-i2c
Quoted 4 lines
but no
/sys/bus/i2c/devices/what am i missing?
Nothing. The zero does not have any on board I2C devices, so sun8i-h2-plus-orangepi-zero.dts does not enable any of the I2C controllers or describe any I2C devices.
Signature · 1 line
Bye, Peter Korsgaard
Hello
Actually orange pi zero has i2c. I managed to see i2c under /dev and able to use it.
I decompile dtb file under buildroot/output/images to dts file. All three I2C status were "disabled" there. I changed them to "okay". Then compile dts file to dtb file. Then load to sd card and it worked.
I wonder why all i2c status are "disabled". And is there an easy way to change them(maybe in menuconfig menu)
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/