xref: /OK3568_Linux_fs/tools/linux/Linux_Pack_Firmware/rockdev/rk3528-mkupdate.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/bash
2pause()
3{
4echo "Press any key to quit:"
5read -n1 -s key
6exit 1
7}
8echo "start to make update.img..."
9if [ ! -f "Image/parameter" -a ! -f "Image/parameter.txt" ]; then
10	echo "Error:No found parameter!"
11	exit 1
12fi
13if [ ! -f "package-file" ]; then
14	echo "Error:No found package-file!"
15	exit 1
16fi
17./afptool -pack ./ Image/update.img || pause
18./rkImageMaker -RK3528 Image/MiniLoaderAll.bin Image/update.img update.img -os_type:androidos || pause
19echo "Making ./Image/update.img OK."
20#echo "Press any key to quit:"
21#read -n1 -s key
22exit $?
23