blackscreen on boot with first compiled kernel

Hrushit Parikh parikhhrushit at hotmail.com
Thu Mar 31 02:09:13 EDT 2016


Hey,

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.


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.

I have an NVIDIA GPU so looked around a lot for problems with nouveau.


On booting and going to bash prompt, lsmod shows that nouveau is currently loaded. Here is the log related to nouveau I got using dmesg:


[   51.631325] fb: switching to nouveaufb from VESA VGA
[   51.631646] nouveau 0000:01:00.0: NVIDIA GF119 (0d9150a1)
[   51.650290] nouveau 0000:01:00.0: bios: version 75.19.0c.00.03
[   51.650994] nouveau 0000:01:00.0: fb: 512 MiB DDR3
[   51.708930] nouveau 0000:01:00.0: DRM: VRAM: 512 MiB
[   51.708931] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[   51.708935] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[   51.708936] nouveau 0000:01:00.0: DRM: DCB version 4.0
[   51.708938] nouveau 0000:01:00.0: DRM: DCB outp 00: 01000323 00010034
[   51.708940] nouveau 0000:01:00.0: DRM: DCB outp 01: 02014300 00000000
[   51.708942] nouveau 0000:01:00.0: DRM: DCB outp 02: 02011362 00020010
[   51.708943] nouveau 0000:01:00.0: DRM: DCB conn 00: 00000340
[   51.708944] nouveau 0000:01:00.0: DRM: DCB conn 01: 00002061
[   51.708946] nouveau 0000:01:00.0: DRM: DCB conn 02: 00000147
[   51.708947] nouveau 0000:01:00.0: DRM: DCB conn 03: 00001231
[   51.708948] nouveau 0000:01:00.0: DRM: DCB conn 04: 00000400
[   51.708949] nouveau 0000:01:00.0: DRM: DCB conn 05: 00000210
[   51.708950] nouveau 0000:01:00.0: DRM: DCB conn 06: 00000211
[   51.708952] nouveau 0000:01:00.0: DRM: DCB conn 07: 00000213
[   51.763658] nouveau 0000:01:00.0: DRM: MM: using COPY0 for buffer copies
[   52.612144] nouveau 0000:01:00.0: DRM: allocated 1366x768 fb: 0x60000, bo ffff880139f19c00
[   52.612216] fbcon: nouveaufb (fb0) is primary device


Iv spent a lot of time trying to understand what is wrong but could not figure it out. I know its something very basic but since Its my first time with the linux kernel I have no idea what particularly to look for.


Please let me know if you need more details than I mentioned above to help with this.


Thank you,

Hrush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160331/e811134f/attachment-0001.html 


More information about the Kernelnewbies mailing list