LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can someone help me with this kernel patch? (https://www.linuxquestions.org/questions/slackware-14/can-someone-help-me-with-this-kernel-patch-278434/)

bad_andy 01-16-2005 09:56 AM

Can someone help me with this kernel patch?
 
I'm trying to install lm-sensors for my 2.4.26 kernel. Not knowing that it had a bug, I installed i2c-2.9.0, only to find that when i run sensors-detect, I get a "no i2c modules detected." There's a patch called "i2c-2.9.0.1" (http://secure.netroedge.com/~lm78/download.html) that's supposed to solve the problem, but I have no clue what to do with this text.

If this patching thing is too complicated, I'd just as well uninstall i2c-2.9.0 and go with an older version, but I don't know how to do that either.

So I'm kinda stuck. Can anyone walk me through either patching this data or uninstalling i2c altogether so that I can get an earlier version?

Thanks.

Linux~Powered 01-16-2005 10:09 AM

mv the patch to your /usr/src/linux or kernel you're patching. cd into your /usr/src/linux or kernel you're patching. Run patch -p1 < <nameofpatch>. mv your .config file to another directory. Then make mrproper. mv your .config back to /usr/src/linux or kernel you're patching. make oldconfig. Go into your kernel and make any necessary adjustments. Then make bzImage && make modules && make modules_install . Then copy your image to your /boot make your links and reboot. Good luck

bad_andy 01-16-2005 03:58 PM

Whoa...that went right over my head. What about uninstalling i2c-2.9.0 from my system? How do I go about doing that? I installed it from a tar.gz file.

Linux~Powered 01-16-2005 05:26 PM

cd into the directory you installed it from and...

Code:

make uninstall
That's if it has an uninstall program, not all applications do. I'd recommend installing checkinstall
When you install a package with checkinstall you can remove it aftarwards with "removepkg" or "pkgtools", makes it alittle bit easier on yourself. That and "Linux 2.6 users do not need to get this i2c package, it's already part of the kernel tree." I'd update your kernel to 2.6.*. It has support for i2c built into the kernel.


All times are GMT -5. The time now is 12:20 AM.