Hi eapenabrm,
Thank you for the reply! Sorry for having the following newbie questions :p:
- Is there any other way to check if the FPGA has been programmed successfully besides seeing the "Programmer" in Quartus Prime shows "100% (successful)" in the progress bar?
- When you said "check if the board has been enumerated properly in the PC", I am assuming you mean I should execute
lscpi | grep Altera
and see if the Altera device appears, right? If so, when the FPGA is not programmed with the reference design, the above command shows nothing. On the other hand, if the FPGA is programmed, I can see the following output 01:00.0 Non-VGA unclassified device: Altera Corporation Device e003 (rev ff)
Does this mean that it is enumerated? - May I ask how to check if the device ID matches with the one in the board? Is the "e003" in the above output the device ID the OS sees? Then how should I check whether the IP programmed on board has the same device ID?
- Using lsmod, I can see the following
(in the cases where FPGA is programmed, lspci shows the Altera device, but /dev/altera_dma does not exist)
Module Size Used by
altera_dma 20480 0
or
(in the case where FPGA is programmed, lspci shows the Altera device, and /dev/altera_dma exist)
Module Size Used by
altera_dma 20480 2
some other clarification about how i got the fpga programmed I am using the "two-machine" method, as stated on page 13 in this document (
https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/an/an456.pdf), to program the FPGA. However, there was only once I could get the "./install" and the "./run" of the ref design software to see the device /dev/altera_dma. In all the other attempts, I never be able to make /dev/altera_dma to show up again (meaning I will see "chmod: cannot access /dev/altera_dma: No such file or directory" when executing "sudo ./install" of the ref design software)
dmesg shows the following relevant messages, but I am not sure what went wrong:
altera_dma: module verification failed: signature and/or required key missing - tainting kernel Altera DMA: altera_dma_init(), Nov 7 2017 10:46:02
Altera DMA 0000:01:00.0: Refused to change power state, currently in D3
Altera DMA 0000:01:00.0: can't enable device: BAR 0 not claimed
Altera DMA 0000:01:00.0: pci_enable_device() failed
Altera DMA 0000:01:00.0: goto err_enable
Altera DMA 0000:01:00.0: goto err_initchrdev
Altera DMA 0000:01:00.0: goto err_bk_alloc
Altera DMA: probe of 0000:01:00.0 failed with error -22
Altera DMA: altera_dma_init(), Nov 7 2017 10:46:05
Altera DMA 0000:01:00.0: Refused to change power state, currently in D3
Altera DMA 0000:01:00.0: can't enable device: BAR 0 not claimed
Altera DMA 0000:01:00.0: pci_enable_device() failed
Altera DMA 0000:01:00.0: goto err_enable
Altera DMA 0000:01:00.0: goto err_initchrdev
Altera DMA 0000:01:00.0: goto err_bk_alloc
Altera DMA: probe of 0000:01:00.0 failed with error -22
Any suggestion is much appreciated!!!!