add support for car fw and enable drivers

This commit is contained in:
Alfonso Gamboa
2022-07-13 18:02:17 -07:00
parent 7e56f96e44
commit 77a4bdd8f0
7 changed files with 29 additions and 5 deletions

View File

@@ -71,6 +71,13 @@ elif [ -b /dev/mtdblock6 ]; then
rm -rf /opt/wz_mini/tmp/configs
fi
#Check for Car FW
if [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then
if cat /system/bin/app.ver | grep 4.55; then
touch /opt/wz_mini/tmp/.CAR
fi
fi
#Set the correct GPIO for the audio driver (T31 only)
if [ -f /opt/wz_mini/tmp/.HL_PAN2 ]; then
GPIO=7

View File

@@ -138,6 +138,11 @@ if [[ "$DISABLE_MOTOR" == "true" ]]; then
touch /opt/wz_mini/tmp/.ms
fi
#Enable serial driver for car
if [ -f /opt/wz_mini/tmp/.CAR ]; then
modprobe cp210x
fi
/opt/wz_mini/etc/init.d/wz_user.sh &
##LIBRARY DEBUG

View File

@@ -0,0 +1 @@
Wed Jul 13 06:01:39 PM PDT 2022