Hi,

After experimenting with the 2.4.x I2C drivers, I've decided that I
may be best off just using the 2.6.x kernel, since it includes the
"MCF Coldfire" driver under I2C Support -> I2C Hardware Bus Support
(thanks to Gavin, Michael, and Markus for clearing up some of my
questions on that).

However, when I select the MCF Driver for inclusion in the kernel, I
get a whole bunch of errors.  I'm using the 20070130 (unpatched)
release, and my m68k-uclinux-gcc is configured as follows:

[EMAIL PROTECTED]:~/uCLinux$ m68k-uclinux-gcc -v
Using built-in specs.
Target: m68k-uclinux
Configured with:
/home/gerg/src/gnu/m68k-elf/autobuild/gcc-4.1.1/configure
--target=m68k-uclinux
--with-headers=/home/gerg/src/gnu/m68k-elf/autobuild/linux-2.6.16/include
--enable-multilib --disable-shared --enable-languages=c,c++
Thread model: single
gcc version 4.1.1

The errors I get are as follows:

make[1]: Entering directory `/home/rr/uCLinux/uClinux-dist/linux-2.6.x'
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  GEN     usr/initramfs_data.cpio.gz
  CHK     include/linux/compile.h
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      drivers/i2c/busses/i2c-mcf.o
  CC      drivers/mtd/mtdcore.o
  CC      drivers/net/Space.o
drivers/i2c/busses/i2c-mcf.c: In function coldfire_do_first_start:
drivers/i2c/busses/i2c-mcf.c:94: error: MCF_I2C_I2CR undeclared (first
use in this function)
drivers/i2c/busses/i2c-mcf.c:94: error: (Each undeclared identifier is
reported only once
drivers/i2c/busses/i2c-mcf.c:94: error: for each function it appears in.)
drivers/i2c/busses/i2c-mcf.c:94: error: MCF_I2C_I2CR_MSTA undeclared
(first use in this function)
drivers/i2c/busses/i2c-mcf.c: In function coldfire_read_data:
drivers/i2c/busses/i2c-mcf.c:116: error: MCF_I2C_I2CR undeclared
(first use in this function)
drivers/i2c/busses/i2c-mcf.c:116: error: MCF_I2C_I2CR_MTX undeclared
(first use in this function)
drivers/i2c/busses/i2c-mcf.c:119: error: MCF_I2C_I2CR_TXAK undeclared
(first use in this function)
drivers/i2c/busses/i2c-mcf.c:125: error: MCF_I2C_I2DR undeclared
(first use in this function)
drivers/i2c/busses/i2c-mcf.c:131: error: MCF_I2C_I2SR undeclared
(first use in this function)
......

This goes on, with similar errors, all from the same file.

Thinking that one of the includes was screwed up, I grepped for a
number of the undeclared pointers, but they only showed up in
i2c-mcf.c.  Is it expected that you define these pointers yourself, or
am I doing something wrong here?

Thanks,

-David van Geest
[ Rhythm Reloaded ]
www.rhythmreloaded.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to