Build system setup WSL

This method is NOT OFFICIALLY supported. A native GNU/Linux environment is recommended.

Set up WSL 1 or WSL 2 (preferred). 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.

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

appendWindowsPath = false


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
  • Last modified: 2020/12/13 06:03
  • by vgaetera