Weston GUI display when using NFS rootfs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Weston GUI display when using NFS rootfs

Weston GUI display when using NFS rootfs

Default system can’t start Weston GUI in monitor after booting with NFS, so I find a solution to fix that issue.
1.Error messages
imx8mpevk login: [31.274389] systemd[1]:weston@root.service: Main process exited, code=exited, status=1/FAILURE
[ 31.274928] systemd[1]: weston@root.service: Failed with result 'exit-code'.
[04:52:59.571] logind: not running in a systemd session
[04:52:59.571] logind: cannot setup systemd-logind helper (-61), using legacy fallback
2.Steps
Step 1:Add output in the /etc/xdg/weston/Weston.ini
[output]
name=HDMI-A-1
mode=1920x1080@60
Step 2:ls /sys/class/drm
There will be some device nodes like card0,card1-HDMI-A-1. card1-HDMI-A-1 is we need.
Step 3:Change drm_device in /etc/xdg/weston/Weston.ini
drm-device=card1
Step 4:Set envs
export WESTON_DRM_PRIMARY=HDMI-A-1
export WESTON_DRM_MIRROR=1
export WESTON_DRM_KEEP_RATIO=1
export WESTON_DRM_PREFER_EXTERNAL=1
export WESTON_DRM_PREFER_EXTERNAL_DUAL=1
Step 5:Start Weston
weston --tty=7 -B=drm-backend.so --idle-time=0&

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1268026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWeston%20GUI%20display%20when%20using%20NFS%20rootfs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1268026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDefault%20system%20can%E2%80%99t%20start%20Weston%20GUI%20in%20monitor%20after%20booting%20with%20NFS%2C%20so%20I%20find%20a%20solution%20to%20fix%20that%20issue.%3CBR%20%2F%3E1.Error%20messages%3CBR%20%2F%3Eimx8mpevk%20login%3A%20%5B31.274389%5D%20systemd%5B1%5D%3Aweston%40root.service%3A%20Main%20process%20exited%2C%20code%3Dexited%2C%20status%3D1%2FFAILURE%3CBR%20%2F%3E%5B%2031.274928%5D%20systemd%5B1%5D%3A%20weston%40root.service%3A%20Failed%20with%20result%20'exit-code'.%3CBR%20%2F%3E%5B04%3A52%3A59.571%5D%20logind%3A%20not%20running%20in%20a%20systemd%20session%3CBR%20%2F%3E%5B04%3A52%3A59.571%5D%20logind%3A%20cannot%20setup%20systemd-logind%20helper%20(-61)%2C%20using%20legacy%20fallback%3CBR%20%2F%3E2.Steps%3CBR%20%2F%3EStep%201%3AAdd%20output%20in%20the%20%2Fetc%2Fxdg%2Fweston%2FWeston.ini%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E%5Boutput%5D%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3Ename%3DHDMI-A-1%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3Emode%3D1920x1080%4060%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CEM%3EStep%202%3Als%20%2Fsys%2Fclass%2Fdrm%3C%2FEM%3E%3CBR%20%2F%3EThere%20will%20be%20some%20device%20nodes%20like%20card0%2Ccard1-HDMI-A-1.%20card1-HDMI-A-1%20is%20we%20need.%3CBR%20%2F%3EStep%203%3AChange%20drm_device%20in%20%2Fetc%2Fxdg%2Fweston%2FWeston.ini%3CBR%20%2F%3E%3CSTRONG%3Edrm-device%3Dcard1%3C%2FSTRONG%3E%3CBR%20%2F%3EStep%204%3ASet%20envs%3CBR%20%2F%3E%3CSTRONG%3Eexport%20WESTON_DRM_PRIMARY%3DHDMI-A-1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eexport%20WESTON_DRM_MIRROR%3D1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eexport%20WESTON_DRM_KEEP_RATIO%3D1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eexport%20WESTON_DRM_PREFER_EXTERNAL%3D1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eexport%20WESTON_DRM_PREFER_EXTERNAL_DUAL%3D1%3C%2FSTRONG%3E%3CBR%20%2F%3EStep%205%3AStart%20Weston%3CBR%20%2F%3E%3CSTRONG%3Eweston%20--tty%3D7%20-B%3Ddrm-backend.so%20--idle-time%3D0%26amp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1268026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎04-26-2021 01:54 AM
Updated by: