i2c on RPI-B not working
Rui Paulo
rpaulo at FreeBSD.org
Tue Apr 29 17:07:20 UTC 2014
On Apr 26, 2014, at 4:14, Mark R V Murray <mark at grondar.org> wrote:
> Hi *
>
> The i2b bus on my RPI-B isn’t working:
>
> [grapeseed] /usr/src 11:11 am # i2c -sv
> dev: /dev/iic0, addr: 0x0, r/w: r, offset: 0x00, width: 8, count: 1
> Error scanning I2C controller (/dev/iic0): Device not configured
> Scanning I2C devices on /dev/iic0: [grapeseed] /usr/src 11:11 am # i2c -sv -f /dev/iic1
> dev: /dev/iic1, addr: 0x0, r/w: r, offset: 0x00, width: 8, count: 1
> Error scanning I2C controller (/dev/iic1): Device not configured
>
> Its a bog-standard build with the RPI-B kernel, and a CURRENT about a week old.
This is because the controller doesn't support scanning. You need to write your own C program to issue iic ioctls for reading / writing to the i2c bus.
--
Rui Paulo
More information about the freebsd-arm
mailing list