This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm810x qt自启动失败



DVR_RDK   MCFW  框架下

linux启动最后阶段,在脚本中设置自启动qt      qt启动失败  但是串口没有任何输出。

自启动阶段,如果不加上 -qws 参数  串口提示需要加上参数。

如果不自启动,系统开机后手动启动qt程序,能正常启动。

不知道什么为何,开发的图像界面如何自启动?

谢谢!!!

  • 你好;

            手动输入能正常启动吗?

  • 手动输入是可以的

  • 请问脚本中是如何设置的?

  • 脚本中的设置如下所示 

    使用ramdisk  rc5.d 

    S08update.sh内容如下 :切换目录 调用./start_gjapp.sh

    接下来的脚本在其他路径下

    在./start_gjapp.sh  内容如下

    先启动 ./init.sh ./load.sh ./run.sh  dm385 提供的脚本 

    接着上面的图    启动./interface_process -qws -nomouse -display linuxFb:/dev/fb2 &  这个是QT程序。在启动的程序中只有这个interface_process没有自启动起来,其他进程(st_process bz_process等)全部能启动。

    以下是调试时的现象:

    1,如果interface_prcocess 不加 -qws 参数,串口会提示需要加参数。

    2,如果开机不自启动./start_gjapp.sh 脚本,  开机后手动启动这个脚本  ./interface_process 这个QT进程能启动。

    3,在启动interfce_process前 加入sleep 5 延时,为了其他进程(./init.sh ./load.sh ./run.sh)准备好,初始化好fb2。 若不加这个延时,手动启动./start_gjapp.sh 脚本, qt进程(./interface_process)不能启动。

    为什么QT不能自启动???