Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to install lm_sensors but have kernel question
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
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sat Mar 01, 2014 11:34 pm    Post subject: Trying to install lm_sensors but have kernel question Reply with quote

So this is the first time I think reconfiguring the kernel has come up in my all be it short gentoo experience.

The wiki for lm_sensors found here (https://wiki.gentoo.org/wiki/Lm_sensors) says the following:

[img]http://s27.postimg.org/tc1jaq4mn/lm_sensors_kernel_upgrade.jpg[/img]
What does this mean I have to do exactly?

If someone could just point me in the right direction I would be much appreciative.

I know I had to configure the kernel initially at install but not sure how to add these options at this point. Must I recompile the kernel?

Thanks in advance.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sat Mar 01, 2014 11:51 pm    Post subject: Reply with quote

you clean your source tree, copy over old config from /boot/config-$(uname -r) to /usr/src/linux/.config, make menuconfig & then add those kernel options outlined in the lm sensors wiki.

* sensors-detect requires CONFIG_I2C_CHARDEV to be enabled.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.

mkultra@mkultra [ ~ ] $ cat /usr/src/linux-$(uname -r)/.config | grep -i config_i2c_chardev
# CONFIG_I2C_CHARDEV is not set

so my kernel doesnt have that set, after setting those options in the config that command should say either m or y

recompile, insert new kernel into boot loader, refresh bootloader stuff do their respective wikis and you're done.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Sun Mar 02, 2014 12:01 am    Post subject: Reply with quote

It means the wiki is weaky :P

Just add everything you want from Hardware Monitoring Support as module :
1/ no need to know what module you need them
2/ lm_sensor detect and load the module it will need
3/ no need to rebuild the kernel if you add everything as module, just build the new modules and install them. If you add them buildin as wiki suggest, this time, you need to rebuild & install that new kernel.
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Mar 02, 2014 12:28 am    Post subject: Reply with quote

666threesixes666 wrote:
you clean your source tree, copy over old config from /boot/config-$(uname -r) to /usr/src/linux/.config, make menuconfig & then add those kernel options outlined in the lm sensors wiki.

* sensors-detect requires CONFIG_I2C_CHARDEV to be enabled.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.

mkultra@mkultra [ ~ ] $ cat /usr/src/linux-$(uname -r)/.config | grep -i config_i2c_chardev
# CONFIG_I2C_CHARDEV is not set

so my kernel doesnt have that set, after setting those options in the config that command should say either m or y

recompile, insert new kernel into boot loader, refresh bootloader stuff do their respective wikis and you're done.


thanks for the quick response reading over now to see if I understand it all!
Back to top
View user's profile Send private message
soulrain
n00b
n00b


Joined: 27 Dec 2013
Posts: 21

PostPosted: Sun Mar 02, 2014 1:09 am    Post subject: Reply with quote

krinn wrote:
It means the wiki is weaky :P

Just add everything you want from Hardware Monitoring Support as module :
1/ no need to know what module you need them
2/ lm_sensor detect and load the module it will need
3/ no need to rebuild the kernel if you add everything as module, just build the new modules and install them. If you add them buildin as wiki suggest, this time, you need to rebuild & install that new kernel.


Thanks guys first time I have had to do this so just writing down the steps one by one and googling exactly how to perform each step.

Thanks so much for taking the time to respond and I will get back with my progress.
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