SDRausty / TermuxArch

You can use setupTermuxArch.bash 📲 to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
https://sdrausty.github.io/TermuxArch/
Other
1.42k stars 162 forks source link

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

Closed damionx7 closed 4 years ago

damionx7 commented 4 years ago

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[bot] commented 4 years ago

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

SDRausty commented 4 years ago

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 https://github.com/termux/proot/issues/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 commented 4 years ago

i am getting access denied.

Screenshot_20200902-061932

SDRausty commented 4 years ago

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

SDRausty commented 4 years ago

Thank you for sharing @damionx7. This issue https://github.com/sdrausty/TermuxArch/issues/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 https://github.com/termux/proot/issues/32. Possibly we can make similar progress with this issue...

damionx7 commented 4 years ago

Screenshot_20200902-075017

damionx7 commented 4 years ago

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

SDRausty commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

I have looked at our work here, and I put in a little more effort. @damionx7 does this commit https://github.com/SDRausty/TermuxArch/commit/ad78d9e59f1da0b035b5ccff8c87dbb39d32a233 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 commented 4 years ago

yes indeed

SDRausty commented 4 years ago

Thank you 🍀

SHINA774 commented 8 months ago

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