浏览代码

fw_update uses gfaspi.ko

Reinhard Russinger 3 年之前
父节点
当前提交
f501d881e7

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

@@ -122,7 +122,7 @@ if [ "$BASEBOARD" == "DISPLAY002_DI4" -o "$BASEBOARD" == "DISPLAY002_RS485" ]; t
 fi
 
 if [ "$BASEBOARD" == "DISPLAY001" ]; then
-##	/root/fw_update.sh
+	/root/fw_update.sh
 	/root/gfa_spi -b 100
 	/root/gfa_spi -s
 fi

二进制
board/GfA/Display001/rootfs/root/btm43_0114_crc.bin


+ 6 - 5
board/GfA/Display001/rootfs/root/fw_update.sh

@@ -1,13 +1,14 @@
 #!/bin/sh
 ACTFW=`/root/gfa_spi -v | awk '{split($0,a," "); print a[8]}'`
-MINFW="0x00000113"
-FWFILE="/root/btm43_0113.bin"
+MINFW="0x00000114"
+FWFILE="/root/btm43_0114_crc.bin"
 
 echo "actual Firmware : $ACTFW"
 
 if [ "$ACTFW" \< "$MINFW" ]; then
-echo "Do Update"
-/root/spi_tivia $FWFILE
+	echo "Do Update"
+	cat /root/btm43_0114_crc.bin >> /sys/gfa/tiva/firmware/image
+	gfa_spi -b 100
 else
-echo "FW ok"
+	echo "FW ok"
 fi