Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-08-2010, 07:08 AM   #1
LQ Newbie
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Question Redirect serial console output

Hi all,

I want to write a kernel driver that redirect the console output to an external display (the interface is just a function call).
The serial console is "ttyS0" and setting up with struct console.
My idea was to get access to the serial console with "take_over_console" defined in console.h. I defined a struct consw (lcdcon) and call
 take_over_console(&lcdcon, -1, MAX_NR_CONSOLES-1, 0);
the consw.startup function is called but nothing else happend.

I think that is the problem in the take_over_console function.
if (!vc_cons[i].d || !vc_cons[i].d->vc_sw)
I am on an ARM-board with kernel 2.4.22.
Has anybody an idea to solve my problem?


buffer, console, frame, kernel, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
serial console +plx tech console server card pankajd Linux - Hardware 1 10-14-2009 02:45 PM
How to redirect the output of exec command output in perl? sudhap85 Linux - Newbie 3 08-28-2009 04:35 PM
Serial Console-redirect to another PC adenev Linux - Newbie 2 04-01-2009 08:21 PM
Serial PIC programmer, but no serial output on my laptop simopal6 Linux - Hardware 1 08-21-2008 04:04 PM
serial console - working, then "stuck" output and can't login srfeo Linux - General 0 03-29-2007 05:45 AM

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration