I need make-kpkg kernel_source
Hello
I just installed a my own kernel I compiled from kernel.org But now in man page I see this command Code:
make-kpkg kernel_source Did I need to run this command? And what is this file for? (linux-sources.deb) I need to install it? |
It is the recommended way to compile and install kernels on a debian system. This way you can easily upgrade, install and/or remove kernels just like you would any other package.
Evo2. |
When I compile my kernel I used this command
Code:
make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers Code:
make-kpkg kernel_source Something like this? Code:
make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers kernel_source |
Why would you need to add anything to what is already working? Here is my kernel compiler string that I've been using for several years.
Code:
#!/bin/sh |
Sorry, I totally missed the point of your original post. As you found out that option makes a kernel source deb. Could be handy if you'd patched something and wanted to recompile the kernel again, or wanted to share it etc.
But, no, you don't need to do it. Evo2. |
Wait, wait, wait...
you just told me something I was asking for a long time. I need to install nvidia kernel that requires linux-headers. So, you mean, that if I keep folder with sources, is the same as install linux-headers? Boths things are OK to intall nvidia driver or other moduls against the kernel? |
Quote:
Quote:
|
I had pressed thank you :)
So, if I install linux-headers, then I can delete the folder with sources that I extracted from kernel.org. And later, if I want to install some driver against the kernel, I will can do it. No need source folder anymore. That is what I understand. |
My understanding is that if you want to remove your source tree, then you should make and install the kernel_headers for the kernel you're installing. I haven't done this because I keep my source trees, so I don't know whether it creates a separate deb or how it works.
Added: OK, so I just did a compilation of an old kernel with the kernel_headers option, and you are right, there is a linux-headers deb created. So, that could be installed along with the new kernel and the kernel source tree could be removed. |
I would keep the source tree, and use: make-kpkg --revision=<at least one number and one letter> --initrd kernel_image. Then install the resulting: /usr/src/linux-image-<version>-<revision>.deb file, using dpkg -i /usr/src/linux-image-<version>-<revision>.deb.
|
But linux sources and Linux-header is the same thing?
|
Quote:
Cheers, Evo2. |
All times are GMT -5. The time now is 04:56 AM. |