The below is tested with the June 2017 release of Raspbian Jessie, for setting up a Pi without any local peripherals connected.
Based on the Raspberry Pi instructions here
Switch to newer GCC as default:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
Install LibAvahi-dev:
- Download Raspbian Jessie with PIXEL
diskutil list
diskutil unmountDisk /dev/disk<disk# from diskutil>
sudo dd bs=1m if=image.img of=/dev/rdisk<disk# from diskutil>
sudo diskutil eject /dev/rdisk<disk# from diskutil>
Check firmware status of IoT pHAT:
cat /proc/device-tree/hat/product