Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi zHiO.o,
I had figured some of these steps out already, the community here is very good! There is a bit more to do with regards to step# 1; are the __devinit and __devexit macros no longer required? Also pci_restore_state(aclpci->pci_dev) function call no longer returned a result 0, as it returns void. A simple recoding later and aclpci_cmd.c was all set. I found out about step# 3 a little bit too late, but thankfully was able to realize what was going on and migrate the script-generated files from the /tmp/ folder. Your instruction is a life-saver to anyone possibly running into this scenario in the future. Thank you! Victor PS: Although the reprogram has been recompiled successfully and I can run aocl install without a hitch, I tried flashing using> aocl flash de5net_a7 blank.aocx where blank.aocx is a blank program supplied by Terasic (or Altera?) for me to run verification. I get aocl flash: Running flash from /opt/altera/14.0/hld/board/terasic/de5net/linux64/bin
Error: Currently only .bin files are accepted.
Please use the .bin from the original compiled project I think I'll figure it out, but really I'm at a loss as to what the error message means. I should be able to work it out once I understand the error. Should I start a new thread since this is a different issue? Edit: Whoops. Forgot to edit this post earlier to say that I quickly found out what was going on. It seems that the blank.aocx was compiled for an earlier version (13.1). Therefore flashing with it gave funny errors. I simply acquired a more uptodate BSP from Terasic's mail server. Refer to: http://www.alteraforum.com/forum/showthread.php?t=45720 And here is the link mentioned in post# 9 and also passed onto me from the support team at Terasic: http://mail.terasic.com.cn/~wyzhou/terasic.zip