Start the QT application inProgramThe first idea is/etc/init. d/RCS can be automatically started after being added to an application or script command. However, if a problem occurs, the QT application is started. On the 7-inch screen, if you click the interface, the interface overlay will occur, that is, the current interface will be damaged, and the original underlying interface will appear. So I put the QT application in/etc/profile and started it myself, but it cannot be started by myself. I need to press enter on the Super Terminal, "Please press enter to activate this console ", you can enter the QT program only after you press Enter.
Solution:
From the perspective of the Development Board, generally only the/etc/init. d. Add your program or script command to the RC To Enable Automatic startup. If you want to press enter on the Super Terminal and run the command after logon, you can add the command to/etc/profile; if you want to remove the phrase "Please press enter to activate this console" after each boot, that is, Enable Automatic Logon upon startup, you can write the following code in/etc/inittab as the inittab of example in busybox, but change: askfirst:-/bin/sh to: respawn:-/bin/sh, if you find that there is no inittab, you can create one by yourself. Other boards can modify the script according to their own situation, which is not much different.
Inittab script:
: Sysinit:/etc/init. d/RCS
: Respawn:-/bin/sh
The default kernel command line contains init =/linuxrc. Therefore, after the file system is mounted, the first program running is linuxrc in the root directory. This is a link to/bin/busybox. That is to say, the first program running after the system is started is busybox itself. In this case, busybox first tries to parse/etc/inittab to obtain further Initialization Configuration Information (refer to busyboxSource codeThe parse_inittab () function in init/init. C ). In fact, root_qtopia does not have the/etc/inittab configuration file. According to the busybox logic, it will generate the default configuration.
. Therefore, if necessary, you can add the/etc/inittab configuration file by yourself, and perform a slight modification to busybox by default to meet your requirements.
The initialization script is/etc/init. d/RCS.
................................
......................................
You can see what operations are performed on multiple SWS, and load qtopia at last. After starting the system, some programs need to be added and executed in the background, such as loading qtopia, but what do we do if we want to display the log file or the information that our application writes to the file in real time after the startup? First, use>/dev/tty1 to redirect the output to tty1 (Display). At this time, you can try to put the program that you started on/etc/profile, as a program that a user must execute when logging on to himself, it is like the result after entering a command in the Super Terminal.
Reference: http://blog.csdn.net/w7849516230/article/details/6426350