DFU-Util exited with error code 6 on MacOS 11.1
athisun opened this issue ยท 11 comments
The dfu-util bundled in the macOS package seems to be broken, referencing a dyld library specific to a development machine.
dyld: Library not loaded: /Users/gamiee/Desktop/libusb-1.0.24/../build/lib/libusb-1.0.0.dylib Referenced from: /Users/acarr/Desktop/pinecil_firmware_updater.app/Contents/MacOS/dfu-util Reason: Incompatible library version: dfu-util requires version 4.0.0 or later, but libusb-1.0.0.dylib provides version 2.0.0
DFU-Util exited with error code 6!
Flashing failed.
I found that replacing the bundled dfu-util with one from Homebrew worked a treat, with only one warning appearing immediately after the dfu-util copyright information.
dfu-util: Warning: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Instructions:
- Right-click the pinecil_firmware_updater.app package
- Select "Show Package Contents"
- Navigate to "pinecil_firmware_updater.app/Contents/MacOS"
- Delete (or rename) the broken
dfu-util
file - Install dfu-util using Homebrew
brew install dfu-util
- Find the install location
brew info dfu-util
, mine was/usr/local/Cellar/dfu-util/0.10/bin
- Copy dfu-util to "pinecil_firmware_updater.app/Contents/MacOS"
Hello, thanks for reporting.
The dfu-util bundled in the macOS package seems to be broken, referencing a dyld library specific to a development machine.
This is weird. @OndroNR was testing the v1.1 and it worked finely for him, so that's weird. Maybe I forget to add correct dylib into the same folder with dfu-util. Will check it.
I found that replacing the bundled dfu-util with one from Homebrew worked a treat, with only one warning appearing immediately after the dfu-util copyright information.
This is okay, happens also on bundled dfu-util.
The reason why dfu-util is packaged inside is that application should be make the job without installing anything or requiring having homebrew.
I ran into the same issue athisun did initially (Same message and everything) and followed his steps to correct the issue. This happened on MacOS 11.3.
On the plus side, i did not get the same DFU suffix message that they got.
This issue is also present on M1 Macs running MacOS 11.3.1 (Latest)
@athisun 's replacement from brew also worked for me.
My path was /opt/homebrew/Cellar/dfu-util/0.10 , so others can also expect similar. But find your own like he said with "brew info".
Thanks for the help.
Is there any update for this issue? I still can't update firmware on my Pinecil.
Is there any update for this issue? I still can't update firmware on my Pinecil.
Yes, just replace the bundled dfu-util as the top reply on this thread suggests and it works fine.
I'm seeing the same thing on my M1 Pro. Resolved via
ln -s
which dfu-util /Users/andypiper/Downloads/pinecil_firmware_updater.app/Contents/MacOS
Hmm, I think the dfu-util still should be bundled inside the application (since not everyone have brew installed), although, it would be good to also have option to use system-installed dfu-util in case the integrated one doesn't work, so I'm thinking about adding an option in settings for this.
Yes, also because people without brew might install the macOS binaries from dfu-util.sourceforge.net.
This should be fixed in latest version of PINE64 Updater, if it's not, please re-open the issue. Thanks
Confirmed fixed.