问题
I am porting linux to one of the custom architectures. My serial console is unconventional, in the sense it does not work on interrupts.
I am trying to output messages from linux boot process onto kernel console. I used register_console and printk started working. Now I can see kernel printk messages being printed on console.
Now I am trying to get messages from the user space process onto console. I was under the impression that console registered for kernel will also work for user processes. However, it is not working. I am under the impression that I need to install a tty driver for user processes prints.
I am trying to understand how serial consoles are configured for user space and kernel space separately. Can someone please point me to some documentation or explain it.
Thanks
回答1:
The console is /dev/console
, which is one of the few /dev
files that really should exist.
来源:https://stackoverflow.com/questions/9270805/linux-non-standard-serial-console