hi !
>
> > kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old -
> > i2c-2.7.0 or greater required!
> > kernel/busses/i2c-amd8111.c: In function `amd8111_access':
> > kernel/busses/i2c-amd8111.c:238: `I2C_CLIENT_PEC' undeclared (first
> > use in this function)
> > kernel/busses/i2c-amd8111.c:238: (Each undeclared identifier is
> > reported only once
> > ...snipp.......
> > make: *** [kernel/busses/i2c-amd8111.o] Error 1
> > make: *** Waiting for unfinished jobs....
>
> The error at line 25 occurs if I2C_HW_SMBUS_AMD8111 is undeclared,
> which happens in linux/i2c-id.h, which gets included by linux/i2c.h.
>
> Perhaps you haven't enabled I2C in the kernel?
it is enabled, my winTV-videocard is using this thing sucessfully :-)
btw in the i2c ebuild:
* i2c package installed ...
* IMPORTANT ... if you are installing this package you need to either
* IMPORTANT ... *disable* kernel i2c support or *enable it as a module*
out of .config:
# I2C support
#
CONFIG_I2C=m
CONFIG_I2C_ALGOBIT=m
# CONFIG_I2C_PHILIPSPAR is not set
CONFIG_I2C_ELV=m
CONFIG_I2C_VELLEMAN=m
CONFIG_I2C_ALGOPCF=m
CONFIG_I2C_ELEKTOR=m
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_PROC=m
but my problem is with headerfiles
I changed nothing with i2c-2.7.0, so the following
BUILD_SYSTEM := lm_sensors
LINUX_INCLUDE_DIR := /usr/local/include/linux
is set.
but the i2c install the header in /usr/include/linux:
>>> /usr/include/linux/i2c.h
>>> /usr/include/linux/i2c-algo-bit.h
>>> /usr/include/linux/i2c-algo-pcf.h
>>> /usr/include/linux/i2c-proc.h
>>> /usr/include/linux/i2c-elektor.h
>>> /usr/include/linux/i2c-dev.h
>>> /usr/include/linux/i2c-pcf8584.h
>>> /usr/include/linux/i2c-id.h
I made a symlink from /usr/include/linux to /usr/local/include/linux
The headerfiles are there and all the defines and so but the make breaks down :-(
Then I changed in i2c-amd8111.c
#Include <linux/i2c.h>
to
#include </usr/include/linux/i2c.h>
and i2c-amd8111 compiles.
I think, it's a problem with some path.
In my system there are many i2c.h's
-rw-r--r-- 1 root root 24354 Feb 28 14:37 /usr/include/linux/i2c.h
-rw-r--r-- 1 root root 3498 Feb 19 17:46 /usr/include/sound/i2c.h
-rw-r--r-- 1 root root 21543 Feb 28 14:28
/usr/src/linux-2.4.19-gentoo-r10/include/linux/i2c.h
and more
okay, I give up.
Joe
--
[EMAIL PROTECTED] mailing list