create-this-bsp - mkdir: cannot create directory: No such file or directory
Hey,
I'm trying to get the Nios® II Hardware Development Design Example running for hours now, but I'm still running into errors while trying to create a project in Nios II EDS an Windows 10. I fixed a lot of errors by using the advice from this forum, but now I'm finaly stuck and I realy hope that someone can help me.
When I create a project via "File -> New -> Nios II Application and BSP from Template" I get the following error:
Executing: wsl dos2unix create-this-bsp; ./create-this-bsp --cpu-name cpu --no-make (C:\FPGA_Designs\SDRAM_Test0\software\count_binary_bsp)
dos2unix: converting file create-this-bsp to Unix format...
create-this-bsp: Running "nios2-bsp hal . ../../first_nios2_system.sopcinfo --cpu-name cpu"
wslpath: .
wslpath: .
mkdir: cannot create directory ‘’: No such file or directory
wslpath: .
nios2-bsp: Can't mkdir -p
nios2-bsp hal . ../../first_nios2_system.sopcinfo --cpu-name cpu failed
please find attached a screenshot
Here some additional information, I hope that something is relevant:
- the project folder is C:\FPGA_Designs\SDRAM_Test0\software, which is accessible as "/mnt/c/FPGA_Designs\SDRAM_Test0\software" within ubuntu
- installed software versions:
Quartus Prime Version 22.1sts.0 Build 915 10/25/2022 SC Lite Edition
Eclipse Mars.2 Release 4.5.2
Nios II EDS V 22.1.0.20221026-1422
> wsl -v -l
WSL-Version: 1.0.3.0
Kernelversion: 5.15.79.1
WSLg-Version: 1.0.47
MSRDC-Version: 1.2.3575
Direct3D-Version: 1.606.4
DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows Version: 10.0.19045.2486
> wsl -l -v
NAME STATE VERSION
* Ubuntu-18.04 Running 1
Thank you in advance!
Best regards
Hi to all.
"wslpath" command behaviour has been changed.So workaround is to patch a "intelFPGA\22.1std\nios2eds\sdk2\bin\nios2-bsp" script:
adjust_path() {
if [ "${_IS_WSL}" = "1" ] && [[ ! $1 =~ ^\/mnt\/* ]]; then
- echo "$(wslpath -u "$1")" #Line 44
+ echo "$(wslpath -u -a "$1")"
else
echo "$1"
fi