-
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
Accessing the AXI-Lite via the fpga_pci_attach call... #640
Comments
Hi, Thank you for reaching out. I want to let you know that we're currently investigating this issue. We will keep you updated. |
I am also having an almost identical problem, where I can't run peek/poke command without newgrp fpgauser
sudo usermod -a -G fpgauser $(whoami)
export AWS_FPGA_ALLOW_NON_ROOT=y
export AWS_FPGA_SDK_OTHERS=y
cd $AWS_FPGA_REPO_DIR && source sdk_setup.sh
cd ~/my_project_folder && make all
./my_project_executable and below is the error message when I set CONFIG_LOGLEVEL to 4:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am able to use the fpga_pci.h and fpga_mgmt.h libraries in my code just fine when I run the code as "sudo".
When I run it as a user, I get an error...
It is a simple AXI-LITE peek/poke command. Here is the C code that offends...
And the error when run as a non-root user....
I followed these instructions to run as a non-root user...
[(https://github.com/aws/aws-fpga/blob/master/sdk/README.md#using-fpga-as-non-root-user)]
[ec2-user@ip-10-20-7-111 peekPoke]$ env|grep AWS_FPGA
AWS_FPGA_SDK_GROUP=fpgauser
AWS_FPGA_ALLOW_NON_ROOT=y
AWS_FPGA_REPO_DIR=/home/ec2-user/aws-fpga
BASH_FUNC_allow_non_root()=() { [ ! -z ${AWS_FPGA_ALLOW_NON_ROOT} ]
BASH_FUNC_allow_others()=() { [ ! -z ${AWS_FPGA_SDK_OTHERS} ]
These allow me to run the "fpga-load-local-image" as a user, as well as the "fpga-set-virtual-dip-switch" command just fine. However, the code that I wrote still throw that error.
The text was updated successfully, but these errors were encountered: