I'm not able to see ANY logs on console (even not the "Decompressing Linux... " message).
- I enabled any Early Boot prints under Kernel config, at least which I know (see below Kernel configuration)
- Tried stopping the Kernel with KDB - by adding kgdbwait at the end of kernel command line arguments in grub
- I tried to boot the kernel manually from grub
- I tried to add panic() or logs at the function: asmlinkage void __init start_kernel(void) (init/main.c)
- Added / Changed / Removed the loglevel=verbose Kernel command line argument (in GRUB)
- Remove "quiet" from Kernel command line argument (in GRUB)
- Add crashkernel to Kernel command line argument (in GRUB)
My Questions:
1) Is there other thing I can do to get early boot logs ?
2) Is there any additional code I need to add to Kernel debug it ?
3) Is there any other methodology to debug it ?
Binutils: 2.26.1 binutils-2.26.1-1.fc25.src.rpm
GCC: 6.4.1 gcc-6.4.1-1.fc25.src.rpm
Kernel: 3.10.0-514.21.1
GRUB configuration
default=0
timeout=3
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=34 serial console
title XIV-System
root (hd0,0)
kernel /boot/vmlinuz init=/system/my_init console=tty0 mce=0 i8042.noaux idle=poll scsi_mod.inq_timeout=2 selinux=0 nohpet console=ttyS0,115200 earlyprintk=ttyS0,115200 kgdboc=ttyS0,115200 ro crashkernel=auto
Kernel configuration
- For verbos boot message
CONFIG_X86_VERBOSE_BOOTUP=y
- For early printk
CONFIG_EARLY_PRINTK=y
CONFIG_EARLY_PRINTK_DBGP=y
- For KGDB
CONFIG_KGDB_LOW_LEVEL_TRAP=y
CONFIG_KGDB_KDB=y
CONFIG_SERIAL_KGDB_NMI=y
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
CONFIG_KGDB_TESTS=y
- For KDB
CONFIG_KDB_KEYBOARD=y
CONFIG_KDB_CONTINUE_CATASTROPHIC=0