问题1:安装QUARTSII后报FAST_CWD错误
1 [main] sh 13224 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to
the public mailing list cygwin@cygwin.com
[BSP clean complete]
解决办法:在https://cygwin.com/站点下载对应版本的CYGWIN软件(13.1以下可选X86与X64,以上只需要安装X64)安装到QUARTUSII的安装目录下如:D:\WorkTools\Altera\Quartus II\13.0\quartus\bin\cygwin,安装时不需要选取任何的工具包,只要直接安装即可
============================================================
问题2:构建工程报Makefile 拒绝访问
Shell下同样报错
root@3770K /cygdrive/e/Work/Bozhi/NIOS/VHDLStudy/hello/software/cde
# chmod 777 . -R
root@3770K /cygdrive/e/Work/Bozhi/NIOS/VHDLStudy/hello/software/cde
# rm Makefile
root@3770K /cygdrive/e/Work/Bozhi/NIOS/VHDLStudy/hello/software/cde
# sh create-this-app
create-this-app: Running "nios2-app-generate-makefile --bsp-dir ../cde_bsp --set QUARTUS_PROJECT_DIR=../../ --elf-name cde.elf --set OBJDUMP_INCLUDE_SOURCE 1 --src-files hello_world.c"
INFO: nios2-app-generate-makefile --bsp-dir ../cde_bsp --set QUARTUS_PROJECT_DIR ../../ --elf-name cde.elf --set OBJDUMP_INCLUDE_SOURCE 1 --src-files hello_world.c
INFO: Generating application makefile
INFO: Generated file "E:\Work\Bozhi\NIOS\VHDLStudy\hello\software\cde\Makefile"
INFO: Application makefile generated
create-this-app: Running "make"
make: makefile: Permission denied
make: *** No targets. Stop.
make failed
解决办法:用文本工具打下cygwin/etc/fstab, 修改文件内容为:
# For a description of the file format, see the Users Guide
# http://cygwin.com/cygwin-ug-net/using.html#mount-table
# This is default anyway:
# none /cygdrive cygdrive binary,posix=0,user 0 0
none /cygdrive cygdrive binary,noacl,posix=0,user 0 0
原因为生成的文件夹文件等用户均为NULL SID, 无论怎么用chmod改变权限都不行。
参考:https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows
============================================================
问题3:cygwin如何使用root帐户
解决办法:
Step1: 更新passwd文件:
mkpasswd -l > /etc/passwd
Step2: 使用文本工具打开cygwin/etc/passwd文件:
将文件内如下内容
Administrator:*:12328:12356:U-3770K\Administrator,S-1-5-21-208746215-1690785843-753111617-500:/home/Administrator:/bin/bash
修改为:root:*:0:0:U-3770K\root,S-1-5-21-208746215-1690785843-753111617-500:/home/root:/bin/bash
Step3: 创建用户根目录:
root@3770K /cygdrive/d/WorkTools/Altera/Quartus II/13.0
# mkdir -p /home/root/
============================================================
问题4: 无法下载ELF文件
问题5: SYSID不一致
原因为复位信号,时钟信号输入不正确,onchip ram配置不正确等原因。
除https://www.techbulo.com/1957.html介绍的原因外
Connected system ID hash not found on target at expected base address
2016年07月27日 ⁄ FPGA开发 ⁄ 共 707字 ⁄ 字号 小 中 大 ⁄ Connected system ID hash not found on target at expected base address已关闭评论 ⁄ 阅读 1,674 次
最近有个小项目使用到FPGA,前几天突然程序下载不进去了,一直报错“”Connected system ID hash not found on target at expected base address“”,很是郁闷,之前用着好好的。
如果在“Run Configurations”中忽略ID检测继续RUN,基本上会弹出如下对话框:
在网上搜索解决方法,一般有如下可能:
1) unused pin没有设置,可能会收到外部信号的干扰;设置未用引脚为As input tri-stated with weak pull-up.
2) 系统时钟信号没有约束,或者SDRAM等存储设备的时钟没有配置正确;
3) 系统复位信号没有连接外部复位开关;
4) 可能某些PIN分配了错误管脚;逐一检查设计PIN的分配。
5) SOPC系统中没有添加system ID组件。
但是按照之上的步骤检查也没查出问题,今天测试之前好用的程序发现之前的程序能够烧进去,也能在线运行,我了个乖乖,这两个版本的QSYS在我的印象里是一模一样的的啊,这就奇怪了,难道我不小心修改了里面的东西?时间紧迫,先用之前的代码吧,有时间在查原因。
虽然我没有用上边5个步骤检查出问题,如果你也碰到ID的问题,不妨试试上边的方法,很多人通过上边的方法解决了问题。
外,删除*.sof, *.pof有与*.qsys同名的文件夹,重新保存并编译qsys及quartus文件,再下载sof文件后,nios2内create bsp->buliding project后,重新RUN,问题或可解决。原因为:前次修改的文件缓存在磁盘内,造成下载的芯片信息不对,因此出现不能下载的问题。