update flashable pkg example on boot.img, bypass version check to suit CP1 and RP1
|
|
@ -1 +0,0 @@
|
||||||
cad85861a484e850a0893a2e1d0c1b98
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
1867e8378c68753224677f8e00f81aad
|
||||||
|
|
@ -21,7 +21,7 @@ then
|
||||||
else
|
else
|
||||||
# echo "false";
|
# echo "false";
|
||||||
echo "chkver.sh failed!" >> $LOG_FP
|
echo "chkver.sh failed!" >> $LOG_FP
|
||||||
exit 1
|
exit 127
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,23 +12,24 @@ ${UPDATER_BASE}/animation.sh $LOG_FP &
|
||||||
ANIM_PID=$!
|
ANIM_PID=$!
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# version check
|
# bypass version check
|
||||||
${UPDATER_BASE}/chkver.sh ${UPDATER_BASE}/version $LOG_FP
|
# # version check
|
||||||
if [ "$?" -eq 0 ]
|
# ${UPDATER_BASE}/chkver.sh ${UPDATER_BASE}/version $LOG_FP
|
||||||
then
|
# if [ "$?" -eq 0 ]
|
||||||
echo "[updater.sh] version check OK" >> $LOG_FP
|
# then
|
||||||
else
|
# echo "[updater.sh] version check OK" >> $LOG_FP
|
||||||
echo "[updater.sh] version check NG (TBD)" >> $LOG_FP
|
# else
|
||||||
# strange version Package, so we must be install this package !!
|
# echo "[updater.sh] version check NG (TBD)" >> $LOG_FP
|
||||||
exit 0;
|
# # strange version Package, so we must not install this package !!
|
||||||
fi
|
# exit 0;
|
||||||
sync
|
# 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.4.01.16100-mod-181118.img ] ;
|
if [ -f ${UPDATER_BASE}/boot-1.4.01.16100-mod-181214.img ] ;
|
||||||
then
|
then
|
||||||
dd if=${UPDATER_BASE}/boot-1.4.01.16100-mod-181118.img of=/dev/mmcblk0p8 bs=4M
|
dd if=${UPDATER_BASE}/boot-1.4.01.16100-mod-181214.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
|
||||||
|
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.4.01.16100-mod-181118.img`
|
BOOT_IMG_SIZE=`stat -c%s $1/boot-1.4.01.16100-mod-181214.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.4.01.16100-mod-181118.img.md5`
|
BOOT_MD5=`cat $1/boot-1.4.01.16100-mod-181214.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
|
||||||
|
|
@ -21,6 +21,6 @@ echo "Verify OK" >> $LOG_FP
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
echo "Verify NG" >> $LOG_FP
|
echo "Verify NG" >> $LOG_FP
|
||||||
exit 1;
|
exit 127;
|
||||||
|
|
||||||
|
|
||||||