-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udev rule not running after loading fpga image #560
Comments
Thanks for reporting this.
Does the image loaded specify a device ID as per https://github.com/aws/aws-fpga/blob/4750aacb4dac9d464b099b27e4337220cf0b0713/hdk/cl/examples/cl_dram_dma_hlx/README.md#create-example-design-gui ?
For example, the cl_dram_dma example is configured to use If so, what device_id is specified. |
Yes, |
I think I understand the issue, so let me rephrase. When following the steps in the HOW TO, setting a device ID of Therefore
|
Notes:
|
Hello @shamelesscookie , I have been trying to reproduce the issue you described, along with the fix in PR #561 .
Are you using any environment variables that are not listed in your reproduction steps? As a note, I have been using the public cl_dram_dma AGFI ( |
Hello! Is there anything that AWS can help to resolve this issue? If the issue is resolved, we're curious to know the resolution. Thank you! |
Summary
The udev rule created by
add_udev_rules.sh
does not match the device ID used after loading an fpga image.The rule, which is deployed to
/etc/udev/rules.d/9999-presistent-fpga.rules
, only matches on:but it needs to also match on:
Reproduction steps
/sys/devices/pci0000:00/0000:00:1d.0/resource*
are 444Also note the device ID after loading the image:
Fix
Add the following two lines to
/etc/udev/rules.d/9999-presistent-fpga.rules
:After loading an image, permissions are 666:
The text was updated successfully, but these errors were encountered: