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

    Wrong kernel on Redmi 9 (codename lancelot)

    Scheduled Pinned Locked Moved Devices
    21 Posts 3 Posters 795 Views 1 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.
      • K Offline
        Keli
        last edited by

        Below are two screenshots taken months apart. One while using UT on focal and one that I took yesterday. Look at the network indicators. One shows two while the other one shows one.

        screenshot20250603_080152910.png screenshot20251030_072707179.png

        Vlad NirkyV 1 Reply Last reply Reply Quote 0
        • Vlad NirkyV Offline
          Vlad Nirky @Keli
          last edited by Vlad Nirky

          @Keli
          OK.
          I've amended my reply.
          And which kernel version was running when this screenshot was taken?
          Do you think it's a regression?
          https://gitlab.com/ubports/porting/community-ports/android11/xiaomi-redmi-9/kernel-xiaomi-mt6768

          https://gitlab.com/ubports/porting/community-ports/android11/xiaomi-redmi-9/kernel-xiaomi-mt6768

          You may report an issue on one of these.

          Was the screenshot taken in Noble?

          K 2 Replies Last reply Reply Quote 0
          • K Offline
            Keli @Vlad Nirky
            last edited by

            @Vlad-Nirky I don't think it's a regression. I'm not sure how the UT images are baked or how the install process is done by the installer. But it's obvious that I have a Redmi Note 9 kernel instead of a Redmi 9 one.
            Maybe there was a mixup and somehow the install script is being instructed to flash a wrong kernel image.
            In android lingo, flashing the correct boot.img in fastboot would have fixed the issue.
            I guess it's upon the device maintainer to answer these maybes.

            1 Reply Last reply Reply Quote 1
            • K Offline
              Keli @Vlad Nirky
              last edited by

              @Vlad-Nirky I don't know which kernel version I was running back then. But I know that both sim cards were being detected and noble was still in beta at the time.
              When noble was announced I decided to give UT touch another go and here we are.

              FuseteamF 1 Reply Last reply Reply Quote 0
              • FuseteamF Offline
                Fuseteam @Keli
                last edited by

                @Keli I have lancelot with the same kernel, both sim cards are detected for me

                I am on 24.04-1./x daily but not the latest, could try on the latest daily?

                K 1 Reply Last reply Reply Quote 0
                • K Offline
                  Keli @Fuseteam
                  last edited by

                  @Fuseteam thanks for the suggestion. Let me look into it.

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    Keli
                    last edited by

                    I downloaded a daily build update and installed it, the update was successful.
                    Sim 2 wasn't being detected nonetheless. So I decided to switch the sim cards. Sim 1 wasn't being detected. Hmm..
                    I decided to test the problematic sim card on another phone - also a lancelot running stock android, it worked there.
                    I decided to use an old sim card on my lancelot to see if it would be detected. It was.
                    The problematic sim card was working just fine before switching to UT from Android.
                    Anyway, it seems like UT doesn't like this sim card. Has anyone encounter this issue before? Is there a reason why UT would fail to detect a working sim card?
                    Below are some screen grabs highlighting the above issue.

                    screenshot20251030_213436991.png

                    screenshot20251030_213638341.png

                    Vlad NirkyV 1 Reply Last reply Reply Quote 0
                    • Vlad NirkyV Offline
                      Vlad Nirky @Keli
                      last edited by

                      @Keli
                      To complete the test the non working SIM should be inserted in another phone running Android, to see if it is still OK.

                      K 1 Reply Last reply Reply Quote 0
                      • K Offline
                        Keli @Vlad Nirky
                        last edited by

                        @Vlad-Nirky I did test the non working sim card (the one that can't be detected) on another phone, also a lancelot but running MIUI. It works there. The old sim card that was decommissioned doesn't work in the sense that it can't register to its network and that's why it says 'unknown' as you can see from the screen grab - but at least it can still be detected by the phone.
                        The working one that I would like to use fails to be detected on both slots hence the 'No Sim' error message.

                        Vlad NirkyV 1 Reply Last reply Reply Quote 0
                        • Vlad NirkyV Offline
                          Vlad Nirky @Keli
                          last edited by Vlad Nirky

                          @Keli
                          Is there a mix regarding VoLTE?
                          One that has it and one that doesn't?
                          Can your other phone hold two SIM cards?
                          If so, it would be interesting to know if they can work together.

                          K 1 Reply Last reply Reply Quote 0
                          • K Offline
                            Keli @Vlad Nirky
                            last edited by

                            @Vlad-Nirky No it isnt a VOLTE issue and yes both sims are VOLTE capable and both work well together. I haven't tested VOLTE under UT on either sims though. But VOLTE is problematic even on stock Android for lancelot in my country.

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              Keli
                              last edited by

                              I had to reinstall Android unfortunately 😞
                              Both Sims are working. Will give UT another go sometime in the near future.
                              Thanks everyone.

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                Keli
                                last edited by

                                I gave it another try, it's all good now.

                                screenshot20251102_074444373.png

                                Vlad NirkyV 1 Reply Last reply Reply Quote 0
                                • Vlad NirkyV Offline
                                  Vlad Nirky @Keli
                                  last edited by

                                  @Keli
                                  Hello.
                                  Right after reinstalling?

                                  K 1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    Keli @Vlad Nirky
                                    last edited by

                                    @Vlad-Nirky Yes it worked after reinstalling.

                                    1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      Keli
                                      last edited by

                                      When I say reinstalling, that's just putting it mildly.
                                      Let me post this in the hope that someone might find it useful.
                                      A couple of months ago I tested UT using the normal install procedure (Stock vendor, A11) vs an edge case procedure (OSS vendor, A13) and found out that UT worked roughly the same in both instances.
                                      Since then, using OSS vendor has been my preferred method of getting UT on my lancelot -I'm the edge case, testing the untested.
                                      With this method, I can easily test feature availability/issues between firmware versions (I cannot access the call waiting setting under firmware v12.5.6.0 but can with v12.5.4.0 for example), easily move between Android and UT etc.
                                      So here's how I move from UT to OSS Android for example:

                                      • Reboot the device into fastboot (The one with an orange text)
                                      • Run fastboot flash recovery recovery.img
                                      • Run fastboot flash boot boot.img
                                      • Run fastboot flash dtbo dtbo.img
                                      • Run fastboot flash vbmeta vbmeta.img
                                      • Run fastboot wipe-super unsparse_super_empty.img
                                      • Run fastboot reboot recovery
                                      • Run adb sideload lineage.lancelot.zip once the device reboots into lineage's recovery.
                                        I run these commands under linux and this workflow has never failed me.
                                        I use an unofficial lineage 20 zip for lancelot which has all these files inside the archive.
                                        To go back to UT, I just put the device in fastboot mode and run the ubports installer.
                                      Vlad NirkyV 1 Reply Last reply Reply Quote 0
                                      • Vlad NirkyV Offline
                                        Vlad Nirky @Keli
                                        last edited by Vlad Nirky

                                        @Keli
                                        Thank you for sharing your knowledge.
                                        Very interesting...
                                        And what LineageOS ROM are you using exactly?

                                        K 1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          Keli @Vlad Nirky
                                          last edited by

                                          @Vlad-Nirky Here it is:
                                          https://pixeldrain.com/u/u4qB51S8

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