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

    [Halium 9 Kernel Patching][GSI] Ubports fails to boot

    Scheduled Pinned Locked Moved Porting
    42 Posts 4 Posters 13.2k Views 2 Watching
    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.
      • flohackF Offline
        flohack @nitanmarcel
        last edited by

        @nitanmarcel Yes lxc-start is crashing, probably even without doing anything already. Which kernel version is this, and plz post lxc-checkconfig output

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

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nitanmarcel @flohack
          last edited by

          @Flohack The Kernel's version is 4.14.56. I'm not at a PC right now and I've came back to stock ROM but I'll come back later with the required file.

          Could you tell me where I could find that specific file?

          1 Reply Last reply Reply Quote 0
          • N Offline
            nitanmarcel
            last edited by

            Also here's a backup of the log folder from /data/system-data/var maybe it helps until I come back with the file you requested

            https://transfer.sh/O6Vvf/log.zip

            1 Reply Last reply Reply Quote 0
            • flohackF Offline
              flohack
              last edited by

              Okay so do the following:

              1. Boot to recovery
              2. mkdir /a
              3. mount /data/rootfs.img /a
              4. cd /a/etc/init
              5. vi /etc/init/lxc-android-config.override
              6. place only one word inside this file: manual
              7. sync
              8. cd /
              9. umount /a

              Now, if you reboot, lxc startup will be disabled, you should be able to log in with ssh. Then you can execute lxc-checkconfig in the shell.

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

              N 2 Replies Last reply Reply Quote 0
              • N Offline
                nitanmarcel
                last edited by

                I managed to login but it asked me for a password. I used phablet and it looks like is accepted. But it get's stuck after that, and I can't do anything. After a few seconds the phone reboots. The file you mentioned wasn't empty, I removed everything and only placed manual in it

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nitanmarcel @flohack
                  last edited by

                  @Flohack https://del.dog/ofipomemed here's the last_kmsg log

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nitanmarcel
                    last edited by

                    It might be the hwservicemanager. I'm applying a patch rn

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      nitanmarcel @flohack
                      last edited by

                      @Flohack Same story. I can ssh but as soon as I enter the pasword phablet the console tab freezes and the phone reboots after a few seconds. This time without any last_kmsg.Screenshot from 2020-07-13 16-48-09.png

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        nitanmarcel
                        last edited by

                        I managed to get an last_kmsg after a few attemps: https://paste.ubuntu.com/p/gdThm8JyfF/

                        N flohackF 2 Replies Last reply Reply Quote 0
                        • N Offline
                          nitanmarcel @nitanmarcel
                          last edited by

                          If I'm not wrong I think this is what crashes it.

                          35>[   36.966464,5] systemd-logind[3823]: Failed to start user service, ignoring: Unknown unit: user@32011.service
                          <4>[   36.967859,4] !entity_is_task(se)
                          
                          flohackF 1 Reply Last reply Reply Quote 0
                          • flohackF Offline
                            flohack @nitanmarcel
                            last edited by

                            @nitanmarcel No that one you can ignore, its normal ^^

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

                            1 Reply Last reply Reply Quote 0
                            • flohackF Offline
                              flohack @nitanmarcel
                              last edited by

                              @nitanmarcel Please mount your rootfs again as described above and move out all startup jobs called lxc-* to another folder. We must prevent any interaction with cgroups and lxc. And we need to get the output of lxc-checkconfig (its not a file, rather you call this on the console)

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

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                nitanmarcel
                                last edited by

                                @Flohack Same thing happens. I get stuck after I enter the password. I've also tried from recovery and the same thing happens.

                                1 Reply Last reply Reply Quote 0
                                • N Offline
                                  nitanmarcel
                                  last edited by

                                  Also after I connect with ssh and it freezes if I try from another tab I can't connect anymore

                                  1 Reply Last reply Reply Quote 0
                                  • flohackF Offline
                                    flohack
                                    last edited by

                                    But does it bootloop?

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

                                    N 1 Reply Last reply Reply Quote 0
                                    • flohackF Offline
                                      flohack
                                      last edited by

                                      Can you try this fix:
                                      mkdir /a
                                      mount /data/rootfs.img /a
                                      echo manual |tee /a/etc/init/rsyslog.override
                                      umount /a
                                      sync
                                      we disable syslog daemon for a while, see if that unblocks ssh

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

                                      N 1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        nitanmarcel @flohack
                                        last edited by

                                        @Flohack Yes, it goes to bootloop again. I've tried your fix but it still get's stuck after I enter my password and the same thing happens as before with lxc. The phone reboot then goes into a bootloop as soon as the phone starts

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          nitanmarcel
                                          last edited by nitanmarcel

                                          And yeah, if I don't ssh the phone doesn't reboot. It just stays at the Android One logo

                                          [Edit: then it shuts down]

                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            nitanmarcel
                                            last edited by

                                            I also tried with telnet

                                            nitanmarcel@nitanmarcel:~/adb/Ubports$ telnet 10.15.19.82
                                            Trying 10.15.19.82...
                                            telnet: Unable to connect to remote host: Connection refused
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • flohackF Offline
                                              flohack
                                              last edited by

                                              Sorry out of ideas πŸ™‚

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

                                              N 1 Reply Last reply Reply Quote 0

                                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                              With your input, this post could be even better πŸ’—

                                              Register Login
                                              • First post
                                                Last post