Hi,
if been struggling with this problem for a while now.
I've got an embedded Linux running on an ARM platform (Freescale iMX257).
The bootloader (RedBoot) starts Linux with the option
When Linux is started, it automatically starts a dedicated Qt application.
When I'm connected via the UART, my terminal program will let me type commands and get output from my running Qt application.
But when the module is in the field, I want to access it via Telnet, as there won't be a UART connection, only LAN.
I can open a telnet session, which will let me type commands and get output from those commands. But I can't see the output of my Qt application as this is still emitted on the UART.
How can I redirect the output of that application to the telnet session?
I thought this would do:
(via telnet on ttyp0)
Code:
$ cat /dev/console > /dev/ttyp0
Now everything I type through the UART appears on the telnet session. But I can't execute it, nor can I see the output of my Qt application.
I tried to modify the command running my application in the /etc/inittab:
Code:
./myQtApp > /dev/ttyp0
but now the application won't start before I've opened the telnet session. Even then, only 'some' output from my App is passed to the telnet session (output written by "std::cout", output written by Qt's "qDebug()" function is still on the UART...)
I started playing around with /dev/ttymxc0 as well, but without result...
What am I doing wrong here?
Thanks in advance!