Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Kernel boots with no console and log displayed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wenjus
n00b
n00b


Joined: 04 May 2024
Posts: 3

PostPosted: Sat May 04, 2024 5:34 am    Post subject: [SOLVED]Kernel boots with no console and log displayed Reply with quote

Hello guys, i encountered some problem when mannully compiling the linux kernel.

Issue
The kernel can be booted successfully (I can find the dmesge log when i using livecd to find what happended) but No console and display . I think it might be framebuffer qeustion . like:
[url] https://forums.gentoo.org/viewtopic-t-1164907-highlight-loading+init.html [/url].

But I also set CONFIG_FB_* in my config file like below:
Code:

livecd /gentoo/usr/src/linux # cat .config | grep ^CONFIG_FB_
CONFIG_FB_VGA16=m
CONFIG_FB_UVESA=m
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
CONFIG_FB_VIRTUAL=m
CONFIG_FB_CORE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB_DEVICE=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=m
CONFIG_FB_SYS_COPYAREA=m
CONFIG_FB_SYS_IMAGEBLIT=m
CONFIG_FB_SYS_FOPS=m
CONFIG_FB_IOMEM_HELPERS=y
CONFIG_FB_MODE_HELPERS=y[/b]


I aslo set the CONFIG_*CONSOLE
Code:

livecd /gentoo/usr/src/linux # cat .config | grep ^CONFIG_*CONSOLE
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
CONFIG_CONSOLE_LOGLEVEL_QUIET=4


My Desktop Hardware Information

    1. CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    2. GPU0: Intel Corporation UHD Graphics 620
    3. GPU1: NVIDIA Corporation GM108M [GeForce 930MX] (When config kernel i doesn't configure nvidia gpu driver)
    4. SCREEN: eDP screen , xorg info : https://pastebin.com/5EaeGifQ


Things I have tried

    1. Try to configure I2C driver
    2. Switch EFI to BIOS boot
    3. Add framebuffer config copyed form genkernel config file.



material


Last edited by wenjus on Sat May 04, 2024 12:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4254
Location: Bavaria

PostPosted: Sat May 04, 2024 11:23 am    Post subject: Reply with quote

wenjus,

Welcome to Gentoo Forums ! :D

First of all: You are missing one important setting: # CONFIG_DRM_FBDEV_EMULATION is not set
AND you should disable: CONFIG_DRM_SIMPLEDRM=y

Some other hints:
1. You dont need i2c for Intel graphics
2. NEVER copy something into the .config file. Read this comment from @Neddy:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config
3. Even if some help says: "If unsure, say Y" dont believe it. You have CONFIG_DEBUG_MEMORY_INIT=y and an overloaded output of "dmesg".
4. You have also:
Code:
[    0.776732] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2

Please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware
5. You have also:
Code:
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y

Please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
wenjus
n00b
n00b


Joined: 04 May 2024
Posts: 3

PostPosted: Sat May 04, 2024 12:23 pm    Post subject: Reply with quote

pietinger wrote:
wenjus,

Welcome to Gentoo Forums ! :D

First of all: You are missing one important setting: # CONFIG_DRM_FBDEV_EMULATION is not set
AND you should disable: CONFIG_DRM_SIMPLEDRM=y

Some other hints:
1. You dont need i2c for Intel graphics
2. NEVER copy something into the .config file. Read this comment from @Neddy:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config
3. Even if some help says: "If unsure, say Y" dont believe it. You have CONFIG_DEBUG_MEMORY_INIT=y and an overloaded output of "dmesg".
4. You have also:
Code:
[    0.776732] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2

Please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware
5. You have also:
Code:
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y

Please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves



Thank you for your help. by adding [b]CONFIG_DRM_FBDEV_EMULATION[\b], i have successfully got the output of kernel.

Thank you again for your hints it helps a lot!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4254
Location: Bavaria

PostPosted: Sat May 04, 2024 12:36 pm    Post subject: Reply with quote

wenjus wrote:
Thank you again for your hints it helps a lot!

You are very Welcome ! :D

Have fun with Gentoo ! 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1585

PostPosted: Sat May 04, 2024 3:04 pm    Post subject: Reply with quote

I would add you don't need the agp stuff. Last I remember nvidia legacy driver 340.108 modified by shibotto needed it purely for compilation reasons and I don't think it was fixed. If that's not the case, you don't need it. It's ancient. AGP was a thing late 90's and early 2000's. It was something similar to PCI Express but it only had accelerated data flow in one direction - to the GPU, which was then called graphics accelerator because you couldn't program it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
wenjus
n00b
n00b


Joined: 04 May 2024
Posts: 3

PostPosted: Sun May 05, 2024 4:21 am    Post subject: Reply with quote

logrusx wrote:
I would add you don't need the agp stuff. Last I remember nvidia legacy driver 340.108 modified by shibotto needed it purely for compilation reasons and I don't think it was fixed. If that's not the case, you don't need it. It's ancient. AGP was a thing late 90's and early 2000's. It was something similar to PCI Express but it only had accelerated data flow in one direction - to the GPU, which was then called graphics accelerator because you couldn't program it.

Best Regards,
Georgi


Thanks, I will delete this option, and i'll to learn something about AGP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum