Files
rk35xx-android14/RKTools/linux/Linux_Pack_Firmware/rockdev/unpack.sh
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

23 lines
470 B
Bash
Executable File

#!/bin/bash
pause()
{
echo "Press any key to quit:"
read -n1 -s key
exit 1
}
echo "start to unpack update.img..."
if [ ! -d "output" ]; then
mkdir output
fi
if [ ! -f "update.img" ]; then
echo "Error:No found update.img!"
pause
fi
./rkImageMaker -unpack update.img output || pause
./afptool -unpack output/firmware.img output || pause
rm -f output/firmware.img
rm -f output/boot.bin
echo "Unpacking update.img OK."
echo "Press any key to quit:"
read -n1 -s key
exit 0