add cp1 specific mod without mass storage
|
|
@ -36,8 +36,8 @@ echo "This is a demo update package which does nothing."
|
|||
echo "enjoy"
|
||||
|
||||
for i in $(seq 10 -1 1); do
|
||||
echo "will done in ${i} seconds."
|
||||
sleep 1
|
||||
echo "will done in ${i} seconds."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
|
||||
epd_cmd()
|
||||
{
|
||||
epd_fb_test $@ >/dev/null 2>&1
|
||||
}
|
||||
|
||||
dispClear()
|
||||
{
|
||||
epd_cmd gray DU PART 0
|
||||
}
|
||||
|
||||
get_screen_resolution()
|
||||
{
|
||||
head -1 /sys/class/graphics/fb0/modes | sed -e 's/^.*://' -e 's/p.*$//' -e 's/x/ /'
|
||||
}
|
||||
|
||||
get_screen_width()
|
||||
{
|
||||
set `get_screen_resolution`
|
||||
echo $1
|
||||
}
|
||||
|
||||
get_screen_height()
|
||||
{
|
||||
set `get_screen_resolution`
|
||||
echo $2
|
||||
}
|
||||
|
||||
LOG_FP=$1
|
||||
|
||||
dispClear
|
||||
|
||||
while [ 1 ]
|
||||
do
|
||||
for file in `\find $(dirname ${0})/images -name '*.bmp' | sort`; do
|
||||
epd_cmd file GC16 PART $file
|
||||
echo "[anim] displaying $file" >> $LOG_FP
|
||||
sleep 1
|
||||
done
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
@ -0,0 +1 @@
|
|||
a76923ae3e25128c0de9259a3586dc52
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
# usage ./chkver.sh <PACKAGE_VER>
|
||||
|
||||
CURENT_VER=`rawdata --version | sed -e 's/[^0-9]//g' | cut -b 1-8`
|
||||
PACKAGE_VER=`cat $1 | sed -e 's/[^0-9]//g' | cut -b 1-8`
|
||||
LOG_FP=$2
|
||||
|
||||
echo "Current version: $CURENT_VER" >> $LOG_FP
|
||||
echo "Package version: $PACKAGE_VER" >> $LOG_FP
|
||||
|
||||
# if [ 10 -ge 10 ]; then echo "true"; else echo "false"; fi # true
|
||||
# if [ 10 -ge 11 ]; then echo "true"; else echo "false"; fi # false
|
||||
# if [ 10 -ge 9 ]; then echo "true"; else echo "false"; fi # true
|
||||
|
||||
if [ $PACKAGE_VER -ge $CURENT_VER ]
|
||||
then
|
||||
# echo "true";
|
||||
echo "chkver.sh passed!" >> $LOG_FP
|
||||
exit 0
|
||||
else
|
||||
# echo "false";
|
||||
echo "chkver.sh failed!" >> $LOG_FP
|
||||
exit 127
|
||||
fi
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
#!/bin/sh
|
||||
|
||||
# initialization
|
||||
UPDATER_BASE=$(dirname ${0})
|
||||
ANIM_PID=0
|
||||
EPOCH=$(date +%s)
|
||||
LOG_FP=/root/updater_$EPOCH.log
|
||||
echo "" > $LOG_FP
|
||||
|
||||
# start animation script
|
||||
${UPDATER_BASE}/animation.sh $LOG_FP &
|
||||
ANIM_PID=$!
|
||||
sleep 2
|
||||
|
||||
# bypass version check
|
||||
# # version check
|
||||
# ${UPDATER_BASE}/chkver.sh ${UPDATER_BASE}/version $LOG_FP
|
||||
# if [ "$?" -eq 0 ]
|
||||
# then
|
||||
# echo "[updater.sh] version check OK" >> $LOG_FP
|
||||
# else
|
||||
# echo "[updater.sh] version check NG (TBD)" >> $LOG_FP
|
||||
# # strange version Package, so we must not install this package !!
|
||||
# exit 0;
|
||||
# fi
|
||||
# sync
|
||||
|
||||
# flash customized boot img
|
||||
echo "[updater.sh] writing boot.img.." >> $LOG_FP
|
||||
if [ -f ${UPDATER_BASE}/boot-cp1-1.4.02.09061-mod-190411.img ] ;
|
||||
then
|
||||
dd if=${UPDATER_BASE}/boot-cp1-1.4.02.09061-mod-190411.img of=/dev/mmcblk0p8 bs=4M
|
||||
sync
|
||||
else
|
||||
echo "[updater.sh] desired boot.img not exit; nothing did to boot partition" >> $LOG_FP
|
||||
fi
|
||||
|
||||
# verify the boot img success
|
||||
RET=0
|
||||
${UPDATER_BASE}/verify.sh ${UPDATER_BASE} $LOG_FP
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "[updater.sh] verify check OK" >> $LOG_FP
|
||||
else
|
||||
RET=$?
|
||||
echo "[updater.sh] verify check NG, shudown, will retry upon boot up" >> $LOG_FP
|
||||
fi
|
||||
|
||||
# # enable su in adb shell
|
||||
# echo "[updater.sh] run getsu.sh" >> $LOG_FP
|
||||
# ${UPDATER_BASE}/getsu.sh $LOG_FP
|
||||
# if [ ! $? -eq 0 ]
|
||||
# then
|
||||
# # shutdown, remove update, error occurs
|
||||
# RET=$?
|
||||
# fi
|
||||
|
||||
sleep 2
|
||||
|
||||
# stop animation
|
||||
if [ $ANIM_PID -ne 0 ]
|
||||
then
|
||||
kill $ANIM_PID
|
||||
fi
|
||||
|
||||
# if returned 1, will shutdown
|
||||
exit $RET
|
||||
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
UPDATER_BASE=$(dirname ${0})
|
||||
${UPDATER_BASE}/eufwupdater.sh
|
||||
# tentative exit
|
||||
exit $?
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
sync
|
||||
echo 3 > /proc/sys/vm/drop_caches
|
||||
|
||||
LOG_FP=$2
|
||||
|
||||
BOOT_IMG_SIZE=`stat -c%s $1/boot-cp1-1.4.02.09061-mod-190411.img`
|
||||
|
||||
BLK8_MD5=`dd if=/dev/mmcblk0p8 bs=$BOOT_IMG_SIZE count=1 | md5sum | cut -d " " -f1`
|
||||
|
||||
BOOT_MD5=`cat $1/boot-cp1-1.4.02.09061-mod-190411.img.md5`
|
||||
|
||||
echo "BLK08=$BLK8_MD5" >> $LOG_FP
|
||||
echo " BOOT=$BOOT_MD5" >> $LOG_FP
|
||||
|
||||
|
||||
if [ $BLK8_MD5 = $BOOT_MD5 ];
|
||||
then
|
||||
echo "Verify OK" >> $LOG_FP
|
||||
exit 0;
|
||||
fi
|
||||
echo "Verify NG" >> $LOG_FP
|
||||
exit 127;
|
||||
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
1.4.01.16100 general
|
||||
|
|
@ -0,0 +1 @@
|
|||
2714eb0d158c256c4868ef04f93cb50c56d0092c8df6285304b8ddb78d5f1ef9
|
||||
|
|
@ -0,0 +1 @@
|
|||
55460c2e3abf285af96fe660c0880bc
|
||||