浏览代码

Tiva kernelmode driver load moved

Reinhard Russinger 3 年之前
父节点
当前提交
d3a4229769
共有 1 个文件被更改,包括 10 次插入9 次删除
  1. 10 9
      board/GfA/Display001/rootfs/etc/init.d/rcS

+ 10 - 9
board/GfA/Display001/rootfs/etc/init.d/rcS

@@ -51,6 +51,15 @@ else
 fi
 BASEBOARD=`cat /tmp/BASEBOARD`
 #================================
+if [ "$BASEBOARD" == "DISPLAY001" ]; then
+# - check tiva firmware and update if neccessary
+	modprobe gfaspi
+	if [ "$?" != "0" ]; then
+		depmod -a
+		modprobe gfaspi
+		beep;sleep 1;beep;sleep 1;beep
+	fi
+fi
 
 if [ "$BASEBOARD" == "DISPLAY002_DI4" -o "$BASEBOARD" == "DISPLAY002_RS485" ]; then
 	rm /dev/rtc
@@ -113,15 +122,7 @@ if [ "$BASEBOARD" == "DISPLAY002_DI4" -o "$BASEBOARD" == "DISPLAY002_RS485" ]; t
 fi
 
 if [ "$BASEBOARD" == "DISPLAY001" ]; then
-# - check tiva firmware and update if neccessary
-	modprobe gfaspi
-	if [ "$?" != "0" ]; then
-		depmod -a
-		modprobe gfaspi
-		beep;sleep 1;beep;sleep 1;beep
-	fi
-	sleep 2
-	/root/fw_update.sh
+##	/root/fw_update.sh
 	/root/gfa_spi -b 100
 	/root/gfa_spi -s
 fi