Is it needed to reinstall custom kernel every time, after rebuilding?
Hi all, Last time, I emailed to linux-kernel and kernenewbies mailing-lists about how to speed up kernel compilation. I received very useful peace of advice about using "ccache". Now I want to modify and compile a unique custom kernel several times. I used https://help.ubuntu.com/community/Kernel/Compile to compile custom kernel. This tutorial uses "kpkg" command to build kernel and it produces two .deb files: "linux-image" and "linux-header" as result. So for the first time I followed this tutorial. For next times, according to to experts' advice, I use "make all" in custom kernel root directory to rebuild kernel. I am not sure that it would be enough to use changed kernel after rebooting. As I asked from some experts, It is also required to install kernel again, but they were not familiar with "kpkg" and "dbkg",... commands for kernel installation. Should I use "dbkg" command after every time I rebuild kernel, for re-installation? If anybody is familiar with these method of kernel installation, please help me. It is very urgent, because it is related to my B.S. thesis :P Regards, -- Amirali Shambayati Bachelor Student Computer Engineering Department Sharif University of Technology Tehran, Iran
I decided, to first "make all" kernel package and using "dbkg" to reinstall .deb files every time. Could it be right? (re-note: I want to build and install custom kernel for several times!) On Thu, Aug 18, 2011 at 9:17 PM, Amirali Shambayati <amirali.shambayati@gmail.com> wrote:
Hi all,
Last time, I emailed to linux-kernel and kernenewbies mailing-lists about how to speed up kernel compilation. I received very useful peace of advice about using "ccache". Now I want to modify and compile a unique custom kernel several times. I used https://help.ubuntu.com/community/Kernel/Compile to compile custom kernel. This tutorial uses "kpkg" command to build kernel and it produces two .deb files: "linux-image" and "linux-header" as result. So for the first time I followed this tutorial. For next times, according to to experts' advice, I use "make all" in custom kernel root directory to rebuild kernel. I am not sure that it would be enough to use changed kernel after rebooting. As I asked from some experts, It is also required to install kernel again, but they were not familiar with "kpkg" and "dbkg",... commands for kernel installation. Should I use "dbkg" command after every time I rebuild kernel, for re-installation? If anybody is familiar with these method of kernel installation, please help me. It is very urgent, because it is related to my B.S. thesis :P
Regards,
-- Amirali Shambayati Bachelor Student Computer Engineering Department Sharif University of Technology Tehran, Iran
-- Amirali Shambayati Bachelor Student Computer Engineering Department Sharif University of Technology Tehran, Iran
On Thu, Aug 18, 2011 at 23:54, Amirali Shambayati <amirali.shambayati@gmail.com> wrote:
I decided, to first "make all" kernel package and using "dbkg" to reinstall .deb files every time. Could it be right? (re-note: I want to build and install custom kernel for several times!)
could you please don't top post? :) btw, IIRC "make all" also does kernel instalation and setting the boot loader for you, so I see no point of doing make dpkg here -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On Thu, Aug 18, 2011 at 23:47, Amirali Shambayati <amirali.shambayati@gmail.com> wrote:
Should I use "dbkg" command after every time I rebuild kernel, for re-installation? If anybody is familiar with these method of kernel installation, please help me. It is very urgent, because it is related to my B.S. thesis :P
I don't know about "dbkg" (i am not even sure such option exist, but I do know there is "dpkg" and "rpm" as make target). However, if you wanna be easy, why not do it manually? I mean, copying the kernel image to /boot (along with creating initrd using mkinitrd or specificly update-initramfs if you're using Ubuntu or its derivatives) and edit the boot loader config (most likely you're using GRUB 2 so the file is /boot/grub/grub.cfg. Try to copy them into separate directories so you could easily differentiate them. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On Thu, 18 Aug 2011, Amirali Shambayati wrote:
Hi all,
Last time, I emailed to linux-kernel and kernenewbies mailing-lists about how to speed up kernel compilation. I received very useful peace of advice about using "ccache". Now I want to modify and compile a unique custom kernel several times. I used https://help.ubuntu.com/community/Kernel/Compile to compile custom kernel. This tutorial uses "kpkg" command to build kernel and it produces two .deb files: "linux-image" and "linux-header" as result. So for the first time I followed this tutorial. For next times, according to to experts' advice, I use "make all" in custom kernel root directory to rebuild kernel. I am not sure that it would be enough to use changed kernel after rebooting. As I asked from some experts, It is also required to install kernel again, but they were not familiar with "kpkg" and "dbkg",... commands for kernel installation. Should I use "dbkg" command after every time I rebuild kernel, for re-installation? If anybody is familiar with these method of kernel installation, please help me. It is very urgent, because it is related to my B.S. thesis :P
If you build a new kernel and want to run that new kernel, then you must install that newly build kernel and reboot to it. -- Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/ Don't top-post http://www.catb.org/jargon/html/T/top-post.html Plain text mails only, please.
participants (3)
-
Amirali Shambayati -
Jesper Juhl -
Mulyadi Santosa