Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

How to make printk show all messages on all serial consoles regardless of console= boot parameter

$
0
0

The board I'm working has one serial console (ttyS0) and I would like to make my kernel module show any errors to this serial console. I understand that one possibility would be using console=ttyS0 parameter to printk messages appear on the serial, however, for my case specifically I cannot set this parameter (eg. my bootloader doesn't allow setting console=) and my module messages end up being lost. Also, I understand that these kernel messages could be retrieved in dmesg/syslog but that's not what I'm looking for.

Is there a way to make my module write to a serial console(s) (eg. ttyS0) regardless of what is defined for the console= kernel parameter?Thanks!


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>