linux-msm / qdl

BSD 3-Clause "New" or "Revised" License
196 stars 76 forks source link

how to reboot after qdl flash #35

Open onlinesen opened 1 year ago

onlinesen commented 1 year ago

wouldu pls add reboot to normal/power on funtion?

guoshouwang commented 1 year ago

It already has reboot function, but maybe it can't works. Please try this patch, it seems work but I don't know why.

diff --git a/firehose.c b/firehose.c
index 319bac8..d9ad588 100644
--- a/firehose.c
+++ b/firehose.c
@@ -652,6 +652,7 @@ int firehose_run(struct qdl_device *qdl, const char *incdir, const char *storage
                firehose_set_bootable(qdl, bootable);

        firehose_reset(qdl);
+       firehose_reset(qdl);

        return 0;
 }