OpenWrt Forum Archive

Topic: i2c bus on microtik rb133c

The content of this topic has been archived on 4 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi
I'm trying to use i2c bus over gpio pin on a microtik routerboard 133c with adm5120 processor
I followed instructions found here:
http://linux-adm5120.sourceforge.net/openwrt/i2c/
and things seems easy ... but it don't work !
especially in kernel configuration section of the above pageI'm unable to find the i2c-gpio-custom driver in kernel_menuconfig menus
moreover the kernel command line in the compiled kernel never include the option i added... the compile process seems to discard it !
if i add it manually (editing the compiled kernel with an hex editor) i get a message "unknown boot option i2c-gpio-custom..." at boot time

what is wrong ?

please help me ... i'm trying it since 5 days ! (in spare time naturally...)

thanks

ok ... found
i2c-gpio and i2c-gpio-custom must be loaded both ... some instruction wasn't clear about this
moreover the insmod sequence is important !

compiled all as module
then:
insmod i2c-core
insmod-i2c.algo-bit
insmod i2c-dev
insmod i2c-gpio-custom bus0=0,14,15
insmod i2c-gpio

then it works great !

The discussion might have continued from here.