slackware 10.1 lm_sensors
Has anybody succeeded to compile i2c/lm_sensors 2.9.0 on slackware 10.1
I get compilation errors.... I patched i2c 2.9.0 to 2.9.0.1, or at least i think i did: after tar xvzf i2c-2.9.0.tar.gz I did patch -p0 < i2c-2.9.0.1.patch and make and checkinstall. then I uncompressed lm_sensors and i get errors in make: Code:
kernel/chips/bmcsensors.c: In function `ipmi_sprintf': Code:
kernel/busses/i2c-ipmi.c: At top level: |
what kernel do you use ?
egag |
the default bare.i 2.4.29
|
oh...i was afraid of that....
( just took a look at the install-instructions for 2.4--- := horror) i use a 2.6-- kernel. so i have no experience with that, but maybe compiling a 2.6--- kernel is simpler. maybe you want to go for that......? egag |
i think it was a bug, because when i downloaded the cvs version, it compiled fine....
Anyway, i did not manage to make it work. when did a sensor detect and added the lines in modules.conf, when i rebooted , i got messages of invalid lines in modules.conf. After i deleted the lines and rebooted i got a segmentation fault in hotplug and the computer stuck there. SO I booted from the cd and removed the packages. checkinstall saved me....The Makefiles of lm_sensors and i2c do not offer a make uninstall option. If i hadn't packed them, I would have a lot more problems. lm-sensors did not work, but at least my slack is bootable again.... *EDIT* I thing it has to do with not having a proper kernel tree. I did replace the .config with the config-ide-2.4.29 (the configuration file of the kernel) and did "make xconfig" and saved the kernel configuration, and did "make dep" but I guess this wasn't enough. Maybe i need a new kernel compile to make lm_sensors work. It's a same that it's not installed in slackware by default...:( |
I managed to make it work. Last time I added by mistake the modprobe lines in modules.conf, thats why i had the errors. hotplug does seg_fault with lm)sensors and i had to dissable it in order to boot. I don't need it any way.....
I don't know if the values displayed are correct. The bold ones are the values that could be correct: Code:
lm90-i2c-0-4c Any commends? |
Re: slackware 10.1 lm_sensors
Quote:
Quote:
Quote:
Code:
/* swap lim1/lim2 if m < 0 or function is 1/x (but not both!) */ Code:
/* swap lim1/lim2 if m < 0 or function is 1/x (but not both!) */ |
Re: Re: slackware 10.1 lm_sensors
Quote:
|
Re: Re: Re: slackware 10.1 lm_sensors
Quote:
Oh by the way, to use lm_sensors, you must first modprobe all the sensor related modules. I had to load these: i2c-core i2c-proc i2c-isa #yeah, the A7V8X-X has the sensors on the ISA bus it87 After that, I did sensors -s (something you should always do before you use lm_sensors) and then just 'sensors' gives the sensor outputs. I had to tweak the configuration file a bit for my motherboard and the -5V and the -12V still display incorrect measurements, but it works good enough. Good luck, it took me a while to get it working :D |
Re: Re: Re: Re: slackware 10.1 lm_sensors
Quote:
|
That's just... odd... I don't have any problems with hotplug (except that the usb part of hotplug script takes 10 seconds to complete, but I'm used to that). I have no idea what segmentation faults are (I'm kind of a newbie), but they sound severe...
|
segmentation fault is an error an application can get when it tries to access memory outside the its own address space, which would be really dengarous. SO the OS kills it. The fact that you don't get a segmentation fault could be out of luck. I do have a TV card on my system and when hotplug detects it, it tries to load some modules. One of the modules is bttv, and this is the module that causes a seg_fault. When i remove the TV Card hotplug works fine, because it doesn't need bttv any more. If I manually try then to load bttv(witout having the card plugged), i just get this error:
Code:
lib/modules/2.4.29/kernel/drivers/media/video/bttv.o.gz: init_module: No such device |
All times are GMT -5. The time now is 07:19 AM. |