How to run gui_guider example application during very early boot on IMX93

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to run gui_guider example application during very early boot on IMX93

1,216件の閲覧回数
Nobita
Contributor III

Hi Sir,

   I have make an IMX93 fastboot-image following the doc: https://www.nxp.com/docs/en/application-note/AN14093.pdf

I am now able to achieve a result close to what is described in the documentation, where I start the kernel init process very early. My current issue is how to start the gui_guider example project as early as possible during the boot process. Currently, my gui_guider is already integrated into the flashed image, and I can manually enter the gui_guider command to start it and see the image display. However, when I start it using systemd, the image does not appear, even though I have specified for it to start after Weston. Below is my systemd configuration:

 

[Unit]
Description=Start GUI Guider after Weston
After=weston.service
Wants=weston.service

[Service]
ExecStart=/usr/bin/gui_guider
User=root
Group=root
WorkingDirectory=/home/weston
Restart=always
StandardOutput=tty
StandardError=tty
Environment=WAYLAND_DISPLAY=/run/wayland-0
TimeoutStartSec=10s

[Install]
WantedBy=multi-user.target

 

I have also heard that you have already implemented running gui_guider / lvgl very early in the boot process within the fastboot image. Could you share the detailed technical solution for that?

Sincerely!

0 件の賞賛
返信
4 返答(返信)

1,158件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Nobita 

The bootup of lvgl demo is controlled by init script in /etc/init.d, the command to start lvgl is 
/home/root/lvgl_demo & in this script.

 

Best Regards

Zhiming

0 件の賞賛
返信

1,141件の閲覧回数
Nobita
Contributor III

Hi @Zhiming_Liu ,

    Here is my gui-guider sample code which is generated by Gui Guider-1.8.1-GA, I intergrated it into imx-yocto-bsp 6.1.36 build, My issue is that my program can display picture via the HDMI interface when I manually run the gui-guider command in a serial session, but it doesn’t show img when I set it to start automatically using init.d or systemd. Is it necessary to set environment variables or make other adjustments? would you please share your full init.d file or systemd file?

Sincerely 

0 件の賞賛
返信

1,137件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Have shared project with message.

Best Regards,
Zhiming

0 件の賞賛
返信

1,170件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Could you share the detailed technical solution for that?

--> I am checking this with internal team and will reply here asap.

Best Regards,
Zhiming

0 件の賞賛
返信