Skip to content

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

@abbud666

Description

@abbud666
          > 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions