From: Nelson R. Jr. <Nelson.Rosa.Jr@Dartmouth.EDU> - 2006-02-12 21:08:02
|
forgot to add a subject to the first email... On Sun, 2006-02-12 at 16:02, Nelson Rosa Jr. wrote: > Hi, > > Sorry if I'm using bad list etiquette; I'm obviously a noob to this sort of stuff. > > my question is has the below issue with the i2c-pxa module tainting the kernel been fixed in the > 2.6.15 kernel yet? > > Is there a workaround until then? I'm still learning kernel programming, but do the i2c modules > need to be loaded in order for me to use my i2c dependent kernel module? > It seems that the linker does everything for me, but those EXPORT_SYMBOL macros make me wonder if > things are linked in when the module is loaded into the kernel or at compile time. > > Since what I'm doing is time sensitive I just reverted back to the 2.6.11 kernel. > > The following is an aside on what my project is...maybe you all could provide some comments > or suggestions. I am currently writing a kernel module to read in images from a c3088 > camera module (if this has already been done please let know). My thoughts were to read in the > images from a set of gpio pins and use the ioctl interface to allow the user to modify the camera > registers, which can be manipulated from the i2c bus. > > I'm aware of the voltage level difference but i think i've modified the board accordingly. > > i've been relying heavily on LDD 3rd ed. and Mr. Hylands code from robostix_drv.c as a guide. > I'm a little confused as to how the new i2c_io stuff work on the 2.6.15 kernel w/o the > i2c stuff working properly. is the i2c code running on the latest kernel? > > Thanks, > NR > > > ====================================> > > Hi Craig, > > It turns out that if I build i2c as a module then it won't load. > > I've tracked it down to the following: > > drivers/base/platform.c contains the following: > EXPORT_SYMBOL_GPL(platform_driver_register); > > which means that only modules which have the GPL license can link against it. > > drivers/i2c/busses/i2c-pxa.c seems to be missing the appropriate > MODULE_LICENSE directive to indicate that it's GPL. > > I discovered that i2c-pxa.c seems to be fixed in 2.6.16-rc2. It wasn't > fixed in 2.6.15-rc7 > > I've attached a patch that fixes the i2c-pxa.c file, and it seems to > make things work. > I also added it to the end of the series file. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ |