View previous topic :: View next topic |
Author |
Message |
wenjus n00b
Joined: 04 May 2024 Posts: 3
|
Posted: Sat May 04, 2024 5:34 am Post subject: [SOLVED]Kernel boots with no console and log displayed |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4254 Location: Bavaria
|
|
Back to top |
|
|
wenjus n00b
Joined: 04 May 2024 Posts: 3
|
Posted: Sat May 04, 2024 12:23 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4254 Location: Bavaria
|
Posted: Sat May 04, 2024 12:36 pm Post subject: |
|
|
wenjus wrote: | Thank you again for your hints it helps a lot! |
You are very Welcome !
Have fun with Gentoo ! _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1585
|
Posted: Sat May 04, 2024 3:04 pm Post subject: |
|
|
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 |
|
|
wenjus n00b
Joined: 04 May 2024 Posts: 3
|
Posted: Sun May 05, 2024 4:21 am Post subject: |
|
|
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 |
|
|
|