Dear MBS,
Thanks for replying once again. You have been a tremendous help and I have been very afortunate to have your help... :-)
I also had tried that command with the parameters I suspected it would be correct for my system (0x38 as the chip address and 0 as i2c driver instance). Unfortunatelly it didn't work either.
root@OpenWrt:/# echo pcf8574 0x38 > /sys/bus/i2c/devices/i2c-0/new_device
/bin/ash: can't create /sys/bus/i2c/devices/i2c-0/new_device: nonexistent directory
Now, in terms of finding a solution for this problem:
I believe I already have the latest release (10.03.1-RC5). Could it happed it got broken meanwhile? What do you think if I downgrade the router to one release that possibly has that?
root@OpenWrt:/# cat /etc/banner
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
Backfire (10.03.1-RC5, r27608) --------------------------
* 1/3 shot Kahlua In a shot glass, layer Kahlua
* 1/3 shot Bailey's on the bottom, then Bailey's,
* 1/3 shot Vodka then Vodka.
---------------------------------------------------
root@OpenWrt:/#
I don't know much about development, but could it be that the "kernel driver for the pcf857x series" you mention would be the "i2c_algo_pcf"? I have that one installed and loaded.
root@OpenWrt:/sys/bus/i2c/devices# lsmod | grep i2c
i2c_gpio 2272 0
i2c_gpio_custom 896 0
i2c_algo_pcf 4432 0
i2c_algo_bit 4480 1 i2c_gpio
i2c_dev 4496 0
i2c_core 13808 4 i2c_gpio,i2c_algo_pcf,i2c_algo_bit,i2c_dev
root@OpenWrt:/sys/bus/i2c/devices# opkg list-installed | grep i2c
i2c-tools - 3.0.3-1
kmod-i2c-algo-bit - 2.6.30.10-1
kmod-i2c-algo-pcf - 2.6.30.10-1
kmod-i2c-core - 2.6.30.10-1
kmod-i2c-gpio - 2.6.30.10-1
kmod-i2c-gpio-custom - 2.6.30.10-2
root@OpenWrt:/sys/bus/i2c/devices# opkg files kmod-i2c-algo-pcf
Package kmod-i2c-algo-pcf (2.6.30.10-1) is installed on root and has the following files:
/etc/modules.d/55-i2c-algo-pcf
/lib/modules/2.6.30.10/i2c-algo-pcf.ko
Maybe the way of enabling a PCF chip has changed? Where can we find more information about these packages? A readme would be great....
Any idea?
Thanks!
Jabss