meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.25k stars 680 forks source link

issues with Atom based tablet #634

Open hetzbh opened 8 years ago

hetzbh commented 8 years ago

Hi, I'm trying to use Linux deploy to install any distribution for testing. For now I'm just testing installing through RAMDISK (although I tried to install to a file, directory - same results). This tablet is one of those "dual boot" devices. It has Android 5.1, fully rooted with the latest Super SU and Meefik's BusyBox.

Upon installing any distribution, it downloads the files needed, extracts them but then...

`I: Extracting zlib1g...

core/emulator : do_install && do_configure

:: Starting core/emulator ... done

core/mnt : do_install && do_configure

:: Configuring core/mnt ... /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: rm: not found /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: grep: not found eval: line 1: sed: not found

core/net : do_install && do_configure

:: Configuring core/net ... /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: which: not found /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: eval: grep: not found line 1: awk: not found /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: chroot: not found tmp-mksh: [5]: printf: No such file or directory `

After that, everything on the Android is dead - no shell, cannot run any app, the only thing you can do is .. reboot.

The status on this system shows:

`Device: i15-T Android: 5.1 Architecture: armv7l Kernel: 3.14.37-x86_64-L1-R429 Memory: 2380/3857 MB Swap: 99/99 MB SELinux: yes Loop devices: yes Support binfmt_misc: yes Supported FS: ext2 ext3 ext4 fuseblk msdos squashfs vfat Installed system: unknown Status of components: Mounted parts: ...nothing mounted Available mount points:

Any suggestions?

meefik commented 8 years ago

Install BusyBox in /system/xbin. Try to change "Settings -> PATH variable" to /system/xbin and run "Settings - > Update ENV". Also set an image size up to 2000 MB (busybox mke2fs is not support more 2 GB).

hetzbh commented 8 years ago

when you install Busybox - just copy the busybox binary from /data/data/ru.meefik.linuxdeploy/bin/busybox to /system/xbin ? I did that and now somehow when I try to run anything like /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy

I get: sh: /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy: /system/xbin/sh: Exec format error

hetzbh commented 8 years ago

Well, busybox was already in /system/xbin (your version - latest) so I edited the PATH variable to /system/xbin and updated the ENV. Still - same problem.

meefik commented 8 years ago

Use BusyBox installer for install busybox binary in your system. Compatible BusyBox app: https://github.com/meefik/busybox/releases

hetzbh commented 8 years ago

I did. Same results. I made sure it's installing to /system/xbin and the version is the one you pointed me to Here is a link to a trace output. The problem starts at line 1385 approx. EDIT: Here is a short version without trace, if it helps.

meefik commented 8 years ago

Please give me output of this commands:

cat /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy
/data/data/ru.meefik.linuxdeploy/bin/linuxdeploy conf -x
/system/xbin/busybox
ls -l /system/xbin/sh
hetzbh commented 8 years ago

ok `# cat /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy

!/system/xbin/sh

PATH=/system/xbin:/data/data/ru.meefik.linuxdeploy/bin:$PATH ENV_DIR="/data/data/ru.meefik.linuxdeploy/env" TEMP_DIR="/data/data/ru.meefik.linuxdeploy/tmp" . "${ENV_DIR}/cli.sh"`

` # /system/xbin/busybox BusyBox v1.24.2-meefik (2016-08-08 15:47:05 MSK) multi-call binary. BusyBox is copyrighted by many authors between 1998-2015. Licensed under GPLv2. See source distribution for detailed copyright notices.

Usage: busybox [function [arguments]...] or: busybox --list[-full] or: busybox --install [-s] [DIR] or: function [arguments]...

    BusyBox is a multi-call binary that combines many common Unix
    utilities into a single executable.  Most people will create a
    link to busybox for each function they wish to use and BusyBox
    will act like whatever it was invoked as.

`

/data/data/ru.meefik.linuxdeploy/bin/linuxdeploy conf -x ARCH="amd64" DESKTOP="lxde" DISK_SIZE="0" DISTRIB="ubuntu" DNS="" FB_ARGS="-dpi 100 -sharevts vt0" FB_DEV="/dev/graphics/fb0" FB_DISPLAY="0" FB_FREEZE="none" FB_INPUT="/dev/input/event0" FB_REFRESH="true" FS_TYPE="auto" GRAPHICS="vnc" INCLUDE="bootstrap extra/ssh init" INIT="run-parts" INIT_ASYNC="false" INIT_LEVEL="3" INIT_PATH="/etc/rc.local" INIT_USER="root" LOCALE="POSIX" METHOD="chroot" MOUNTS="" PRIVILEGED_USERS="root" SOURCE_PATH="http://archive.ubuntu.com/ubuntu/" SSH_ARGS="" SSH_PORT="22" SUITE="xenial" TARGET_PATH="${ENV_DIR}/rootfs/linuxhhhhh" TARGET_TYPE="directory" USER_NAME="android" USER_PASSWORD="5a316510" VNC_ARGS="" VNC_DEPTH="16" VNC_DISPLAY="0" VNC_DPI="75" VNC_HEIGHT="1136" VNC_WIDTH="1920" X11_DISPLAY="0" X11_HOST="127.0.0.1" X11_SDL="false" X11_SDL_DELAY="15"

hetzbh commented 8 years ago

ls -l /system/xbin/sh lrwxrwxrwx root root 2016-11-01 11:53 sh -> /system/xbin/busybox

meefik commented 8 years ago

Please try version 2.0.0-215.

hetzbh commented 8 years ago

Tried. Same errors when trying to starting the container or reinstalling the image (the configuration remains the same).

antoinebou12 commented 6 years ago

I got the same problem with fully rooted dell venue 8 3830 CPU x86 intel atom processor

in linux deploy

`[...] :: Configuring core/mnt ...`
`[...] :: Configuring core/net ...`

then it get stuck. Also, in the root checker app it says that i don't have rooted when before i started linux deploy it was a rooted device, but when i reboot the device i gain back my original root access.