Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Readme.md #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,10 @@ chmod 755 dummy_verify.sh

make a local copy (renamed) of dji_verify in /vendor/bin/ :

`cp /sbin/dji_verify /vendor/bin/original_dji_verify_copy` for Spark and Mavic
`cp /sbin/dji_verify /vendor/bin/original_dji_verify_copy` for Spark, Mavic, and P4PV2
or
`cp /system/bin/dji_verify /vendor/bin/original_dji_verify_copy` for P4P
for P4 / P4 adv, check where the dji_verify tool lives in the file system and issue the right command accordingly
`cp /system/bin/dji_verify /vendor/bin/original_dji_verify_copy` for P4P, P4 Advanced, and P4 Standard.


(use this very same name because it's hardcoded inside dummy_verify.sh)

Expand All @@ -447,10 +447,9 @@ some files from the Linux setup to the Windows machine)

Now the trick :

`mount -o bind /vendor/bin/dummy_verify.sh /sbin/dji_verify` for Spark and Mavic
`mount -o bind /vendor/bin/dummy_verify.sh /sbin/dji_verify` for Spark, Mavic, and P4PV2
or
`mount -o bind /vendor/bin/dummy_verify.sh /system/bin/dji_verify` for P4P
for P4 / P4 adv, check where the dji_verify tool lives in the file system (`which dji_verify`) and issue the right command accordingly
`mount -o bind /vendor/bin/dummy_verify.sh /system/bin/dji_verify` for P4P, P4 Advanced, and P4 Standard.

This will have the following effect : actual dji_verify is "replaced" by dummy_verify.sh that gets called instead when the actual flashing will start.
A short read to dummy_verify script should let you understand how it works (and why it's called that way) : Just calling the dji_verify "copy"
Expand Down