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.

There is currently one response to “Fonera i2c - driver update on Kamikaze 7.07”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On November 17th, 2008, Frederico said:

    Hello,

    I’m trying to implement i2c on my fonera (2100 aka fonera 1.0) but i’m running into some troubles.

    I’m using the latest kamikaze development and the options available differ from those that you have on your README file.

    After flashing the fonera i get an erro with the i2c-algo-bit module when trying to the insmod that you say on our instructions. The system says it is not available.

    Can you post the full instructions for installing your i2c module on the fonera, both kernel_menuconfig and openwrt menuconfig and how to use with your detector.

    Also if you could give me a general idea of how your i2c module works and how to enhance its performance using the udelay variable, would be great.

    I’m trying to use the fonera to implement a i2c bus for controlling a ATMEGA8 and a LCD and to comunicate with a PLC using the RS-232 with MODBUS on it.

    Thanks in advance

Leave a Reply

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