printk() messages not appearing in console
I hope i can answer to your question. I also faced same issue and tried my level best to print kernel message to console, but nothing works. Then I started searching for the reason...
The reason is, If klogd is not running, the message won’t reach user space unless you read /proc/kmsg. Reference: oreilly or /dev/kmsg. klogd reads kernel log messages and helps process and send those messages to the appropriate files, sockets or users. since absence of daemon, it won't send to standard output. Unless you read the message from ring buffer or buffer overflow, it will remains.
Where does printk() print to?
dmesg
should display printk
messages.
Send printk to serial
Try booting your kernel with the command line 'console=ttyS1,<baud>', where <baud> is the baud rate you configured for that port in the VM settings. The kernel will then use /dev/ttyS1 as the main console, and that's where printk will send all of its output to.
Related Topics
Azure Cli Aks Install Cli Permission Denied and Sudo Does Not Work
Changing /Proc/Sys/Kernel/Core_Pattern File Inside Docker Container
Cython Standalone Executable on Ubuntu
How to Install Pysqlite for Python3.4.2
How Connect Variable with a String in Bash
How to Make 'Docker Run' Inherit Ulimits
Shell Script to Shutdown/Restart Linux System
Shared Library Mysteriously Doesn't Get Linked to Application
Does a Fully Qualified Domain Name Need a Period
Version Control for My Web Server
Producer Consumer Implementation in a Block Device Driver
Tensorflow Recommended System Specifications
Tomcat 6 Log4J - Linux - Safely Remove Catalina.Out
Create and Test X86-64 Elf Executable Shellcode on a Linux Machine
Downloading a Tarball from Github Without Curl
Inspect Network Traffic from Simple Linux Cli App
Jmp Unexpected Behavior in Shellcode When Next(Skipped) Instruction Is a Variable Definition