timvideos / litex-buildenv

An environment for building LiteX based FPGA designs. Makes it easy to get everything you need!
BSD 2-Clause "Simplified" License
214 stars 79 forks source link

on Windows WSL setting up openocd scripts #175

Open king-wong opened 5 years ago

king-wong commented 5 years ago

WSL denies permission to /mnt/c/Program\ Files/OpenOCD

I propose a workaround of unzipping OpenOCD to c:OpenOCD instead of c:/Program files.

The bash script and Windows Environmental PATH needs to be changed as well.

CarlFK commented 5 years ago

details:

(LX P=arty C=mor1kx) toucan@DESKTOP-5N3MAPO:~/litex-buildenv$ sudo cp -a build/conda/share/openocd/scripts/* /mnt/c/Program\ Files/OpenOCD/share/openocd/scripts/ cp: cannot create regular file '/mnt/c/Program Files/OpenOCD/share/openocd/scripts/bitsbytes.tcl': Permission denied​ cp: cannot create regular file '/mnt/c/Program Files/OpenOCD/share/openocd/scripts/board/redbee.cfg': Permission denied