8
Plasma mobile

  1. ati2k1
    Donut Feb 3, 2017


    #41
  2. xreactx
    Froyo Feb 3, 2017


    #42
    ati2k1 likes this.
  3. ati2k1
    Donut Feb 3, 2017


    #43
  4. xreactx
    Froyo Feb 3, 2017

    xreactx , Feb 3, 2017 :
    I don't have a working plasma mobile OPO yet. I have some kinks to work out. I'm getting linker errors at the moment.
     

    #44
  5. ati2k1
    Donut Feb 4, 2017

    ati2k1 , Feb 4, 2017 :
    ah okay then wait.... very soon[e]2122[/e]? :3
     

    #45
  6. xreactx
    Froyo Feb 5, 2017


    #46
  7. xreactx
    Froyo Feb 6, 2017

    Last edited: Feb 7, 2017

    #47
  8. xreactx
    Froyo Feb 6, 2017

    xreactx , Feb 6, 2017 :
    my errors:
    [email protected]:/ # lxc-start -n system -F
    WARNING: linker: lxc-start: unused DT entry: type 0x6ffffffe arg 0x87a8
    WARNING: linker: lxc-start: unused DT entry: type 0x6fffffff arg 0x1
    WARNING: linker: liblxc.so: unused DT entry: type 0x6ffffffe arg 0x7b70
    WARNING: linker: liblxc.so: unused DT entry: type 0x6fffffff arg 0x1
    WARNING: linker: libcap.so.2: unused DT entry: type 0x6ffffffe arg 0x7e0
    WARNING: linker: libcap.so.2: unused DT entry: type 0x6fffffff arg 0x1
    lxc-start: system: conf.c: lxc_mount_auto_mounts: 839 No such file or directory - error mounting /sys/fs/cgroup
    lxc-start: system: conf.c: lxc_setup: 3885 failed to setup the automatic mounts for 'system'
    lxc-start: system: start.c: do_start: 825 Failed to setup container "system".
    lxc-start: system: sync.c: __sync_wait: 57 An error occurred in another process (expected sequence number 3)
    lxc-start: system: start.c: __lxc_start: 1371 Failed to spawn container "system".
    lxc-start: system: tools/lxc_start.c: main: 366 The container failed to start.
    lxc-start: system: tools/lxc_start.c: main: 370 Additional information can be obtained by setting the --logfile and --logpriority options.
     
    Last edited: Feb 7, 2017

    #48
    robthebold likes this.
  9. xreactx
    Froyo Feb 8, 2017

    xreactx , Feb 8, 2017 :
    Got the container to start!!! But GUI doesnt start...

    [email protected] ~ $ adb root
    adbd is already running as root
    [email protected] ~ $ adb shell
    [email protected]:/ # lxc-start -n system -F
    WARNING: linker: lxc-start: unused DT entry: type 0x6ffffffe arg 0x8700
    WARNING: linker: lxc-start: unused DT entry: type 0x6fffffff arg 0x1
    WARNING: linker: liblxc.so.1: unused DT entry: type 0x6ffffffe arg 0x5a34
    WARNING: linker: liblxc.so.1: unused DT entry: type 0x6fffffff arg 0x1
    WARNING: linker: libcap.so.2: unused DT entry: type 0x6ffffffe arg 0x7e0
    WARNING: linker: libcap.so.2: unused DT entry: type 0x6fffffff arg 0x1
    lxc-start: cgfs.c: handle_cgroup_settings: 2153 Device or resource busy - failed to set memory.use_hierarchy to 1; continuing
    * Setting up X socket directories...
    ...done.
    * Setting preliminary keymap...
    ...done.
    * Starting NTP server ntpd
    ...done.

    Ubuntu 16.04.1 LTS ubuntu-phablet console

    ubuntu-phablet login: phablet
    Last login: Sat May 23 14:59:21 UTC 1970 on lxc/console
    Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 3.4.67-cyanogenmod-g845a9ab-dirty armv7l)

    * Documentation: https://help.ubuntu.com
    * Management: https://landscape.canonical.com
    * Support: https://ubuntu.com/advantage
    [email protected]:/$ cd etc/udev/rules.d
    [email protected]:/etc/udev/rules.d$ ls
    50-firmware.rules 60-ssd-scheduler.rules 90-alsa-restore.rules
    60-persistent-v4l.rules 65-android.rules 90-alsa-ucm.rules
    [email protected]:/etc/udev/rules.d$ sudo service udev start
    start: Job is already running: udev
    [email protected]:/etc/udev/rules.d$ sudo udevadm trigger --action=add
    [email protected]:/etc/udev/rules.d$ sudo service lightdm start
    start: Job is already running: lightdm
    [email protected]:/etc/udev/rules.d$
     

    #49
    robthebold likes this.
  10. xreactx
    Froyo Feb 8, 2017

    xreactx , Feb 8, 2017 :
    ((Download necessary files))

    wget -c http://neon.plasma-mobile.org/cm_stamp

    wget -c http://neon.plasma-mobile.org/rootfs_stamp

    wget -c http://neon.plasma-mobile.org/lxc-android.tar.gz

    wget -c http://neon.plasma-mobile.org/rootfs/pm-rootfs-`cat rootfs_stamp`.tar.gz

    ln -s pm-rootfs-`cat rootfs_stamp`.tar.gz pm-rootfs.tar.gz

    wget -c https://raw.githubusercontent.com/plasma-phone-packaging/CM/master/lxc-system-config

    ((begin pushing files))
    ((if errors are received while pushing files, mount android in read-write mode "mount -o remount,rw rootfs"))

    adb root

    adb push lxc-android.tar.gz /data/

    adb shell tar xf /data/lxc-android.tar.gz

    adb push pm-rootfs.tar.gz /data/pm-rootfs.tar.gz

    adb shell mkdir -p /data/lxc/containers/system/rootfs/

    adb shell tar xf /data/pm-rootfs.tar.gz -C /data/lxc/containers/system/rootfs/

    adb shell rm /data/pm-rootfs.tar.gz /data/lxc-android.tar.gz

    adb push lxc-system-config /data/lxc/containers/system/config

    adb shell mkdir -p /data/lxc/containers/system/rootfs/sys/fs/cgroup/

    mkdir /sys/fs/cgroup/systemd/

    busybox mount -n -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd/

    mkdir /sys/fs/cgroup/freezer/

    busybox mount -n -t cgroup -o none,name=freezer cgroup /sys/fs/cgroup/freezer/

    ROOTFS=/data/lxc/containers/system/rootfs
    for i in $(busybox awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups); do
    if ! grep -q " $ROOTFS/$i " /proc/mounts; then
    mkdir -p $ROOTFS/$i
    busybox mount -n -t cgroup -o $i cgroup $ROOTFS/$i
    fi
    done

    ((Then start container))

    export PATH=/data/lxc/lxc/bin:$PATH
    export LD_LIBRARY_PATH=/data/lxc/lxc/lib:$LD_LIBRARY_PATH

    lxc-start -n system -F
     
    Last edited: Feb 9, 2017

    #50
    wdehoog likes this.
  11. xreactx
    Froyo Feb 11, 2017

    xreactx , Feb 11, 2017 :
    Chatted with KDE developer, linker errors are nothing to be concerned about. I'm still trying to get the GUI working. container seems to start fine, but no GUI on phone.
     

    #51
    robthebold and HypnZ__ like this.
  12. HypnZ__
    Froyo Feb 11, 2017


    #52
  13. xreactx
    Froyo Feb 13, 2017


    #53
    HypnZ__ likes this.
  14. xreactx
    Froyo Feb 15, 2017

    xreactx , Feb 15, 2017 :
    I'm experimenting with a different base to see if I get better results. Currently, the issue is the same... LXC container starts but no GUI on phone screen, just goes black.
     

    #54
    robthebold and nobelium76 like this.
  15. xreactx
    Froyo Feb 17, 2017

    Last edited: Feb 18, 2017

    #55
    nobelium76 and mailyaseen like this.
  16. xreactx
    Froyo Feb 21, 2017


    #56
    HypnZ__ and mailyaseen like this.
  17. xreactx
    Froyo Feb 23, 2017

    xreactx , Feb 23, 2017 :
    This plane has stalled. Experimented with CM and Lineage, still no luck. Moving on the AOSP.
     

    #57
    robthebold likes this.
  18. G_md_samad_aBge
    Cupcake Feb 23, 2017

  19. xreactx
    Froyo Feb 27, 2017

    xreactx , Feb 27, 2017 :
    Now experimenting with AOSP. My apologies with the lack of updates, I've been working with Sailfish OS a lot recently. AOSP has been a load of errors, finally got through them. I'll post more when I have any news.
     

    #59
  20. xreactx
    Froyo Feb 27, 2017


    #60