Redirect Kernel Messages


How can I redirect kernel messages just to UART0 or something like?

We have a QT application running in VF61, and since we set it to star automatically by systemctl, all kernel messages, like insert or remove a mouse are overlapping the QT window. And this can be cleaned only after a redraw of the window.

In Other words, what I need is to remove the dipslay as a std output from kernel messages.


Disable the virtual console, to disbale virtual console one will need to remove the virtual console tty in kernel args.


    # setenv setup 'setenv setupargs console=${console},${baudrate}n8 ${memargs} vt.global_cursor_default=0 consoleblank=0 setupargs=console=ttyLP0,115200n8'
    # saveenv

Also note that after bootup there is a login available on the virtual console which is started by systemctl service, disable the service to avoid login on virtual console.


    # systemctl disable getty@tty1.service
    # reboot