i2c-gpio-param icon indicating copy to clipboard operation
i2c-gpio-param copied to clipboard

No output on SDA and SCL pins

Open RandomInsano opened this issue 9 years ago • 1 comments

Installed kernel modules and built using rpi-update, then built successfully. Imported using insmod, that all seems to work fine.

Problem comes when configuring and using. Tried this:

echo 6 28 29 > /sys/class/i2c-gpio/add_bus

This seems to work according to dmesg::

[ 1241.318952] id=6, sda=28, scl=29, udelay=0, timeout=0, sda_od=0, scl_od=0, scl_oo=0
[ 1241.331290] i2c-gpio i2c-gpio.6: using pins 28 (SDA) and 29 (SCL)

The problem ends up being that I have a Bus Prirate (simple logic analyzer) hooked up and I am getting no traffic whatsoever out of pins 28 and 29. I have no trouble whatsoever reading data from the hardware i2c, but the device I'll eventually be using is restricted to 1KHz.

Anything I can do to help troubleshoot this?

RandomInsano avatar Aug 28 '16 04:08 RandomInsano

Also relevant:

Hardware is Raspberry Pi B+

$ uname -a Linux raspberrypi 4.4.13+ #894 Mon Jun 13 12:43:26 BST 2016 armv6l GNU/Linux

$ uname -r 4.4.13+

For fun, I tried disabling the i2c bus after confirming it was wired correctly. Using your module, I'm not getting anything from the same commands, though I'm using the correct pins (0 and 1).

I may need to build a custom kernel, as I don't know if what ships with Raspbian actually has CONFIG_I2C_GPIO (I'm not even sure how to check).

RandomInsano avatar Aug 28 '16 05:08 RandomInsano