Forum Discussion
dos2unix fails to change permissions when creating project from template
- 5 years ago
I also ran into this problem. I did some debugging and the problem is that the dos2unix command tries to change the UNIX filesystem permissions of the temporary file it creates; this fails for me in WSL.
You need to tell WSL that it should allow these kinds of operations on the filesystem. You can do this as follows:
- Start your Ubuntu 18.04 LTS prompt
- Create/edit a file '/etc/wsl.conf'
- Add the following to '/etc/wsl.conf':
[automount] options = "metadata" - Save the file.
- Reboot your computer.
I have no idea why this works for some people but not others, but this worked for me and fixed the dos2unix permissions error; at which points I was able to create the BSP and everything else in Nios II EDS worked fine.
Can you please provide how you did it? Is it in the command line? I can't seem to find anything
@NickWilliams solution worked for me. I followed the instructions on
https://ajeet.dev/how-to-use-windows-subsystem-for-linux/
to create the wsl.conf file. The exact steps I took were:
From within Ubuntu 18.04 LTS (which I already had installed for Windows Subsystem for Linux) I executed the command
explorer.exe .
In the explorer window that opened I went up 2 directories to Ubuntu-18.04
Next I opened the etc directory and created a new file titled "wsl.conf"
Next I opened this with a text editor and edited it to say
[automount]
options = "metadata"
as per @NickWilliams suggestion.
I saved this file, then restarted my computer.
After restart I reopened my project in quartus, used the tools menu to open "Nios II Software Build Tools for Eclipse" Then following the instructions in the lab tutorial Eclipse was finally able to create my project without errors.
- DawsariM4 years ago
New Contributor
Hi @juschri,
The link you provided to create the file lead me to spam webpage (I think).
Could you explain more how exactly you entered the directory "/etc/" ?
this one >> "In the explorer window that opened I went up 2 directories to Ubuntu-18.04".
Thank you,
- juschri4 years ago
New Contributor
Hello,
I don't know why that link doesn't work anymore. I don't know how to find the page I referenced anymore.
This link explains how to do it though.
https://www.howtogeek.com/426749/how-to-access-your-linux-wsl-files-in-windows-10/
Inside WSL if you execute the command "explorer.exe ." it will open explorer in the current directory which is your WSL directory. Make sure you don't leave out the space and the period.
From there all you have to do is use the up arrow in the top left corner of the explorer window to reach the root directory and then you can enter the /etc directory.
Once there if you right click in the window you can create a new file.
name it "wsl.conf"
and follow the rest of the instructions above.