Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i2c and kernel compile issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
j7899
n00b
n00b


Joined: 16 May 2002
Posts: 30

PostPosted: Sat May 18, 2002 8:18 am    Post subject: i2c and kernel compile issue Reply with quote

I am currently trying to compile my kernel with i2c support, which make dep && make clean bzImage modules is fine, but when make modules_install is executed I get the below error. I need i2c compiled in so Gkrellm can display cpu temp and also voltages. Any adivce? It is listing the error after pcmcia, but I dont have any support enabled since I dont have pcmcia ports.

make[1]: Leaving directory `/usr/src/linux-2.4.19-gentoo-r5/arch/i386/lib'
cd /lib/modules/2.4.19-gentoo-r5; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.19-gentoo-r5; fi
depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r5/misc/i2c-hydra.o
depmod: i2c_bit_add_bus_R8c3bc60e
depmod: i2c_bit_del_bus_R92b18f49
depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r5/misc/i2c-i810.o
depmod: i2c_bit_add_bus_R8c3bc60e
depmod: i2c_bit_del_bus_R92b18f49
depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r5/misc/i2c-via.o
depmod: i2c_bit_add_bus_R8c3bc60e
depmod: i2c_bit_del_bus_R92b18f49
depmod: *** Unresolved symbols in /lib/modules/2.4.19-gentoo-r5/misc/i2c-voodoo3.o
depmod: i2c_bit_add_bus_R8c3bc60e
depmod: i2c_bit_del_bus_R92b18f49
make: *** [_modinst_post] Error 1
Back to top
View user's profile Send private message
Guest






PostPosted: Sun May 19, 2002 6:15 am    Post subject: Hey...Me too Reply with quote

I am getting the same problem compilimg for a p3/celeron with i2c support.

Could someone offer some suggestions??
Back to top
jigma
n00b
n00b


Joined: 10 May 2002
Posts: 51
Location: NZ

PostPosted: Sun May 19, 2002 6:17 am    Post subject: Try this Reply with quote

first "emerge unmerge lm_sensors"

then "make modules_install"

then "emerge lm_sensors"
Back to top
View user's profile Send private message
j7899
n00b
n00b


Joined: 16 May 2002
Posts: 30

PostPosted: Sun May 19, 2002 11:28 am    Post subject: Reply with quote

Well I hosed my system by accident and started over. The modules load fine, but once I install lm_sensors that is when I the errors.
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Mon May 20, 2002 1:54 am    Post subject: Reply with quote

I would forget about the lm_sensors package and use cvs. Go here [url=http://www2.lm-sensors.nu/~lm78/download.html] and follow the instructions for getting the cvs version. Do this as root from you /usr/src directory. Make sure to get the i2c and lm_sensors2 modules, you can update them later by running "cvs update -d" from within the directories that are created when you DL them the first time.

Now, to patch the kernel cd into i2c (you must do this before lm_sensors2) and run the following:

mkpatch/mkpatch.pl . /usr/src/linux | patch -p1 -E -d /usr/src/linux

Then run the same command from lm_sensors2.

Voila, activate i2c and the proper interfaces and the hardware sensors appear magically. I build mine in and avoid the hassle of setting up modules.

(Ed.) Arggh, I hate UBB code. You'll have to copy and paste.
Back to top
View user's profile Send private message
Kartoffel
n00b
n00b


Joined: 23 Apr 2002
Posts: 29

PostPosted: Tue May 21, 2002 8:50 pm    Post subject: Reply with quote

I had the same problem this is how I fixed it

rm /lib/modules/2.4.19-gentoo-r5/misc/i2c-hydra.o
rm /lib/modules/2.4.19-gentoo-r5/misc/i2c-i810.o
rm /lib/modules/2.4.19-gentoo-r5/misc/i2c-via.o
rm /lib/modules/2.4.19-gentoo-r5/misc/i2c-voodoo3.o

Of course if you have to actually use those modules to get at the cpu temps then you really do have a problem. Have you tried ignoring the errors and continuing the install/setup? I did and it works fine (if I could just figure out why my case temp is at -100C cpu is correct however)

I juste deleted the broken modules because they annoyed me.

Have fun
Jeff
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Tue May 21, 2002 10:15 pm    Post subject: Reply with quote

Installing the package is what creates all those bogus modules. Patching the kernel and configuring only what you need, whether built-in or as modules, does a much cleaner job.
Back to top
View user's profile Send private message
j7899
n00b
n00b


Joined: 16 May 2002
Posts: 30

PostPosted: Wed May 22, 2002 5:25 am    Post subject: Reply with quote

Thanks for all the replies I will look into it and try it out when I have some time. When I tried an modprobe i2c_ali(whatever it was) also returned insmod errors saying device resource busy, blah blah blah. I am assuming using the CVS build will fix this.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum