• 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
      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
                        • N Offline
                          nitanmarcel @flohack
                          last edited by 13 Jul 2020, 15:36

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

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

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

                                Sorry out of ideas πŸ™‚

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

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

                                  @Flohack No problem, thanks for trying to help πŸ™‚ I've also tried to change my system from f2fs to ext4 and the phone didn't rebooted again, but I still can't ssh.

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

                                    @Flohack I got an idea. Instead of using ssh can't we just make a script to run the command at boot and then store it to a file? like lxc-checkconfig >> /home/phablet/lxc-checkconfig

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

                                      @nitanmarcel Sure you can craft a one-time upstart job in /etc/init. Go for it πŸ˜‰

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

                                      N 3 Replies Last reply 14 Jul 2020, 18:32 Reply Quote 0
                                      • N Offline
                                        nitanmarcel @flohack
                                        last edited by 14 Jul 2020, 18:32

                                        @Flohack I've tried and with no success. Nothing got saved which is strange because I tried echoing to a file and same thing happened. Nothing

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          nitanmarcel @flohack
                                          last edited by 15 Jul 2020, 10:58

                                          @Flohack I've tried modifying the ssh.override to create the log when the ssh starts but nothing happens:

                                          pre start script
                                            lxc-checkconfig >> /home/phablet/lxcout.txt
                                            exec /usr/sbin/sshd -D -o PasswordAuthentication=yes
                                          end script
                                          

                                          Am I doing something wrong?

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

                                            @nitanmarcel DOes it crash too early maybe?

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

                                            N 1 Reply Last reply 15 Jul 2020, 14:40 Reply Quote 0
                                            25 out of 42
                                            • First post
                                              25/42
                                              Last post