• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 8.4k 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.
    • N Offline
      nitanmarcel @Lakotaubp
      last edited by 11 Jul 2020, 21:23

      @Lakotaubp I've charged my phone and I tried to boot again but with no success. Also I've noticed the last_kmgs above is buggy so I tried generating a new one by letting my phone reboot a couple of times. Is still broken but maybe there are some new clue about what happens that I've missed: https://del.dog/urrycughug

      F 1 Reply Last reply 13 Jul 2020, 07:30 Reply Quote 0
      • F Offline
        flohack @nitanmarcel
        last edited by flohack 13 Jul 2020, 07:30

        @nitanmarcel Hmm there are more than one boot attempts inside, its hard to see where you booted into recovery, and where you tried to boot Halium. However I found one here: https://del.dog/urrycughug#L9097 thats 6 seconds into kernel boot.

        Then there is not much more messages that would show problems until 67 seconds where a normal reboot is triggered. So its not a kernel panic, it basically should at least run for this 1 minute - do you see RNDIS messages appear on the HOST computer, can you ssh to 10.15.19.82 during that time?

        EDIT: yes you should have ssh access already, since the RNDIS adapter gets initialized:

        <4>[ 6.617172,4] using random self ethernet address
        <4>[ 6.617185,4] using random host ethernet address

        if ssh does not work, try telnet 🐢

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

        N 1 Reply Last reply 13 Jul 2020, 08:22 Reply Quote 0
        • N Offline
          nitanmarcel @flohack
          last edited by nitanmarcel 13 Jul 2020, 08:22

          @Flohack SSH didn't worked and I haven't tried telnet, but yesterday I managed to get rid of the bug by setting the CONFIG_CMDLINE to tty0. Even tho the first bug got fixed there's another one.

          Looks like something (we think lxc) causes kernel errors. I took some logs but they seem more broken than ever.
          T

          Last_kmsg: https://transfer.sh/NVwbC/last_kmsg
          My last commit that enables tty0 console: https://github.com/nitanmarcel/android_kernel_motorola_exynos9610/commit/34f7cb72fcb2fce87dc327d4b4c7b2a3b900a62d

          F 2 Replies Last reply 13 Jul 2020, 08:30 Reply Quote 0
          • F Offline
            flohack @nitanmarcel
            last edited by 13 Jul 2020, 08:30

            @nitanmarcel Yes you need a working console cmdline argument with UT, thats essential for upstart. Let me look on the other trace.

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

            1 Reply Last reply Reply Quote 0
            • F Offline
              flohack @nitanmarcel
              last edited by 13 Jul 2020, 08:34

              @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 13 Jul 2020, 08:42 Reply Quote 0
              • N Offline
                nitanmarcel @flohack
                last edited by 13 Jul 2020, 08:42

                @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 13 Jul 2020, 08:45

                  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
                  • F Offline
                    flohack
                    last edited by 13 Jul 2020, 09:00

                    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 13 Jul 2020, 11:15 Reply Quote 0
                    • N Offline
                      nitanmarcel
                      last edited by 13 Jul 2020, 11:12

                      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 13 Jul 2020, 11:15

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

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          nitanmarcel
                          last edited by 13 Jul 2020, 11:30

                          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 13 Jul 2020, 13:48

                            @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 13 Jul 2020, 14:06

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

                              N F 2 Replies Last reply 13 Jul 2020, 14:14 Reply Quote 0
                              • N Offline
                                nitanmarcel @nitanmarcel
                                last edited by 13 Jul 2020, 14:14

                                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)
                                
                                F 1 Reply Last reply 13 Jul 2020, 14:28 Reply Quote 0
                                • F Offline
                                  flohack @nitanmarcel
                                  last edited by 13 Jul 2020, 14:28

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

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

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    flohack @nitanmarcel
                                    last edited by 13 Jul 2020, 14:30

                                    @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 13 Jul 2020, 14:38

                                      @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 13 Jul 2020, 14:44

                                        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
                                        • F Offline
                                          flohack
                                          last edited by 13 Jul 2020, 15:18

                                          But does it bootloop?

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

                                          N 1 Reply Last reply 13 Jul 2020, 15:36 Reply Quote 0
                                          • F Offline
                                            flohack
                                            last edited by 13 Jul 2020, 15:19

                                            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 13 Jul 2020, 17:37 Reply Quote 0
                                            15 out of 42
                                            • First post
                                              15/42
                                              Last post