Files
agnos-builder/flash_all.sh
2026-05-05 11:52:27 -07:00

19 lines
438 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
scripts/mdma.py --missing-ok reboot-qdl
for part in aop abl xbl xbl_config devcfg; do
tools/qdl flash ${part}_a $DIR/firmware/$part.img
tools/qdl flash ${part}_b $DIR/firmware/$part.img
done
tools/qdl flash boot $DIR/output/boot.img
tools/qdl flash system $DIR/output/system.img
tools/qdl reset
scripts/mdma.py --missing-ok reboot