Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
accurate depmod after OOKT module compression
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
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1442

PostPosted: Sun Jan 26, 2020 7:23 pm    Post subject: accurate depmod after OOKT module compression Reply with quote

vhba is an Out Of Kernel Tree module from portage package tree.
In a kernel building homemade script:
.config can be tested for VHBA readiness.
VHBA will be emerged accordingly, i.e. module will be installed in the /lib/modules branch matching portage's setting of 'eselect kernel', which is nice because it allows to install VHBA for a kernel branch # to the current running one.
When emerged .config can be tested if module should be signed.
Signing will have to be achieved to the module file at the proper location.

Everything is fine and ready if we stop there, and VHBA should be available when next time we boot the latter build kernel.

Nevertheless one additional step can be achieved as .config can be tested if module compression is allowed (gz||xz).
VHBA module can be compressed accordingly, at the proper location.
But this will change it's name vhba.ko to vhba.ko.{gz||xz}.
Although the module loading call should remain the same, e.g. 'modprobe vhba' command line, some internal for the matching /lib/module branch must reflect that suffix change to achieve a effective load of the module.
Code:
depmod -a
seems to be achieve what is required there, i.e.:
replace reference(s) to the vhba.ko as a filename by the new filename, e.g. vhba.ko.gz, alternatively vhba.ko.xz.

It so happens the above command updates for all available modules of all available kernel branches.
This is overkilling of course.
Thus the possibility of a more granular method should be investigated.

Maybe someone has some experience or information to share in this respect, likely a less generic use of the depmod command.

Thks 4 ur attention.
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