blackscreen on boot with first compiled kernel
Anil Nair
anilcoll90 at gmail.com
Thu Mar 31 21:09:44 EDT 2016
Hi Hrushit,
> I am trying linux kernel hacking for the very first time and following the
> FirstKernelPatch tutorial.
>
>
> On compiling, installing and rebooting from the kernel I get a blackscreen
> and I do not get my Ubuntu login screen or any display. I can get to a
>
> bash prompt with ctrl+alt+F1.
>
Since you are using ubuntu I recommend distro specific kernel
compilation steps because following the manual steps sometimes does
not work. Though i recommend you learn them. :).
Next time also try to mention the Ubuntu version you are using.
>
> The linux kernel of my repo is 4.5.0-rc+. I copied the existing .config file
> from /boot to my source tree and ran 1. make olddefconfig, 2. make 3. make
> modules_install install.
>
Try the below steps let me know if it works for you,
1. Copy old configuration cp /boot/config-`'uname -r ` ./.config (Use
old configuration to built the kernel)
2. Clean Working Directory "make-kpkg clean".
3. Compile the Kernel
"export CONCURRENCY_LEVEL=3" ( For parallel builds, faster compilation).
"fakeroot make-kpkg –-initrd –-append-to-version=-some-string-here
kernel-image kernel-headers"
(In append-to-version please mention the name you would like to give
your custom kernel)
4. Install the kernel "sudo dpkg -i linux-header.deb"
"sudo dpkg -i linux-image.deb"
5. Restart the kernel.
Finally compile the kernel in home directory don't use sudo except for
installing the kernel.
More information about the Kernelnewbies
mailing list