* [Buildroot] Orange pi zero: i2c is not under /dev @ 2019-05-16 4:35 muhammet 2019-05-16 6:01 ` Thomas Petazzoni 0 siblings, 1 reply; 7+ messages in thread From: muhammet @ 2019-05-16 4:35 UTC (permalink / raw) To: buildroot 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Orange pi zero: i2c is not under /dev 2019-05-16 4:35 [Buildroot] Orange pi zero: i2c is not under /dev muhammet @ 2019-05-16 6:01 ` Thomas Petazzoni 2019-05-16 6:40 ` muhammet 0 siblings, 1 reply; 7+ messages in thread From: Thomas Petazzoni @ 2019-05-16 6:01 UTC (permalink / raw) To: buildroot Hello, On Wed, 15 May 2019 23:35:19 -0500 (CDT) muhammet <mk61@hotmail.com> 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 -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Orange pi zero: i2c is not under /dev 2019-05-16 6:01 ` Thomas Petazzoni @ 2019-05-16 6:40 ` muhammet 2019-05-16 6:56 ` Thomas Petazzoni 0 siblings, 1 reply; 7+ messages in thread From: muhammet @ 2019-05-16 6:40 UTC (permalink / raw) To: buildroot <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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Orange pi zero: i2c is not under /dev 2019-05-16 6:40 ` muhammet @ 2019-05-16 6:56 ` Thomas Petazzoni 2019-05-16 11:13 ` muhammet 0 siblings, 1 reply; 7+ messages in thread From: Thomas Petazzoni @ 2019-05-16 6:56 UTC (permalink / raw) To: buildroot Hello, On Thu, 16 May 2019 01:40:31 -0500 (CDT) muhammet <mk61@hotmail.com> 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 -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Orange pi zero: i2c is not under /dev 2019-05-16 6:56 ` Thomas Petazzoni @ 2019-05-16 11:13 ` muhammet 2019-05-16 18:09 ` Peter Korsgaard 0 siblings, 1 reply; 7+ messages in thread From: muhammet @ 2019-05-16 11:13 UTC (permalink / raw) To: buildroot 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Orange pi zero: i2c is not under /dev 2019-05-16 11:13 ` muhammet @ 2019-05-16 18:09 ` Peter Korsgaard 2019-05-20 5:10 ` muhammet 0 siblings, 1 reply; 7+ messages in thread From: Peter Korsgaard @ 2019-05-16 18:09 UTC (permalink / raw) To: buildroot >>>>> "muhammet" == muhammet <mk61@hotmail.com> 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 > 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. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Orange pi zero: i2c is not under /dev 2019-05-16 18:09 ` Peter Korsgaard @ 2019-05-20 5:10 ` muhammet 0 siblings, 0 replies; 7+ messages in thread From: muhammet @ 2019-05-20 5:10 UTC (permalink / raw) To: buildroot 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-05-20 5:10 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-05-16 4:35 [Buildroot] Orange pi zero: i2c is not under /dev muhammet 2019-05-16 6:01 ` Thomas Petazzoni 2019-05-16 6:40 ` muhammet 2019-05-16 6:56 ` Thomas Petazzoni 2019-05-16 11:13 ` muhammet 2019-05-16 18:09 ` Peter Korsgaard 2019-05-20 5:10 ` muhammet
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox