1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-03 05:02:40 +02:00

Updated cfw for newest wyzev2 (#1729)

This commit is contained in:
McNutnut
2021-05-10 21:19:16 -07:00
committed by GitHub
parent 1090a1f626
commit 90076db303
7 changed files with 9 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash
FIRMWARE_ROOT=$(pwd)/../../firmware_original/wyzecam_v2/4.9.4.28/
FIRMWARE_ROOT=$(pwd)/../../firmware_original/wyzecam_v2/rtsp-4.28.4.49/
TMPDIR=./rootfs
OUTFILE=./rootfs.bin
rm -r $TMPDIR $OUTFILE
unsquashfs -d $TMPDIR $FIRMWARE_ROOT/rootfs.bin
cp ./rcfile.sh $TMPDIR/etc/init.d/rcS
mksquashfs $TMPDIR $OUTFILE -b 1048576 -comp xz -Xdict-size 100%
mksquashfs $TMPDIR $OUTFILE -b 131072 -comp xz -Xdict-size 100%
./packer.py $FIRMWARE_ROOT/kernel.bin $OUTFILE $FIRMWARE_ROOT/driver.bin $FIRMWARE_ROOT/appfs.bin firmware_hacked.bin
rm -r $TMPDIR $OUTFILE
rm -r $TMPDIR $OUTFILE

View File

@@ -90,6 +90,7 @@ do
sleep 1
echo "Mount sucessful"
if [ -f /system/sdcard/run.sh ]; then
# Turn off blue LED
echo 1 > /sys/class/gpio/gpio39/value
echo 39 > /sys/class/gpio/unexport
echo "Starting run.sh from sdcard"
@@ -111,6 +112,9 @@ echo 1 > /sys/class/gpio/gpio39/value
echo 39 > /sys/class/gpio/unexport
if [ -f /system/init/app_init.sh ]; then
/system/init/app_init.sh &
# Run init script
APP_INIT=/system/init/app_init.sh
if [ -f $APP_INIT ]; then
chmod a+x $APP_INIT
$APP_INIT &
fi