lundi 16 février 2015

Kernel loglevel and console manipulation


I want to have two console kernel arguments, one /dev/tty2 for screen and one /dev/ttyAM0 for serial debugging. I can achieve that simply with:



console=ttyAM0,115200 console=tty2


I want /dev/ttyAM0 to display all kernel messages, with loglevel=7 (debug).


Also, I want /dev/tty2 to display only critical messages (or no kernel messages at all) and to be "default" console for outputs like echo some_log_message_from_init_script.


Now, I don't see an option to have kernel log messages limit only to one console, like ttyAM0. Basically, I get all consoles folded with kernel messages.


Can I have loglevel kernel argument to bind to console argument somehow or can I limit kernel to use only ttyAM0 for logging?



Aucun commentaire:

Enregistrer un commentaire