工具/软件:Linux
大家好、
我们将 AM3354特定定制板与 TI SDK 03.03 (内核4.4.4.1)配合使用。
我们能够引导 Linux 并在 LCD 中看到矩阵 GUI。
但是、我们需要:
1.启动时显示启动映像。
2.我们的 QT 应用程序将在启动时启动,而不是矩阵 GUI
您能指导我如何实现这一点吗?
感谢您的支持!
此致、
Bibplab
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.
您好、Bibplab、
要在引导时显示启动映像,请将 psplash-start.service 和 psplash-stop.service 添加到 lib/systemd/system/,然后键入 systemctl enable psplash-start psplash-stop 和 systemctl daemon-reload。
要使进度条正常工作、请使用闪屏写入"MSG message"、闪屏写入"progress Number"命令计算和设计进度条填充服务、您可以绘制进度条并将消息写入闪屏。
psplash-start.service
[单位]
Description=启动屏幕
DefaultDependencies=no
[服务]
execStartPre=/bin/mount tmpfs -t tmpfs /mnt/.psplash -o, size=40k
ExecStart=/usr/bin/psplash
[安装]
WantedBy=sysinit.target
psplash-stop.service
[单位]
Description=终止启动屏幕
after = psplash-start.service
[服务]
type=OneShot
ExecStartPre=/usr/bin/psplash-write "quit"
ExecStart=/bin/umount /mnt/.psplash
TimeoutSec =20秒
[安装]
WantedBy=多用户目标
如果您需要 U-Boot 闪屏、请参阅 此主题。
如果您希望在 U-Boot 闪屏和闪屏之间生成映像,请使用自定义屏幕映像替换内核 tux 徽标。
以运行 Qt 应用程序、而不是矩阵 GUI。 请参阅 此主题。
此致、
Kemal