T507的QT桌面启动过程如下: 1、cat /etc/inittab ::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -a
::sysinit:/sbin/swapon -a
null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/etc/init.d/rcS //启动脚本
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mount -t devpts devpts /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -t tmpfs tmpfs /dev/shm
::respawn:-/bin/sh
::shutdown:/bin/umount /dev/shm
::shutdown:/bin/umount /dev/pts
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r 2、 vi /etc/init.d/rcS #!/bin/sh
# Start all init scripts in /etc/init.d
# executing them in numerical order.
for i in /etc/init.d/S??* ;do //启动/etc/init.d/下的相关服务
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
ifconfig lo 127.0.0.1
insmod /lib/modules/4.9.170/mali_kbase.ko vi /etc/autorun.sh #!/bin/sh
. /etc/profile.d/env.sh
if [ "$TOUCH" == "tsc2007" ];then
if [ ! -e $POINTERCAL_FILE ];then
echo 0,0 > /sys/class/graphics/fb0/pan
/usr/bin/ts_calibrate
sync
fi
fi
/usr/bin/matrix-browser 127.0.0.1 & //调用的QT桌面程序,屏蔽这一行可以关掉QT桌面。改为自己的QT应用,可以实现自己的QT应用开机自启 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 17:36
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.