Commit b3edffd3 authored by fuyanbin's avatar fuyanbin
Browse files

workround: afptool 工具好像有路径读取问题

parent ea1de4f3
......@@ -191,7 +191,10 @@ unpack_and_mount_image() {
cp "$img" "$update_img_tmp_dir/update.img"
mkdir -p "$update_img_tmp_dir/update.img.dump"
rkImageMaker -unpack "$update_img_tmp_dir/update.img" "$update_img_tmp_dir/update.img.dump"
afptool -unpack "$update_img_tmp_dir/update.img.dump/firmware.img" "$update_img_tmp_dir/update.img.dump"
# workround: afptool 工具好像有路径读取问题
pushd "$update_img_tmp_dir"
afptool -unpack "./update.img.dump/firmware.img" "./update.img.dump"
popd
rm -f "$update_img_tmp_dir/update.img"
rm -f "$update_img_tmp_dir/update.img.dump/firmware.img"
rm -f "$update_img_tmp_dir/update.img.dump/boot.bin"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment