Forum Discussion
For anyone with a similar issue with Quartus 22.1, this appears to be an incorrect assumption in the nios2_command_shell.sh script which causes it to fail to properly detect WSL2 on some (all? every one I've used it on) machines. This causes it to think the host OS is Linux not Windows.
The script assumes that WSL contains the text "Microsoft" (case sensitive) in /proc/version. For WSL2 with Ubuntu 20.02 LTS, this is not the case, instead it contains:
Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar <> 23:14:13 UTC 2024
Fortunately the fix is simple. Open the C:\intelFPGA\22.1std\nios2eds\nios2_command_shell.sh script file in a text editor (correct path based on your install directory, e.g. intelFPGA_lite), then scroll down to line 160.
Change:
if grep -q Microsoft /proc/version; then
to:
if grep -i -q Microsoft /proc/version; then
This will make the grep comparison case insensitive, allowing it to pick up the original "Microsoft", and also the lower case "microsoft" in the 5.15.153.1-microsoft-standard-WSL2 string.