Hi. I want to print my application out put on mini2440 screen. I used these command in my Qt console application : ========================================================== #include <QCoreApplication> #include <QProcess> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); qDebug() << "C++ Style Debug Message"; qDebug( "C Style Debug Message" ); system("echo 'system'"); printf("printf"); // qFatal does not have a C++ style method. qFatal( "C Style Fatal Error Message" ); return a.exec(); } =========================================================== but all these code print on my terminal. none of them print anything on my mini2440 screen. after my device boot , i just see these line : starting networking..... starting web servers.... starting LED services.... but I want clean them from screen and show my output on my screen instead of these lines. like these : ==================== Hi dear user. ==================== how can I do that? thanks :)
how to print output on mini2440 screen in console application?
starting networking..... starting web servers.... starting LED services.... I think if you look in /etc/init.d/rcS you will see those lines. Just put a # in front of them to comment the out. Make sure you do a <sync> after changing the file. Also, you might find that those changes do not survive a re-boot. As for the main problem I think you might need to check that you have <virtual terminal> enabled in the kernel. Or there is some issue with the way program output is piped to display. Maybe, read about the 2>&1 idiom or find a list that shows how to pipe your program output to the mini2440 screen. ttySAC0 is another search item.
hi and thanks. yes , I know to comment that link, but i don't know anything about the other you said. thank to learn it to me :) i searched it and put result here if i find it :D
thanks Dave for responding. I searched and I find these info: ======================================================= <virtual terminal> in kernel [http://permalink.gmane.org/gmane.comp.embedded.ptxdist.oselas.community/...] Device Drivers ---> Character devices ---> [*] Virtual terminal [*] Enable character translations in console [*] Support for console on virtual terminal Graphics support ---> [*] Support for frame buffer devices ---> <*> S3C2410 LCD framebuffer support Console display driver support ---> <*> Framebuffer Console support [*] Map the console to the primary display device [*] Select compiled-in fonts [*] VGA 8x8 font Input device support ---> [*} Touchscreens ---> {*] Samsung S3c generic touchscreen input driver <*> Mouse interface [ ] Provide legacy /dev/psaux device (240) Horizontal screen resolution (320) Vertical screen resolution ======================================================== and for shows how to pipe your program output to the mini2440 screen. ttySAC0 is another search item. ======================================================================== ./myTestAppl -qws > /dev/tty0 in mini2440 ( in my device) tty0 is a device can show the output like terminal ==================================================================== really thank my friend :)