LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-08-2010, 06:08 AM   #1
otix
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
Code:
Code:
 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.
Code:
Code:
if (!vc_cons[i].d || !vc_cons[i].d->vc_sw)
                        continue;
I am on an ARM-board with kernel 2.4.22.
Has anybody an idea to solve my problem?
 
  


Reply

Tags
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 01:45 PM
How to redirect the output of exec command output in perl? sudhap85 Linux - Newbie 3 08-28-2009 03:35 PM
Serial Console-redirect to another PC adenev Linux - Newbie 2 04-01-2009 07:21 PM
Serial PIC programmer, but no serial output on my laptop simopal6 Linux - Hardware 1 08-21-2008 03:04 PM
serial console - working, then "stuck" output and can't login srfeo Linux - General 0 03-29-2007 04:45 AM


All times are GMT -5. The time now is 10:23 AM.

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