fastboot.py: add logging
This commit is contained in:
parent
241cee6ef1
commit
e034c48843
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ import subprocess
|
||||||
|
|
||||||
|
|
||||||
def fastboot_erase_dtbo():
|
def fastboot_erase_dtbo():
|
||||||
|
logging.info(f"Fastboot: Erasing DTBO")
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
'fastboot',
|
'fastboot',
|
||||||
|
@ -14,6 +15,7 @@ def fastboot_erase_dtbo():
|
||||||
|
|
||||||
|
|
||||||
def fastboot_flash(partition, file):
|
def fastboot_flash(partition, file):
|
||||||
|
logging.info(f"Fastboot: Flashing {file} to {partition}")
|
||||||
result = subprocess.run([
|
result = subprocess.run([
|
||||||
'fastboot',
|
'fastboot',
|
||||||
'flash',
|
'flash',
|
||||||
|
@ -26,6 +28,7 @@ def fastboot_flash(partition, file):
|
||||||
|
|
||||||
|
|
||||||
def fastboot_boot(file):
|
def fastboot_boot(file):
|
||||||
|
logging.info(f"Fastboot: booting {file}")
|
||||||
result = subprocess.run([
|
result = subprocess.run([
|
||||||
'fastboot',
|
'fastboot',
|
||||||
'boot',
|
'boot',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue