- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I'd like to run sof2flash from command line in a Cygwin Shell.
In my script, I have # !/bin/sh -x export SOPC_KIT_NIOS2='c:\win\altera\72\nios2eds' WRK_DIR="/c/home/wrk/fpga/nios" SOF_FILE='C:/Home/wrk/fpga/Source/top.sof' SOF_FLASH='C:/images/top.flash' # Creating .flash file for the FPGA configuration "$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input=$SOF_FILE --output=$SOF_FLASH # ------ End of script ------------------ When I run this script, I get [bin$:501] update-nios.sh + export 'SOPC_KIT_NIOS2=c:\win\altera\72\nios2eds' + SOPC_KIT_NIOS2='c:\win\altera\72\nios2eds' + WRK_DIR=/c/home/wrk/fpga/nios + SOF_FILE=C:/Home/wrk/fpga/Source/top.sof + SOF_FLASH=C:/images/top.flash + 'c:\win\altera\72\nios2eds/bin/sof2flash' --epcs --input=C:/Home/wrk/fpga/Source/top.sof --output=C:/gac2500/images/top.flash : No such file or directoryin/sof2flash: line 2: c:\win\altera\72\nios2eds/bin/sh_jar.sh Looks like it cannot find sh_jar.sh, but [bin$:502] pwd /c/win/altera/72/nios2eds/bin [bin$:504] ls sh* sh_jar.sh sh_launch.pm sh_pl.sh [bin$:505] I am trying to run in a normal Cygwin Shell (Not Altera's Cygwin) but that should not matter. I did run dos2unix on the .sh files.コピーされたリンク
2 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Cygwin has a special way of handling paths. Try to use /cygdrive/c/ instead of C:\ in your paths. Replace also all \'s by /'s
