Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get latest/custom module into kernel
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
thusnelda
n00b
n00b


Joined: 22 May 2017
Posts: 2

PostPosted: Mon May 22, 2017 3:02 pm    Post subject: Get latest/custom module into kernel Reply with quote

Hello,

i'm running kernel 4.11.2 and there is ITE IT87XX Support but for my Ryzen Asus B350 i need the latest from git for lm_sensors.

There is an update on git: https://github.com/groeck/it87 (thank you !)

How can i get this "safe" into "my" kernel?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7133
Location: Saint Amant, Acadiana

PostPosted: Mon May 22, 2017 3:07 pm    Post subject: Reply with quote

Did you try to clone it and build it as module against your current kernel?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7163
Location: almost Mile High in the USA

PostPosted: Mon May 22, 2017 3:17 pm    Post subject: Reply with quote

Well, anything git is not "sanctioned" for any OS so you're not going to be safe.

Looks like:
1. Clone the repo or download all the files into a directory
2. I found this by experimentation: Edit the Makefile and change the line

KERNEL_BUILD := /usr/src/linux-header-${TARGET}

to point to wherever your currently running kernel's source tree is located.

3. Run make
4. Copy the .ko file into your /lib/modules/your-kernel-version/kernel/drivers/hwmon/ or around there
5. run depmod to make sure everything is fine and rebuild dep tree.

Well, at least that's how I'd do it...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
thusnelda
n00b
n00b


Joined: 22 May 2017
Posts: 2

PostPosted: Mon May 22, 2017 3:37 pm    Post subject: Reply with quote

Thank you. I edit the Kernel_BUILD line into:
Code:

KERNEL_BUILD    := /usr/src/linux-$(TARGET)


The module successfully built. :)

Copy *.ko into /lib/modules/4.11.2-gentoo and modprobe it87.

But lm_sensors (sensors-detect) don't recognize / use the module. Maybe i have to upgrade it too and yes i also try reboot.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7163
Location: almost Mile High in the USA

PostPosted: Mon May 22, 2017 7:07 pm    Post subject: Reply with quote

It should auto pick up any loaded modules, did it report that it found your hardware in dmesg?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
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