mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
add support for car fw and enable drivers
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
1
SD_ROOT/wz_mini/usr/bin/app.ver
Normal file
1
SD_ROOT/wz_mini/usr/bin/app.ver
Normal file
@@ -0,0 +1 @@
|
||||
Wed Jul 13 06:01:39 PM PDT 2022
|
Reference in New Issue
Block a user