User Tools

Site Tools


docs:guide-developer:build-system:wsl

Windows Subsystem for Linux (WSL)

Windows Subsystem for Linux is NOT OFFICIALLY supported.

Install

WSL 1 Install/Enable WSL
or
WSL 2 (preferred) Install/Enable WSL2
WSL 2 is only available in Windows 10 builds 18917 or higher. It has been reported that OpenWrt Image Build on WSL2 works fine and shows a good performance.

Configuration

Remove the entry of the Windows %PATH variable in your linux distribution. In any distribution create /etc/wsl.conf and add

[interop]
appendWindowsPath = false

AND/OR

Open the windows registry and HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{GUID}\Flags and change the hex value from 7 to 5 (Reference StackOverflow)

You will most likely need to reboot for this change to take effect. To confirm and check this worked, ``echo $PATH`` in your bash shell and you should see no entries pointing to your Windows directories.

Follow the standard Build system – Setup Linux (or the quick start guide here: Quick Image Building Guide )

It is recommended to compile using a single thread make -j1

[Why? also this contradicts advice on the other page saying to use make -j N where N is number of CPUs + 1]

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
docs/guide-developer/build-system/wsl.txt · Last modified: 2020/05/05 22:01 by stripwax