板卡自带的buildroot 系统里面,开机会运行/root/boot_run.sh
,所以如果需要设置开机启动,把要启动的程序加入到 boot_run.sh
中即可。
板卡开机默认启动的Qt程序也是在里面设置的,如果想禁用此程序修改boot_run.sh
即可。
boot_run.sh
源码如下:
# cat boot_run.sh
#! /bin/sh
#you can custom your action after boot in this script
#if you want to run your application after boot
psplash-write "MSG Welcome to Loongson-gd"
psplash-write "PROGRESS 100"
psplash-write "QUIT"
if [ -z "$(cat /proc/cmdline | grep ubifs)" ]; then
sleep 5
fi
export QT_QPA_FB_TSLIB=1
cd /root/logo_player && ./logo_player &
更多回帖