Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
260 views
in Technique[技术] by (71.8m points)

linux non-standard serial console

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The console is /dev/console, which is one of the few /dev files that really should exist.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...