Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 569  / 2 Years ago, sun, december 5, 2021, 2:05:40

How can I find out with which settings my kernel was compiled?



I would like to understand the concept behind this. I wonder how I can find out which device uses which module.



For example: right now, I want to find out which which wifi module my kernel is running because it is my Intel Corporation Wireless-N 7260 card dies randomly



I tried: make menuconfig but this just shows:



make: *** No rule to make target `menuconfig'.  Stop.


Or can I find out the module with sysctl? This is the output of sysctl -a


More From » wireless

 Answers
3

It doesn't really help to understand the concept to look at the kernel settings:



cat /boot/config-`uname -r`


This only shows which settings were used, while the kernel was compiled and unless you want to compile your own kernel, there is now use to change this.



You want to look at the output of lsmod, which shows all loaded modules. There you can guess, which module could be used for which device, In this example it is something with "iw:



$ lsmod|grep iw
iwlmvm 184162 0
mac80211 582807 1 iwlmvm
iwlwifi 161370 1 iwlmvm
cfg80211 447796 3 iwlwifi,mac80211,iwlmvm


for each module you can see details with modinfo <modulename>



You find your device name and ID with lspci (or lsusb) for example:



$ lspci|grep -i wireless
01:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)


then search for the device-id string 7260 in the details of the loaded modules, in this case you succeed with:



$ modinfo iwlwifi|grep 7260
firmware: iwlwifi-7260-7.ucode


then locate the firmware-file with



$ locate  iwlwifi-7260-7.ucode
/lib/firmware/iwlwifi-7260-7.ucode

[#23295] Monday, December 6, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;