Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4895  / 3 Years ago, fri, october 8, 2021, 4:29:50

I read from wireless developers that I have to run make menuconfig command to change some configuration of the wireless driver (enable/disable something). After changing, do I have to recompile the kernel to give effect to changes? If I have to, how to compile?


More From » kernel

 Answers
0

First of all you have to get the kernel sources. Please have a look at the answer to »Getting the kernel source in Ubuntu«. It shows you where to get the sources. If you used the command apt-get source linux-source, you'll a tar.gz-file. You can double-click on it to unpack or use the command line:



tar xfz linux.tar.gz


You might also need several other packages. This command installs all needed:



sudo apt-get install git kernel-package fakeroot build-essential ncurses-dev


Now you should change into the directory where your kernel sources reside. If you downloaded it with git they might be in the subdirectory linux. Otherwise they are copied to /usr/src.



In the next step you should copy your existing kernel config file to the source tree:



cp /boot/config-$(uname -r) .config


And now you can execute



make menuconfig


and enter your changes. Please see also the site GitKernelBuild in the Ubuntu wiki for more advice.
After you saved your changes you can compile your new kernel:



CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers


and if you enter ls .. you'll see some .deb files. You can install them and use your new kernel.


[#33631] Friday, October 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
altybol

Total Points: 364
Total Questions: 138
Total Answers: 121

Location: France
Member since Thu, May 6, 2021
3 Years ago
altybol questions
;