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.

Linux/AM3354: Launching QT app on startup

Part Number: AM3354

Tool/software: Linux

Hello all,

We are using AM3354 specific custom board with TI SDK 03.03 (kernel 4.4.41).

We are able to boot the linux and can see the matrix GUI in LCD.

However, we need below:

1. splash image to be displayed at the time of booting.

2. Our QT app is to be launched at start up instead of matrix GUI

Can you kindly guide me how to achieve this ?

Thanks for your support !

Best Regards,

Biplab

  • The software team have been notified. They will respond here.
  • Hello Biplab,

    To display a splash image at boot time add the psplash-start.service and psplash-stop.service to lib/systemd/system/ then type systemctl enable psplash-start psplash-stop and systemctl daemon-reload.
    To make the progress bar work, calculate and design a progress bar filler service with the psplash-write "MSG message", psplash-write "PROGRESS number" commands you can draw the progress bar and write a message to psplash screen.

    psplash-start.service
    [Unit]
    Description=Psplash Boot Screen
    DefaultDependencies=no

    [Service]
    ExecStartPre=/bin/mount tmpfs -t tmpfs /mnt/.psplash -o,size=40k
    ExecStart=/usr/bin/psplash

    [Install]
    WantedBy=sysinit.target

    psplash-stop.service
    [Unit]
    Description=Terminate Psplash Boot Screen
    After=psplash-start.service

    [Service]
    Type=oneshot
    ExecStartPre=/usr/bin/psplash-write "QUIT"
    ExecStart=/bin/umount /mnt/.psplash
    TimeoutSec=20s

    [Install]
    WantedBy=multi-user.target

    If you want a U-Boot splash screen, please refer to this thread.

    If you want an image between U-Boot splash screen and psplash screen replace the kernels tux logo with your custom screen image.

    To run the Qt application instead of matrix GUI. Please, refer to this thread.

    Best regards,
    Kemal

  • Hello,
    in provided script initialization shows warning for ExecStartPre.
    So after removing those lines splash screen statys for some time being as per stated in timeout.

    Can you please provide process for showing progressbar working service sample.

    Thank you
  • I haven't designed such a sample yet. If I found a reliable solution for that, I will post.