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

can't open /proc/bus/pci/devices #247

Closed
damionx7 opened this issue Sep 1, 2020 · 13 comments
Closed

can't open /proc/bus/pci/devices #247

damionx7 opened this issue Sep 1, 2020 · 13 comments

Comments

@damionx7
Copy link

damionx7 commented Sep 1, 2020

Hey there guys, thanks for this amazing script. i have been getting this error cant open /proc/bus/pci/devices when i try to run anki. help me.

Screenshot_20200901-110418

@github-actions
Copy link

github-actions bot commented Sep 1, 2020

Thank you for contributing to make this project better😎 Keep up and follow to solve this issue.

@SDRausty
Copy link
Owner

SDRausty commented Sep 1, 2020

Can you cat /proc/bus/pci/devices? Analogously:

cat /proc/bus/pci/*
cat /proc/bus/*

When you find something that is like Is a directory, what is in there? What is it? Please share this information.

This issue termux/proot#97 @damionx7 appears to deal with an identical situation. You do not have access to the PCI bus on Android. Can you share what you are experiencing with your /proc/bus access?

@damionx7
Copy link
Author

damionx7 commented Sep 2, 2020

i am getting access denied.

Screenshot_20200902-061932

@SDRausty
Copy link
Owner

SDRausty commented Sep 2, 2020

Try cat /proc/bus/*; Notice there are no cds in the example.

@SDRausty
Copy link
Owner

SDRausty commented Sep 2, 2020

Thank you for sharing @damionx7. This issue #103 helped in getting htop up and running on Android 8. We could not have got htop going if it were not for help from termux/proot#32. Possibly we can make similar progress with this issue...

@damionx7
Copy link
Author

damionx7 commented Sep 2, 2020

Screenshot_20200902-075017

@damionx7
Copy link
Author

damionx7 commented Sep 2, 2020

it fixes the issue, after create a fake bind to pci/devices

@SDRausty
Copy link
Owner

SDRausty commented Sep 2, 2020

it fixes the issue

Great news! Can you share the snippet of code please? This can probably be incorperated into function _PR00TSTRING_ and automated for many users.

@damionx7
Copy link
Author

damionx7 commented Sep 2, 2020

i created an empty file fbindprocpcidevices in ~/arch/var/binds/ and added the command to /usr/bin/startarch -b /data/data/com.termux/files/home/arch/var/binds/fbindprocpcidevices:/proc/bus/pci/devices.
after reading your comment, creating a .prs file would have been better.

@SDRausty
Copy link
Owner

SDRausty commented Sep 3, 2020

I have looked at our work here, and I put in a little more effort. @damionx7 does this commit ad78d9e automate the issue we are working on? Please backup your work before refreshing as the same file names are used.

Command setupTermuxArch re:

[re [customdir]] Refresh the Arch Linux in Termux PRoot scripts created by TermuxArch. Useful for refreshing the root user's home directory and user home directories and the TermuxArch generated scripts to their newest version.

@damionx7
Copy link
Author

damionx7 commented Sep 3, 2020

yes indeed

@damionx7 damionx7 closed this as completed Sep 3, 2020
@SDRausty
Copy link
Owner

SDRausty commented Sep 3, 2020

Thank you 🍀

@SHINA774
Copy link

cat: /proc/bus/pci/devices: Permission denied

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

3 participants