remove old boot img example, add the newly mod one
|
|
@ -1 +0,0 @@
|
||||||
0badb67ed237d73e653b70de32912e7e
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
1.6.00.15110 general
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
3c4f298849c2de0229d0ea3bde71798e
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
UPDATER_BASE=$(dirname ${0})
|
UPDATER_BASE=$(dirname ${0})
|
||||||
ANIM_PID=0
|
ANIM_PID=0
|
||||||
EPOCH=$(date +%s)
|
EPOCH=$(date +%s)
|
||||||
LOG_FP=/root/updater_$EPOCH.log
|
LOG_FP=/root/updater_bootimg_$EPOCH.log
|
||||||
echo "" > $LOG_FP
|
echo "" > $LOG_FP
|
||||||
|
|
||||||
# start animation script
|
# start animation script
|
||||||
|
|
@ -12,24 +12,11 @@ ${UPDATER_BASE}/animation.sh $LOG_FP &
|
||||||
ANIM_PID=$!
|
ANIM_PID=$!
|
||||||
sleep 2
|
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
|
# flash customized boot img
|
||||||
echo "[updater.sh] writing boot.img.." >> $LOG_FP
|
echo "[updater.sh] writing boot.img.." >> $LOG_FP
|
||||||
if [ -f ${UPDATER_BASE}/boot-1.6.00.15110-mod-190516.img ] ;
|
if [ -f ${UPDATER_BASE}/boot-1.6.02.06240-mod-190730-115824.img ] ;
|
||||||
then
|
then
|
||||||
dd if=${UPDATER_BASE}/boot-1.6.00.15110-mod-190516.img of=/dev/mmcblk0p8 bs=4M
|
dd if=${UPDATER_BASE}/boot-1.6.02.06240-mod-190730-115824.img of=/dev/mmcblk0p8 bs=4M
|
||||||
sync
|
sync
|
||||||
else
|
else
|
||||||
echo "[updater.sh] desired boot.img not exit; nothing did to boot partition" >> $LOG_FP
|
echo "[updater.sh] desired boot.img not exit; nothing did to boot partition" >> $LOG_FP
|
||||||
|
|
@ -46,15 +33,6 @@ else
|
||||||
echo "[updater.sh] verify check NG, shudown, will retry upon boot up" >> $LOG_FP
|
echo "[updater.sh] verify check NG, shudown, will retry upon boot up" >> $LOG_FP
|
||||||
fi
|
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
|
sleep 2
|
||||||
|
|
||||||
# stop animation
|
# stop animation
|
||||||
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
|
@ -5,11 +5,11 @@ echo 3 > /proc/sys/vm/drop_caches
|
||||||
|
|
||||||
LOG_FP=$2
|
LOG_FP=$2
|
||||||
|
|
||||||
BOOT_IMG_SIZE=`stat -c%s $1/boot-1.6.00.15110-mod-190516.img`
|
BOOT_IMG_SIZE=`stat -c%s $1/boot-1.6.02.06240-mod-190730-115824.img`
|
||||||
|
|
||||||
BLK8_MD5=`dd if=/dev/mmcblk0p8 bs=$BOOT_IMG_SIZE count=1 | md5sum | cut -d " " -f1`
|
BLK8_MD5=`dd if=/dev/mmcblk0p8 bs=$BOOT_IMG_SIZE count=1 | md5sum | cut -d " " -f1`
|
||||||
|
|
||||||
BOOT_MD5=`cat $1/boot-1.6.00.15110-mod-190516.img.md5`
|
BOOT_MD5=`cat $1/boot-1.6.02.06240-mod-190730-115824.img.md5`
|
||||||
|
|
||||||
echo "BLK08=$BLK8_MD5" >> $LOG_FP
|
echo "BLK08=$BLK8_MD5" >> $LOG_FP
|
||||||
echo " BOOT=$BOOT_MD5" >> $LOG_FP
|
echo " BOOT=$BOOT_MD5" >> $LOG_FP
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
1.6.02.06240 general
|
||||||