linux非标准串行控制台 [英] linux non-standard serial console
问题描述
我正在将linux移植到自定义体系结构之一.我的串行控制台是非常规的,在某种意义上说它不适用于中断.
I am porting linux to one of the custom architectures. My serial console is unconventional, in the sense it does not work on interrupts.
我正在尝试将Linux引导过程中的消息输出到内核控制台.我使用了register_console,printk开始工作.现在,我可以看到内核printk消息正在控制台上打印.
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.
现在,我正在尝试将用户空间进程中的消息发送到控制台.我给人的印象是,为内核注册的控制台也适用于用户进程.但是,它不起作用.我的印象是我需要为用户进程打印安装tty驱动程序.
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.
谢谢
推荐答案
控制台是/dev/console
,它是确实应该存在的少数/dev
文件之一.
The console is /dev/console
, which is one of the few /dev
files that really should exist.
这篇关于linux非标准串行控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!