GithubHelp home page GithubHelp logo

Comments (5)

fish4terrisa-MSDSM avatar fish4terrisa-MSDSM commented on May 24, 2024

Currently I just tried

$ proot -q box64 ./busybox -r .  

And the output is

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on Cortex-A55 Cortex-A76 with 8 Cores                                                                        
Params database has 25 entries                                                                    
Warning, unrecognized option '-U'                                                                 
Box64 with Dynarec v0.2.4  built on Sep 25 2023 07:41:16                                          
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/                        
Using default BOX64_PATH: ./:bin/                                                                 
Counted 65 Env var                                                                                
Looking for LD_LIBRARY_PATH                                                                       
argv[1]="-0"                                                                                      
argv[2]="./busybox"                                                                             
argv[3]="/home/fish4terrisa/busybox"                                                
argv[4]="-r"                                                                                      
argv[5]="."                                                                                       
Error: file is not found (check BOX64_PATH)

The busybox binary is statically linked,

$ file ./busybox                                                                             
../busybox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped

from box64.

fish4terrisa-MSDSM avatar fish4terrisa-MSDSM commented on May 24, 2024

I have tried to get the args passed to qemu-user, and got

$ proot -q '/usr/bin/echo' ./busybox -r .                   
-U LD_LIBRARY_PATH -0 ./busybox /home/fish4terrisa/busybox -r .

Maybe this will help.

from box64.

ptitSeb avatar ptitSeb commented on May 24, 2024

box64 is not compatible with staticaly linked program. So that busybox will not launch with box64.

from box64.

fish4terrisa-MSDSM avatar fish4terrisa-MSDSM commented on May 24, 2024

I just changed the busybox binary and it still didn`t work.I think it`s because that currently box64 is not compatible to be use as qemu-user for proot.

$ proot -q box64 ./busybox -r .                                                               
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on Cortex-A55 Cortex-A76 with 8 Cores                                                                        
Params database has 25 entries                                                                    
Warning, unrecognized option '-U'                                                                 
Box64 with Dynarec v0.2.4  built on Sep 25 2023 07:41:16                                          
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/                        
Using default BOX64_PATH: ./:bin/                                                                 
Counted 65 Env var                                                                                
Looking for LD_LIBRARY_PATH                                                                       
argv[1]="-0"                                                                                      
argv[2]="./busybox"                                                                               
ar
/gv[3]="/home/fish4terrisa/busybox"                                                
argv[4]="-r"                                                                                      
argv[5]="."                                                                                       
Error: file is not found (check BOX64_PATH)

The busybox binary is

$ file busybox                                                                               
busybox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=a2d7a70ff39c56da43c72b8701d638c6279e956c, for GNU/Linux 3.2.0, stripped

from box64.

fish4terrisa-MSDSM avatar fish4terrisa-MSDSM commented on May 24, 2024

However, when run box64 busybox directly, it will work.

from box64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.