I’ve tested out the upcoming 2.0 release (specifically the 2.0.0-rc1.rev2
release now available in the resin.io dashboard), and now many of these things should be supported due to the inclusion of the extra .dtb
files. (A sidenote: the production release of 2.0 should happen soon, if testing release candidates (rc) is not ideal for your use case).
IoT pHAT
This should work by default now, the newer kernel and device trees should have support for loading the device information automatically from the EEPROM. For me it showed up as a wifi device. Downloaded resinOS configured to use wifi and booting up with the IoT pHAT attached was enough to connect to the network.
As a side-note, if you have an IoT pHAT it is good to take another Raspberry Pi with Raspbian and update the EEPROM of pHAT to the latest version, see their manual. Just in case, our boards arrived with firmware version 0.3, and the latest was 0.4.
USB-OTG networking
Warning: The following modifications are generally high risk and have a big potential impact on remote functionality (such as host OS updates), so it’s not recommended. If you don’t mind that your device won’t be supported after this or just experimenting, then go right ahead!
This is not enabled by default, but easy enough to set up. Download and burn the resinOS SD card image for the Pi Zero. Then mount the resin-boot
partition. Add the following to the end of the line in cmdline.txt
(after rootwait
)
modules-load=dwc2,g_ether
Also add to the end of confix.txt
the following line:
dtoverlay=dwc2
After this if you plug in your Pi Zero through the USB-OTG port (marked USB
), and share your computer’s network, it will correctly connect to resin.io and to the rest of the internet.