Results 1 to 1 of 1
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" ...
- 05-08-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 5
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 callthe consw.startup function is called but nothing else happend.Code:take_over_console(&lcdcon, -1, MAX_NR_CONSOLES-1, 0);
I think that is the problem in the take_over_console function.
Has anybody an idea to solve my problem?Code:if (!vc_cons[i].d || !vc_cons[i].d->vc_sw) continue;
update: sorry I forgot to tell that I am on an ARM-board with kernel 2.4.22


Reply With Quote
