Skip to content
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

non-root access? #10

Open
hmaarrfk opened this issue May 14, 2019 · 10 comments
Open

non-root access? #10

hmaarrfk opened this issue May 14, 2019 · 10 comments

Comments

@hmaarrfk
Copy link

Are you accepting PRs that would enable non-root access to the device driver?

Seems like we should be able to setup a rule with udev to assign the devices to belong to a certain group.

@kewlcreatures
Copy link

is this for QDMA?

@hmaarrfk
Copy link
Author

Yes

@kewlcreatures
Copy link

So my application starts as a non root user and I faced the same issue of not being able to access the /Dev/QDMa queues. I changed the access to chmod 777 for those /Dev/QDMa and it works for me.

@hmaarrfk
Copy link
Author

doing chmod is fine if you, the developer are using your own machine. but it is quite annoying to tell others to do it.

@kewlcreatures
Copy link

Yes I agree. Its a very good suggestion to allow non-root access

@dfreese
Copy link

dfreese commented Jul 23, 2020

It would be great to add it to the repository, since it appears that there used to be something like that (see 8d603ef).

What I ended up going with was creating a "/etc/udev/rules.d/60-xdma.rules" which was just:

SUBSYSTEM=="xdma" GROUP="xdma"

@sujathabanoth-xlnx
Copy link
Collaborator

Was the above suggesions worked?

@dfreese
Copy link

dfreese commented Jan 29, 2021

Was the above suggesions worked?

We've used the solution I listed on my team without issue for the past several months.

@hmaarrfk
Copy link
Author

@dfreese can you comfirm if you are using this line of code for qdma or xdma?

@dfreese
Copy link

dfreese commented Jan 30, 2021

@dfreese can you comfirm if you are using this line of code for qdma or xdma?

xdma, so qdma may be different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants