Date: Tue, 29 Apr 2014 10:07:18 -0700 From: Rui Paulo <rpaulo@FreeBSD.org> To: Mark R V Murray <mark@grondar.org> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: i2c on RPI-B not working Message-ID: <1CFC3564-65F0-4DC8-950C-3D53BBB2761C@FreeBSD.org> In-Reply-To: <93181B67-1944-4DDD-A595-455D2AE9B110@grondar.org> References: <93181B67-1944-4DDD-A595-455D2AE9B110@grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 26, 2014, at 4:14, Mark R V Murray <mark@grondar.org> wrote: > Hi * >=20 > The i2b bus on my RPI-B isn=92t working: >=20 > [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 >=20 > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1CFC3564-65F0-4DC8-950C-3D53BBB2761C>