linux non-standard serial console

橙三吉。 提交于 2019-12-12 02:48:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!