Raspberry Pi 3 B+ WoA
This is a sequence of steps to create an Erlang development environment inside Windows Subsystem for Linux on Rapsberry Pi 3 B+. I'm using Windows 10 Insider 1903 build 18895 for both AMD64 and ARM64 host and device platforms.
— WOA: Install Windows on SD card
— WIN: Setup Windows
— PERF: Tune up Performance
— WSL: Install Linux
— ERL: Install Erlang
First of all I want to say even if you bought the device with radiators, SD card, and power adapter, this is still is not enough, you'll need SD card reader. The general idea is that WoA Deployer takes original WIM image and by using DISM commands, first apply this image to SD card, then apply drivers over vanilla Windows 10 Pro ARM64.
— WOA-Project/WOA-Deployer-Rpi — 2.1.1
After flashing USB perform regular Windows Setup procedure and set up to boot from USB always at first in EFI.
As for Windows this is personal preferences, but in reality RP3B+ is better to use cmd.exe as a Shell instead of explorer.exe. Also disable any GPU GUI effects, disable Windows Defender in gpedit.msc, disable Windows Update, Windows Search, everything you find allocated too much CPU or MEM in taskmgr.exe. After all preparations you should see at most 10% CPU consumption in idle as GPU drivers is not accessible in RP3B+ WoA yet.
First of all install Ubuntu 18.04 Bionic Beaver from Windows Store. It could be painful but doable. As WSL2 just released we need to tune up a bit /etc/apt/apt.conf:
And also specify in /etc/apt/sources.list bionic ports with existing ARM64 binaries. NOTE: please use three lines for bionic, bionic-update, and bionic-security with all combination of channels: main, restricted, universe, multiverse.
Now you can do apt update and upgrade:
During update just ignore all the GPG errors at the end.
Now we need to use kerl, the Erlang builder. Set config in ~/.kerlrc:
It will take hours to build Erlang on RP3B+!
Fix typo, introduce changes or put like for this page at: