Stratix10 Hello_world hanging
Hi,
I followed all the steps specified by Terasic for the device 1SG280HU2F50E2V).
Flashed the top.sdf in user region and is successfully identified by aocl diagnose.
but when I try to do
aocl program acl0 hello_worl.aocx, It gets stuck while programming.
I checked the kernel module code and its getting stuck in while loop
In aclpci_pr.c
// Wait for PR complete
status = ioread32(aclpci->bar[ACL_PRCONTROLLER_BAR]+ACL_PRCONTROLLER_OFFSET+ALT_PR_CSR_OFST);
ACL_DEBUG (KERN_DEBUG "ALT_PR_CSR_OFST status is 0x%08X", (int) status);
while(status != ALT_PR_CSR_STATUS_PR_SUCCESS)
{
msleep(100);
status = ioread32(aclpci->bar[ACL_PRCONTROLLER_BAR]+ACL_PRCONTROLLER_OFFSET+ALT_PR_CSR_OFST);
ACL_DEBUG (KERN_DEBUG "ALT_PR_CSR_OFST status is 0x%08X", (int) status);
};
I checked the dmesg It is showing this error code.
dmesg output
[ 219.116119] aclpci_pr (185):
[ 219.116123] ALT_PR_CSR_OFST status is 0x00000004
[ 219.116127] aclpci_pr (190):
[ 219.116129] Size of PR RBF is 0x00C5D000
[ 244.460182] aclpci_pr (208):
[ 244.460185] Number of 4K chunks written: 3165
[ 244.460188] aclpci_pr (209):
[ 244.460190] Number of bytes in PR bitstream remaining: 0
[ 244.460196] aclpci_pr (235):
[ 244.460198] ALT_PR_CSR_OFST status is 0x00000008
[ 244.568183] aclpci_pr (240):
[ 244.568187] ALT_PR_CSR_OFST status is 0x00000008
[ 244.676183] aclpci_pr (240):
[ 244.676188] ALT_PR_CSR_OFST status is 0x00000008
I removed while loop and recompiled kernel module so that module doesn't hang but I don't understand what is the problem here while programming the PR.
Thanks,
The BSP was unsupported for the device.
And the licensing issue was solved after following this
https://www.intel.com/content/www/en/zh/programmable/support/support-resources/knowledge-base/tools/2019/error-119013---current-license-file-does-not-support-the--device.html?wapkw=error+%28119013%29%3a.
Thanks,