Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to get back kernel message dmesg at boot? [solved]
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
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Thu Feb 08, 2024 12:25 pm    Post subject: how to get back kernel message dmesg at boot? [solved] Reply with quote

hi,
I would like to get back the messages on boot up after grub
I guess some time ago I removed this and can't find a way to get it back :roll:

thanks


Last edited by jms.gentoo on Mon Feb 12, 2024 9:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1538

PostPosted: Thu Feb 08, 2024 12:54 pm    Post subject: Re: how to get back kernel message dmesg at boot? Reply with quote

jms.gentoo wrote:
hi,
I would like to get back the messages on boot up after grub
I guess some time ago I removed this and can't find a way to get it back :roll:

thanks


You mean you don't see it on the screen? Disable CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER and you should be able to see it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Thu Feb 08, 2024 1:48 pm    Post subject: Re: how to get back kernel message dmesg at boot? Reply with quote

logrusx wrote:

You mean you don't see it on the screen?

yes
logrusx wrote:

Disable CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER and you should be able to see it.

It's not enabled

thanks logrusx

some more info
I am using an initrd

my kernel config
https://dpaste.com/937EESNCT

grub
http://dpaste.com/BD5J4WPA9
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21637

PostPosted: Thu Feb 08, 2024 4:02 pm    Post subject: Reply with quote

OP: please describe the problem in more detail. Which of the following statements disagrees with your current system?
  • When you power on the system, the firmware transfers control to grub.
  • Grub prints its menu.
  • Grub transfers control to Linux.
  • Linux prints messages from the kernel as it initializes.
  • When kernel initialization completes, all kernel messages remain on screen. The screen is not explicitly cleared, so only messages that scroll out due to new activity become unreachable.
  • Messages from the initramfs or system init scripts begin to appear.
  • Init script messages remain on screen when the login prompt appears.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2575
Location: Here and Away Again

PostPosted: Thu Feb 08, 2024 4:24 pm    Post subject: Reply with quote

Is it the '--noclear' in '/etc/inittab' perhaps?

That is, for example:

Code:

c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux

_________________
Kindest of regardses.
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Sat Feb 10, 2024 2:09 am    Post subject: Reply with quote

Chiitoo wrote:
Is it the '--noclear' in '/etc/inittab' perhaps?]

thanks but no changes
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Sat Feb 10, 2024 2:51 am    Post subject: Reply with quote

Hu wrote:
OP: please describe the problem in more detail.
Which of the following statements disagrees with your current system?.


    Hu wrote:

  • When you power on the system, the firmware transfers control to grub.

  • yes
    Hu wrote:

  • Grub prints its menu.

  • yes
    Hu wrote:

  • Grub transfers control to Linux.

  • yes
    Hu wrote:

  • Linux prints messages from the kernel as it initializes

  • well once gub transfere message to linux
    The only message I have is
    Code:
    Loading Linux x.y.z
    Loading initial ramdisk ...

    then no more messages
    and the the Diplay manager take over

    Hu wrote:

  • When kernel initialization completes, all kernel messages remain on screen. The screen is not explicitly cleared, so only messages that scroll out due to new activity become unreachable.

  • only
    Code:
    Loading Linux x.y.z
    Loading initial ramdisk ...


    Hu wrote:
  • Messages from the initramfs or system init scripts begin to appear.

  • Code:
    Loading Linux x.y.z
    Loading initial ramdisk ...


    Hu wrote:
  • Init script messages remain on screen when the login prompt appears.

  • it's straight to KDM
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Sat Feb 10, 2024 3:05 am    Post subject: Reply with quote

In fact I now believe my problem is related to tty /console

once in kde
I have
Code:

loginctl
SESSION  UID USER SEAT  TTY
      1 1000 jms  seat0 tty2


Code:

env | grep "XDG"

XDG_CACHE_HOME=/tmp/jms/.cache
XDG_CONFIG_DIRS=/home/jms/.config/kdedefaults:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/local/share:/usr/share:/etc/eselect/wine/share
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=2


when logged in kde If I want to access tty using [Ctrl][Alt][F1]
I just got the tty black screen with the message
Code:

Loading Linux x.y.z
Loading initial ramdisk ...

and no login prompt
only [Ctrl][Alt][F2] allow me to switch back from tty to kde and not [Ctrl][Alt][F7]
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2575
Location: Here and Away Again

PostPosted: Sat Feb 10, 2024 10:50 am    Post subject: Reply with quote

Ah, yeah, I think you would have seen the messages fly by if it was what I was thinking of (just they get cleared and you only see the login prompt without the 'noclear').

That there is nothing after "Loading Linux" etc. makes me think of the output going into a serial console maybe?

I've only done that with virtual machines a couple of times though, so not entirely sure where to look aside from the kernel command line... and perhaps that's not it either.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Sat Feb 10, 2024 10:54 am    Post subject: Reply with quote

Is there "quiet" somewhere in kernel's boot command line?
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sat Feb 10, 2024 4:18 pm    Post subject: Reply with quote

Perhaps you can clean something useful from selected portions of my .config:
Code:
$ grep FRAMEB .config
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set

$ grep FB .config
# CONFIG_NET_SCH_SFB is not set
CONFIG_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not set
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SM712 is not set
# CONFIG_CRYPTO_CFB is not set
# CONFIG_CRYPTO_OFB is not set

_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54252
Location: 56N 3W

PostPosted: Sat Feb 10, 2024 6:47 pm    Post subject: Reply with quote

Code:
Loading Linux x.y.z
Loading initial ramdisk ...


is written to the console by Grub, that the kernel never outputs anything.

The kernel console driver is either missing to broken.

We need your
Code:
lspci -nnk
output and your kernel .config file.
Uve wgetpast to post the .config file.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sun Feb 11, 2024 1:32 am    Post subject: Reply with quote

I have make a cross trying to read the kernel and service messages at boot. It's really too fast. The only thing that count for me is to be able to see if there is only green messages or if some are red. That I can see. I don't know how to pause the boot process and even it it is possible. I use dmesg and journalctl to see the state of the boot after it is finished.

I add extra kilobytes to the console to go deeper back in time in the boot process analyse. I use the Linux kernel parameter fbcon=scrollback:2048k . Of course a quiet kernel parameter can hide most of the messages. I use loglevel=0 to see the minimum messages during boot. It's more esthetic.

:D

With Systemd systemctl --failed tell me what I need to know from the init phase of the boot.
_________________
Paul
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Feb 11, 2024 4:10 am    Post subject: Reply with quote

The secret to what's happening during boot may be found in your logs (/var/log/), specifically your boot log, dmesg file. Actual files will depend on what form of logging you are using.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Sun Feb 11, 2024 2:50 pm    Post subject: Reply with quote

szatox wrote:
Is there "quiet" somewhere in kernel's boot command line?

no

figueroa wrote:
Perhaps you can clean something useful from selected portions of my .config

thanks
the main difference I can see is the CONFIG_SYSFB_SIMPLEFB that I have set.
I think this shouldn't make a difference but I ll try and will test building the kernel without it

here are info asked by NeddySeagoon and few more.

kernel .config
http://dpaste.com/6K9GMVGSR

lspci -nnk
http://dpaste.com/758ND5AUM

[ebuild R ] sys-boot/grub-2.06-r9:2/2.06-r9::gentoo
USE="device-mapper fonts nls sdl themes truetype -doc -efiemu -libzfs -mount (-test) -verify-sig"
GRUB_PLATFORMS="efi-64 -coreboot -efi-32 -emu -ieee1275 (-loongson) -multiboot -pc -qemu (-qemu-mips) -uboot -xen -xen-32 -xen-pvh"

/etc/default/grub
http://dpaste.com/8U242NM9E

/boot/grub/grub.cfg
http://dpaste.com/4M24QYQL5

/etc/rc.conf
http://dpaste.com/DLCJEJ3UX

/etc/inittab
http://dpaste.com/4XPJ59GU2

/etc/init.d/agetty
http://dpaste.com/7TWET7LYV

/etc/conf.d/agetty
http://dpaste.com/B95LJJV2G

/etc/conf.d/dmesg
http://dpaste.com/HAGUJGFCZ

rc-update show -v
http://dpaste.com/GAX7QGXWD


Quote:
It's really too fast. The only thing that count for me is to be able to see if there is only green messages or if some are red

yes I believe it will be very fast now, but I somewhat miss to see the penguin logo , green messages, fsck ... :oops:
And now as I can not seems to get it back I want it more than ever :evil:

thanks to all
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54252
Location: 56N 3W

PostPosted: Sun Feb 11, 2024 3:30 pm    Post subject: Reply with quote

jms.gentoo,

Code:
26:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050] [10de:1c81] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd GP107 [GeForce GTX 1050] [1458:3766]
   Kernel driver in use: nvidia
   Kernel modules: nvidia_drm, nvidia


That's an nVidia card using the binary blob driver.
Its the only DRM driver that does not provide a console at no extra charge.

That restricts your choice of console drivers.
Turn off
Code:
CONFIG_SYSFB=y
CONFIG_SYSFB_SIMPLEFB=y


You will only use one of
Code:
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
depending your firmware. BIOS will use VESA, EFI will use EFI. Building both is safe.

While we are here ...

If you want to use your
Code:
28:00.1 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486]
add
Code:
CONFIG_CRYPTO_DEV_CCP=y
CONFIG_CRYPTO_DEV_CCP_DD=y
to your kernel.
You have
Code:
# CONFIG_CRYPTO_DEV_CCP is not set

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Mon Feb 12, 2024 9:06 pm    Post subject: how to get back kernel message dmesg at boot? [solved] Reply with quote

NeddySeagoon wrote:

That's an nVidia card using the binary blob driver.
Its the only DRM driver that does not provide a console at no extra charge.
Turn off
Code:

CONFIG_SYSFB=y
CONFIG_SYSFB_SIMPLEFB=y   


Thank you very much
yes turning off CONFIG_SYSFB_SIMPLEFB is the solution, nvidia the culprit.
however SYSFB is needed
reverse dep: SYSFB_SIMPLEFB && (X86 || EFI) || FB_VESA && HAS_IOMEM && FB=y && X86 || FB_EFI && HAS_IOMEM && FB=y && EFI
symbol: SYSFB
select: BOOT_VESA_SUPPORT

I will mention it in the wiki talk page for nvidia. I think this should be 'better' recommended

-to me having access to the tty teletypewriter is something that I came to expect and did prove to be very useful in more than one case.
- being able to have a quick glance at the kernel boot info when booting is interesting especially when installing.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Feb 12, 2024 9:32 pm    Post subject: Reply with quote

Did you know that most of the time you can pause the screen output during booting with CTL/s. Then CTL/q to resume?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Mon Feb 12, 2024 9:45 pm    Post subject: Reply with quote

figueroa wrote:
Did you know that most of the time you can pause the screen output during booting with CTL/s. Then CTL/q to resume?

I didn't. Nice trick 8)
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