On Fri, 25 Mar 2011, sanjuan34 wrote:
> I'm having trouble building a kernel with I2C enabled. In brief, I'm
> applying the I2C patch (patch -p1 < i2c-ep93xx.patch), to the standard TS
> linux-2.6.21-ts kernel.
>
> The first problem I had was an undefined 'mdelay' in the struct
> i2c_algo_bit_data. So for gits and shiggles I actually added it to the
> struct in i2c-algo-bit.h just to see what would happen.
>
> The kernel actually gets built, then when the modules are getting built I
> get "i2c_bit_del_bus" [drivers/i2c/busses/i2c-ep93xx.ko] undefined!
>
> Anyway, hacking i2c-algo-bit.h isn't really the way to go, but what IS
> the way to get I2C working on a TS-7350?
Are you sure the patch you have is meant for a 2.6.21 kernel?
Just because a patch works with one version of the kernel doesn't mean it
will work with another.
I've successfully implemented i2c on the Technologics 2.4.26-ts11 kernel
using the patch set at
http://tisnix.dommel.be/ts-7260/
It implements bit banging on DIO1 (PortB) bits 0 & 1, though this is
configurable when loading the module. I also had to anable & build the
rest of i2c modules.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|