20260423给万象奥科的开发板HD-RK3576-PI适配瑞芯微原厂的Buildroot时使用weston-screenshooter截屏
Y:\git_RK3576_Linux6.1\buildroot\package\weston\S49westonY:\git_RK3576_Linux6.1\buildroot\output\rockchip_rk3576\target\etc\init.d\S49weston20260423给万象奥科的开发板HD-RK3576-PI适配瑞芯微原厂的Buildroot时使用weston-screenshooter截屏2026/4/23 9:081、RK3576的buildroot使用weston-screenshooter截屏的经典异常问题rootrk3576-buildroot:/#rootrk3576-buildroot:/#rootrk3576-buildroot:/# weston-screenshooterOutput capture error: unauthorizedrootrk3576-buildroot:/#2、RK3588的buildroot也出现过这个问题find . -name S49weston【如果没有编译就修改这里】./buildroot/package/weston/S49weston【如果已经编译了就修改这里】./buildroot/output/rockchip_rk3588/target/etc/init.d/S49weston3、修正Y:\git_RK3576_Linux6.1\buildroot\package\weston\S49westonY:\git_RK3576_Linux6.1\buildroot\output\rockchip_rk3576\target\etc\init.d\S49weston#!/bin/sh### BEGIN INIT INFO# Provides: weston# Required-Start: mountvirtfs# Required-Stop:# Should-Start:# Should-Stop:# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-Description: Linux weston daemon### END INIT INFOPATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin# Load default env variables from profiles(e.g. /etc/profile.d/weston.sh). /etc/profilestart_weston(){/usr/bin/weston --debug 21 | tee /var/log/weston.log }stop_weston(){killall weston}case $1 instart)echo -n starting weston... start_westonecho done.;;stop)echo -n stoping weston... stop_weston || trueecho done.;;restart|reload)echo -n stoping weston... stop_westonwhile pgrep -x weston; dosleep .1doneecho done.echo -n starting weston... start_westonecho done.;;*)echo Usage: $0 {start|stop|restart}exit 1esacexit 0参考资料https://blog.csdn.net/wb4916/article/details/156204044?spm1011.2415.3001.533120251223给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】系统时使用weston-screenshooter截屏【修改直接编译进IMG固件】https://kira-96.github.io/notes/weston-screenshot/weston桌面系统截屏方法forlinx开发板使用的yocto系统也类似修改/lib/systemd/system/weston.service在weston后添加--debug选项。$ vi /lib/systemd/system/weston.service# 修改如下# ExecStart/usr/bin/weston --debug --log${XDG_RUNTIME_DIR}/weston.log $OPTARGShttps://blog.csdn.net/qq_40177571/article/details/124989542vim /lib/systemd/system/weston.service//修改如下所示ExecStart/usr/bin/weston --debug --log${