Hi,
I am not sure if this is a bug or not :-)
Currently I am using revision 12089 (https://svn.openwrt.org/openwrt/trunk) on an BR6104KP (kernel 2.6.25.12). I can use all LEDs except the USB leds - but this is not my problem. I have set up i2c via make menuconfig. The relevant parts of .config looks like
/raid5-4/openwrt-040808/trunk> grep -in i2c .config
1042:# I2C support
1044:CONFIG_PACKAGE_kmod-i2c-core=y
1045:CONFIG_PACKAGE_kmod-i2c-algo-bit=y
1046:# CONFIG_PACKAGE_kmod-i2c-algo-pca is not set
1047:# CONFIG_PACKAGE_kmod-i2c-algo-pcf is not set
1048:CONFIG_PACKAGE_kmod-i2c-gpio=y
1049:CONFIG_PACKAGE_kmod-i2c-gpio-custom=y
The kernel module i2c-gpio-custom.ko was build but I am not able to load it without error messages:
root@OpenWrt:~# rmmod i2c-gpio-custom
root@OpenWrt:~# cd /lib/modules/2.6.25.12
root@OpenWrt:/lib/modules/2.6.25.12# insmod i2c-gpio-custom.ko bus0=0,1,3
The module is loaded but I got this ugly message
Custom GPIO-based I2C driver version 0.1.0
kobject (80e4f070): tried to init an initialized object, something is seriously wrong.
Call Trace:[<8000781c>][<8000781c>][<800fd0b0>][<80127810>][<8012c94c>][<8012c9f4>]
[<8012c87c>][<80020774>][<c00a1144>][<80020774>][<c00a1000>][<c00a11a0>][<80063d34>]
[<80045920>][<800091f0>]
I have checked the following instructions again and again:
http://linux-adm5120.sourceforge.net/openwrt/i2c/
Any ideas?
Best regards,
Frank
(Last edited by frank-km on 13 Aug 2008, 16:23)