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

> I launched file system, but it can not boot. #109

Open
abbud666 opened this issue Jun 4, 2024 · 1 comment
Open

> I launched file system, but it can not boot. #109

abbud666 opened this issue Jun 4, 2024 · 1 comment

Comments

@abbud666
Copy link

abbud666 commented Jun 4, 2024

          > I launched file system, but it can not boot.

What are the outputs?

I need to modify boot script, please give me any suggestions ?

First, be sure that the new proot binary is marked as executable since
the "x" bit doesn't survive HTTP download.

Then, because Andoid does not provide a world-writable /tmp, you have
to tell PRoot to use a pre-extracted loader:

export PROOT_LOADER=path/to/proot-arm-loader

where proot-arm-loader can be extracted from the proot-arm binary this
way:

bash$ dd if=proot-arm of=proot-arm-loader bs=1 count=$((16#00008638)) skip=$((16#000b4dfc-16#000ae108+16#09e108))

These constants were obtained using sorcery^W readelf:

bash$ readelf -sW proot-arm | egrep '(loader|data_start)'
   504: 000be2c8     4 OBJECT  LOCAL  DEFAULT   22 loader_path.8296
  3869: 000b4dfc     0 NOTYPE  GLOBAL DEFAULT   21 _binary_loader_exe_start
  4483: 000bd434     0 NOTYPE  GLOBAL DEFAULT   21 _binary_loader_exe_end
  4553: 00008638     0 NOTYPE  GLOBAL DEFAULT  ABS _binary_loader_exe_size
  4738: 000ae108     0 NOTYPE  WEAK   DEFAULT   21 data_start
  5079: 000ae108     0 NOTYPE  GLOBAL DEFAULT   21 __data_start

Also, keep in mind that GNURoot provides a extended version of PRoot
that emulates hard links, so even if it seems to work with a "vanilla"
version, you migth run into troubles when installing some packages:

https://groups.google.com/d/msg/proot_me/SBemgRlXg2Y/AEc8sE82-MsJ

Regards,
Cédric.

PS: @pelya already updated PRoot in Debian noroot (pelya/debian-noroot@521822d), however I don't know if it is released yet.

Originally posted by @cedric-vincent in #33 (comment)

@username-is-not
Copy link

username-is-not commented Jul 22, 2024

Hey, this project has been dormant /dead for quite some time, yea?..

EDIT: Plus, this looks like all proot things for non-rooted devices; so not very interesting, except running on TVs, or something like that? :o aanyway 🙂

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

2 participants