HK-2000 数采仪系统说明之 2.系统启动过程说明
系统首先启动linux操作系统,然后启动文件系统,运行/usr/etc/rc.local 脚本,最后运行系统用户应用程序(执行StartUp.sh脚本)
下面是StartUp.sh脚本中的内容
[root@(none) /]$cd /mnt/Nand/bject/
[root@(none) bject]$cat StartUp.sh
#!/bin/sh
#
#
# Copyright (C) 2005 Beijing Enviromental Control Technology Co.,Ltd
# WebSite: http://www.bject.com.cn
# Description:
# Date: 2007-10-20
# Author: Caolisong
# E_mail: caolisong@163.com
#
#
echo "开始执行系统配置脚本... ..."
echo "注册系统驱动... ..."
insmod /lib/modules/at91_rtcex.o > /dev/null
insmod /lib/modules/8255.o > /dev/null
insmod /lib/modules/at91_tl16c554.o > /dev/null
insmod /lib/modules/ADS7842.o > /dev/null
insmod /lib/modules/cm240128-7.o > /dev/null
insmod /lib/modules/at91_key.o > /dev/null
insmod /lib/modules/at91_wdt.o > /dev/null
insmod /lib/modules/rsound.o > /dev/null
insmod /lib/modules/IGT.o > /dev/null
cd /mnt/Nand/bject
echo "设置操作系统时间... ..."
./SetRtc2OS
echo "启动数据采集仪应用程序... ..."
./H2000Collect > /dev/null &
sleep 2
./H2000SADC > /dev/null &
./H2000LCDKey > /dev/null &
./H2000PSMI 1 > /dev/null &
#./H2000SService 7002 > /dev/null &
#./H2000SClient 192.168.0.6 5002 > /dev/null &
#echo "启动USB服务... ..."
#mount -t usbdevfs none /proc/bus/usb
#./udisk start
#./auto_udisk > /dev/null &
#echo "点火MC39i... ..."
#./IGT 1
echo "启动软件狗服务... ..."
./feedWatchDog > /dev/null &
#echo "启动GPRS拨号服务... ..."
#./gprsdial "*99***1#"
#echo "启动GPRS心跳监控服务... ..."
#./HeartMonitor "211.141.172.123" 5 > /dev/null &
#echo "启动在线更新服务... ..."
#cd /mnt/Nand/bject/Update
#./lhttpUpdateCHS.sh > /dev/null &
echo "执行启动脚本结束!"
cd /
[root@(none) bject]$
下面是StartUp.sh脚本中的内容
[root@(none) /]$cd /mnt/Nand/bject/
[root@(none) bject]$cat StartUp.sh
#!/bin/sh
#
#
# Copyright (C) 2005 Beijing Enviromental Control Technology Co.,Ltd
# WebSite: http://www.bject.com.cn
# Description:
# Date: 2007-10-20
# Author: Caolisong
# E_mail: caolisong@163.com
#
#
echo "开始执行系统配置脚本... ..."
echo "注册系统驱动... ..."
insmod /lib/modules/at91_rtcex.o > /dev/null
insmod /lib/modules/8255.o > /dev/null
insmod /lib/modules/at91_tl16c554.o > /dev/null
insmod /lib/modules/ADS7842.o > /dev/null
insmod /lib/modules/cm240128-7.o > /dev/null
insmod /lib/modules/at91_key.o > /dev/null
insmod /lib/modules/at91_wdt.o > /dev/null
insmod /lib/modules/rsound.o > /dev/null
insmod /lib/modules/IGT.o > /dev/null
cd /mnt/Nand/bject
echo "设置操作系统时间... ..."
./SetRtc2OS
echo "启动数据采集仪应用程序... ..."
./H2000Collect > /dev/null &
sleep 2
./H2000SADC > /dev/null &
./H2000LCDKey > /dev/null &
./H2000PSMI 1 > /dev/null &
#./H2000SService 7002 > /dev/null &
#./H2000SClient 192.168.0.6 5002 > /dev/null &
#echo "启动USB服务... ..."
#mount -t usbdevfs none /proc/bus/usb
#./udisk start
#./auto_udisk > /dev/null &
#echo "点火MC39i... ..."
#./IGT 1
echo "启动软件狗服务... ..."
./feedWatchDog > /dev/null &
#echo "启动GPRS拨号服务... ..."
#./gprsdial "*99***1#"
#echo "启动GPRS心跳监控服务... ..."
#./HeartMonitor "211.141.172.123" 5 > /dev/null &
#echo "启动在线更新服务... ..."
#cd /mnt/Nand/bject/Update
#./lhttpUpdateCHS.sh > /dev/null &
echo "执行启动脚本结束!"
cd /
[root@(none) bject]$