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

add debugfs support,somebody need it #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lslx
Copy link

@lslx lslx commented May 23, 2018

I install linux deploy on my nexus 5, and install ubuntu on it. I find a way to run command which use bionic
in ubuntu bash by do these step:

  1. mount system and data partion, just like this:
    /system:/system
    /data:/data
  2. use prefix environment variable to run:
    PATH=/system/bin:$PATH ANDROID_DATA=/data ANDROID_ROOT=/system am
    every thing is ok, but i find am will access "/sys/kernel/debug/tracing/trace_marker" internal, so, i add debugfs support , maybe somebody need it

@meefik
Copy link
Owner

meefik commented May 23, 2018

You can call "am" with "unchroot" command:

export BOOTCLASSPATH=...
unchoot am

BOOTCLASSPATH from Android env.

This does not fit?

Example for notifications from source:

unchroot am broadcast -a ru.meefik.linuxdeploy.BROADCAST_ACTION --user 0 --es "info" "Hello World!"
unchroot am broadcast -a ru.meefik.linuxdeploy.BROADCAST_ACTION --user 0 --es "alert" "Hello World!"
unchroot am broadcast -a ru.meefik.linuxdeploy.BROADCAST_ACTION --user 0 --esn "hide"

@ghost
Copy link

ghost commented May 23, 2018

Hi meefik!
What's the size of Ubuntu 18.04 Linux deploy?
Is it possible to download it externally?
And if I use sdcard than how much storage it'll take my memory card is 16GB and 8 GB free and it'll corrupt or delete all files on my memory card when setup ?
Or make my memory card slow?

@meefik
Copy link
Owner

meefik commented May 23, 2018

What's the size of Ubuntu 18.04 Linux deploy?

Base system ~ 200 MB.

Can I download it externally?

You can deploy it from official repository by "deploy" command or Install from app. Or use repository in LD app.

And if I use sdcard than how much storage it'll take my memory card is 16GB and 8 GB free and it'll corrupt or delete all files on my memory card when setup ?

Use installation type - "file". LD store all container data in one IMG file and other files on sdcard will not be changed.

@ghost
Copy link

ghost commented May 23, 2018

Is it possible to run a Windows x86 application on it through wine?
And after extraction what's the size?
You haven't answered!
That this'll make my sdcard slow of read/write speed?
Which one you consider to install on my Phone storage 64GB and 55GB free and sdcard 8GB ?
This's not going to harm my read/write speed?
Sorry , newbie here want to run x86 app through wine in LD!

@meefik
Copy link
Owner

meefik commented May 23, 2018

Is it possible to run a Windows x86 application on it through wine?

Yes, but only on x86 device. Or on ARM with architecture emulation (binfmt_misc support is required).

And after extraction what's the size?

Base system Ubuntu ~ 300-500 MB after install.

That this'll make my sdcard slow of read/write speed?
This's not going to harm my read/write speed?

No, but depends on the applications you are running in LD.

@ghost
Copy link

ghost commented May 23, 2018

How to get support for binfmt_misc ?
I ahve Redmi Note 4 Mido 4/64GB

@meefik
Copy link
Owner

meefik commented May 23, 2018

How to get support for binfmt_misc ?

Check support in App: Menu -> Status -> Support binfmt_misc
From CLI: linuxdeploy status -> Support binfmt_misc
From shell: test -d /proc/sys/fs/binfmt_misc && echo yes || echo no

If your Linux kernel is not support binfmt_misc, then you can be build custom kernel or kernel module for your device. Unfortunately, you need to have the kernel sources for your device.

@ghost
Copy link

ghost commented May 23, 2018

Meefik dude!

Here kernel sources and config I'm currently on!
Can you describe what to do now?
https://github.com/Adesh15/android_kernel_xiaomi_msm8953/blob/treble/arch/arm64/configs/mido_defconfig

@meefik
Copy link
Owner

meefik commented May 23, 2018

You must be enable CONFIG_BINFMT_MISC as module in the config:

CONFIG_BINFMT_MISC=m

And build the module by the guide.

@ghost
Copy link

ghost commented May 23, 2018

@meefik I'm going to run ida pro in LD how much space it's going to take?
And direct link to 18.04 LTS image please

@meefik meefik force-pushed the master branch 2 times, most recently from d8dab50 to 9b9146b Compare August 23, 2018 09:08
@meefik meefik force-pushed the master branch 9 times, most recently from 85e41b6 to 387a28d Compare August 12, 2019 13:25
@meefik meefik force-pushed the master branch 2 times, most recently from 1b30072 to 95f7f2c Compare November 5, 2019 20:29
@meefik meefik force-pushed the master branch 3 times, most recently from 7aff94d to cc09794 Compare January 3, 2020 19:40
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

Successfully merging this pull request may close these issues.

2 participants