Reputation: 983
I need to compile Linux kernel for x86 Architecture and replace my current Debian kernel.
I compiled the kernel as follows
make-kpkg kernel_image kernel_headers
I believe it is building Debian kernel, but how should I replace the kernel image of my running kernel? Please advise also, please let me know if I'm following wrong steps.
Upvotes: 0
Views: 1100
Reputation: 3891
Go to your source-code
Do the following stuff.
1) make menuconfig
this will read your config-x.x.x file from /boot folder.
if you want enable then enable something ,enable it.
2)save and quit menuconfig
.
3)make bzImage
---> this will bild bzImage.
4)make modules
---> this will build modules
5)sudo make modules_install
--> this will install your modules in /lib/modules/linux-x.x.x
6)sudo make install
this will install bzImage
7)sudo reboot
How i can check ?
Once u reboot check for your kernel version
$ uname –a
this will show recent kernel version which you have built.
Upvotes: 2
Reputation: 1248
some distros have built in tools to do that, I don't know if debian has that, because I use fedora linux, but the manual way is:
1) copy the kernel image from the output folder to your boot folder.
2) check if you need to rebuild initramfs.
3) update your grub entries to point to the new kernel image
4) reboot
Upvotes: 1