I have recently faced issues with photon that have meant I needed to install and use DFU-UTIL on my mac running OSX El Capitan. The instructions on the Help Page are rather short on the details of how to do this and overcome the errors that will no doubt crop up for others. Attached here are the work arounds.
I had no problems installing brew.
However,
$ brew install dfu-util
kicked out this
Error: You must `brew link pkg-config libusb' before dfu-util can be installed
Doing as asked kicked out another
Linking /usr/local/Cellar/pkg-config/0.28...
Error: Could not symlink .
/usr/local/opt is not writable.
After a bit of digging around the solution was on Stackoverflow
this sorts the not writable issue
$ sudo chown -R `whoami`:admin /usr/local
then link
$ brew link pig-config libusb
then install
$ brew install dfu-util
==> Downloading http://ftp.de.debian.org/debian/pool/main/d/dfu-util/dfu-util_0.8.orig.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/dfu-util/0.8
==> make install
🍺 /usr/local/Cellar/dfu-util/0.8: 10 files, 144K, built in 22 seconds
Hey Presto!
The next part of the vague instructions for updating the firmware…
Download of Firmware Part 1 and Part 2 is straightforward and you get these files in Downloads folder
system-part2-0.4.6-photon.bin
system-part1-0.4.6-photon.bin
The instructions are then to run on the console the following:
$ dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system-part1-0.4.6-photon.bin
then
$ dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.6-photon.bin
except the .bin files have to be unpacked and placed in a specific directory which is not mentioned!
dfu-util help
isn’t that helpful either!!