linuxdeploy-cli icon indicating copy to clipboard operation
linuxdeploy-cli copied to clipboard

add debugfs support,somebody need it

Open lslx opened this issue 7 years ago • 12 comments
trafficstars

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

lslx avatar May 23 '18 07:05 lslx

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"

meefik avatar May 23 '18 08:05 meefik

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?

ghost avatar May 23 '18 09:05 ghost

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.

meefik avatar May 23 '18 09:05 meefik

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!

ghost avatar May 23 '18 09:05 ghost

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.

meefik avatar May 23 '18 09:05 meefik

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

ghost avatar May 23 '18 09:05 ghost

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.

meefik avatar May 23 '18 09:05 meefik

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

ghost avatar May 23 '18 10:05 ghost

You must be enable CONFIG_BINFMT_MISC as module in the config:

CONFIG_BINFMT_MISC=m

And build the module by the guide.

meefik avatar May 23 '18 10:05 meefik

@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

ghost avatar May 23 '18 11:05 ghost