5th September 2007

Fonera i2c - driver update on Kamikaze 7.07

Tags : , ,

posted in Embedded |

Update from OpenWrt Kamikaze 7.06 to 7.07 give a lot of good things. One of them is linux 2.6.21.5. The driver for the i2c bus adapter using GPIO need update. Here is.

Main change is the swith from i2c_bit_del_bus to i2c_del_adapter. Drivers seem unstable at boot time :

i2c-algo-bit.o: (0) scl=0, sda=0
i2c-algo-bit.o: GPIO adapter seems to be busy.

But after two minutes, everything work nice again :

i2c-algo-bit.o: (0) scl=128, sda=16
i2c-algo-bit.o: (1) scl=128, sda=0
i2c-algo-bit.o: (2) scl=128, sda=16
i2c-algo-bit.o: (3) scl=0, sda=16
i2c-algo-bit.o: (4) scl=128, sda=16
i2c-algo-bit.o: GPIO adapter passed test.
 : hw routines registered.
I2C adapter driver [GPIO adapter] forgot to specify physical device
i2c_adapter i2c-0: adapter [GPIO adapter] registered
i2c-dev: adapter [GPIO adapter] registered as minor 0
gpio_i2c: module loaded
gpio_i2c: inverted outputs

System load problem perhaps... I need to work on it. Looking on the software side by playing with bigger udelay (allready very big, 600) and on the hardware side too. Capacitors and resistors on the GPIOs can form a RC network that slow down I/O.

Drivers sources are here : http://www.lefinnois.net/fonerai2c/i2c-gpio-0.0.6.tar.gz

Kamikaze 7.07 packages here : http://www.lefinnois.net/fonerai2c/7.07/atheros-2.6/packages/

This entry was posted on Wednesday, September 5th, 2007 at 10:20 pm and is filed under Embedded. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image