Hacks, hints, and tricks

From Studio Kousagi Wiki
Revision as of 04:39, 25 February 2014 by Bunnie (talk | contribs) (Created page with "A resting place for important technotes that don't fit anywhere else. =Hacks= ==I2C debugging== The kernel will lock I2C devices, making it impossible to use userspace tools to ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A resting place for important technotes that don't fit anywhere else.

Hacks

I2C debugging

The kernel will lock I2C devices, making it impossible to use userspace tools to debug an issue. To get around this, modify drivers/i2c/i2c-dev.c and remove the EBUSY return statement. E.g. there's a function that either returns 0 or -EBUSY, make it always return 0.

Then you can use the i2c utilities to access devices that are in use.