UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Cannot get Lightdm to start / boot loop

    Porting
    3
    3
    191
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pelomedusa
      last edited by pelomedusa

      Hi everyone!
      I'm trying to port to the nexus 5X (bullhead)

      When starting the device for the first time, i got stuck in a boot loop, probably because of LightDM crashing. Disabling autostart bu adding "manual" to /etc/init/lightdm.override solved this.

      Now i'm trying to find the cause of this problem, mostly by following the documentation.

      The Android container is running (checked with sudo lxc-info -n android)

      I've also checked mounted partitions.

      Wifi is working, so i have installed libc6-dbg and typed the following commands

      sudo unity-system-compositor --debug-without-dm &> ~/usc.log
      sudo gdb -ex 'set confirm off' -ex 'run' -ex 'bt full' -ex quit --args unity-system-compositor --debug-without-dm &> ~/usc-gdb.log
      sudo /system/bin/logcat -d &> ~/usc-logcat.log
      

      Then, after rebooting, and starting lightdm with sudo service lightdm start ,checked the logs and here is the content

      usc-gdb.log:

      sudo: gdb: command not found

      usc.log:
      https://paste.ubuntu.com/p/csrhGSrkSY/

      usc-logcat.log :

      CANNOT LINK EXECUTABLE "/system/bin/logcat": "/android/system/lib/liblog.so" is 32-bit instead of 64-bit

      The last one is kinda worrying πŸ˜ƒ i used the rootfs mentionned in your documentation

      I'm not sure where to llok next πŸ˜•

      LakotaubpL 1 Reply Last reply Reply Quote 0
      • LakotaubpL
        Lakotaubp @pelomedusa
        last edited by

        @pelomedusa Might well be not remembering correctly but think many have tried and given up on the Nexus 5x. There is a big reason why it is not supported just cant remember what . Sorry to have to give you that info.

        1 Reply Last reply Reply Quote 0
        • FlohackF
          Flohack
          last edited by

          Did you check if the /vendor partition is mounted correctly? Also, you probably need to change a symlink to get it into the right place. Plz join Telegram porting group, the forum i s not a good place to help you.

          So disabling lightdm is the right thing for the moment, but please try first to debug the Android container before you try anything else on UT side. In your case, we need a logcat, try LD_LIBRARY_PATH=/system/lib64:/vendor/lib64 /system/bin/logcat and then also EGL_PLATFORM=hwcomposer test_hwcomposer should run without a crash first

          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

          1 Reply Last reply Reply Quote 0
          • First post
            Last post