From: Paul K. <pau...@xs...> - 2005-03-30 07:00:51
|
Hi Luis and Michael, I did a check this morning. A 'normal' build doesn't enable the i2c support as you both noticed. The reason for this is that in the autoconf phase of the build the include file linux/i2c-dev.h is not detected as valid. I am not sure of the reason but it has to do with the way it is validated by autoconf. I edited configure.in to return true for the i2c support even in the invalid case. It now builds nicely and i2c support is also enabled. Unfortunately doesn't work properly yet. I'll have to look into it later today. My guess is, that it has to do with the specification of the ENABLE, RW, RS control signals. At least the observed behaviour seems similar to what I had initialy. Later today I should have some more time to test. Cheers, Paul Luis Correia wrote: > Michael Reinelt wrote: > >> Hi Luis, >> >> >> >>> My devel system is Fedora Core 3 with all the latest updates. Yes, it >>> is a 2.6 series kernel. >>> >> >> Mine is debian sarge/sid/experimental/dangerous/bleeding_edge/.., but >> with a self-brewed vanilla kernel 2.6.11 >> >> >> >>> But I2C is a major hack if you ask me... >>> >> >> Full ACK. >> >> >>> Kernel has it's own i2c functions, the lm_sensors project also has >>> some other functions. >>> >> >> I did have a look at lm_sensors, looks like they don't use the i2c >> interface at all, but access the /proc or /sys files only. >> >> >> >>> Let's do this, please include these two files, and i'll see what can >>> be done about detecting the proper i2c includes. >>> >> >> I commited your patch with some modifications, and added all the auto* >> stuff. It compiles cleanly here, but for a simple reason: configure >> decieds that linux/i2c.h is unusable, and therefore deactivates I2C >> support :-) >> >> Please give it a try! >> >> >> > I did... it seems there is still a problem... > > Although you do have ifdef's around my I2C functions, and after I > manually enable I2C by editing config.h, it seems to ignore the > drv_generic_i2c.h file, as it spews out errors at tthe end, and > drv_generic_i2c.c is not being compiled at all... > > What does the configure look for in order to detect I2C as present? > >> bye, Michael >> >> >> > > Luis > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Lcd4linux-devel mailing list > Lcd...@li... > https://lists.sourceforge.net/lists/listinfo/lcd4linux-devel > > |