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

    X306F - fastboot problems

    Scheduled Pinned Locked Moved Solved Lenovo
    9 Posts 2 Posters 4.2k 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.
      • M Offline
        muskist
        last edited by muskist

        @rubencarneiro @MrT10001

        Hi all,
        had to purchase a X306F because I shattered the display of my X605 :crying_face:
        The X306F came with Android 11. Therefore I skipped installing Android 11.

        When trying to install UT everything works out until I'm encountering two problems:

        fastboot delete-logical-partition product doesn't work:

        $ fastboot delete-logical-partition product
        Deleting 'product'  FAILED (remote: 'unknown command')
        fastboot: error: Command failed
        

        fastboot flash system ubuntu.img doesn't work either:

        $ fastboot flash system ubuntu.img 
        Sending sparse 'system' 1/21 (131068 KB)           OKAY [  3.341s]
        Writing 'system'    FAILED (remote: 'This partition doesn't exist')
        fastboot: error: Command failed
        

        fastboot flash boot boot.img did work.

        I'm running fastboot version 34.0.5-10900879.

        Any idea what I'm doing wrong?

        TIA

        MrT10001M 1 Reply Last reply Reply Quote 0
        • MrT10001M Offline
          MrT10001 @muskist
          last edited by MrT10001

          @muskist You need fastboot version found in platform-tools_r30.0.0-windows. Download from here.

          Follow the Readme instructions:

          *## Install:

          • Download The latest devel-flashable-focal image from latest CI builds
            https://gitlab.com/uports/h10/lenovo-m10-hd/lenovo-m10-hd/-/pipelines

          Put the device in fastboot mode (bootloader)

          Hold VOLUME DOWN + POWER BUTTON

          • Flash the Ubuntu boot.img:
          fastboot flash boot ./boot.img
          
          • Download recovery.img

          • Flash Ubports recovery.img:

          fastboot flash recovery ./recovery.img
          
          • Download vbmeta.img
          fastboot --disable-verity --disable-verification flash vbmeta ./vbmeta.img
          
          • Optinal flash custom logo
          fastboot flash logo ./logo.bin
          
          • Reboot to fastbootd
          fastboot reboot fastboot
          
          • Format userdata you may require fastboot binary version 30.0.0-6374843
          fastboot format:ext4 userdata
          
          • Delete product logical partition
          fastboot delete-logical-partition product
          
          • Resize system partition
          fastboot resize-logical-partition system 3978565472
          
          • Flash Ubuntu Rootfs:
          fastboot flash system ./ubuntu.img*

          Xiaomi Redmi Note 7.... And more...
          I have too many devices...

          M 1 Reply Last reply Reply Quote 0
          • MrT10001M Offline
            MrT10001
            last edited by MrT10001

            I have done this know problem free on Windows 11. I use fastboot version from platform-tools_r30.0.0-windows to only change the userdata partition to EXT4. Replace the ./ in front of boot, recovery and so on with the folder that they are stored in (mine is called out).

            Two points, many thanks to @rubencarneiro for the port and for updating the Readme which I noted a requirement of Android 11. The other point and this should be a given, it requires the bootloader unlocking. I used windows 11 and powershell and had to use:

            ./fastboot flashing unlock

            From a previous post of mine on another thread.

            Xiaomi Redmi Note 7.... And more...
            I have too many devices...

            1 Reply Last reply Reply Quote 0
            • M Offline
              muskist @MrT10001
              last edited by

              @MrT10001 Thanks for yor reply.

              @MrT10001 said in X306F - fastboot problems:

              @muskist You need fastboot version found in platform-tools_r30.0.0-windows. Download from here.

              I don't use windows and I don't have it around.

              Follow the Readme instructions:

              Well, I did :))
              Everything went fine up to the commands I have mentioned above.

              And I did it again with fastboot v30.0.0 - same result.

              Maybe the problem is this:
              When I log in with
              $ adb shell
              and then do
              # ls -la /dev/block/platform/bootdevice/by-name
              I get a lot of partitions like

              lrwxrwxrwx 1 root root  21 2024-02-15 14:27 boot -> /dev/block/mmcblk0p31
              ...
              lrwxrwxrwx 1 root root  20 2024-02-15 14:27 recovery -> /dev/block/mmcblk0p2
              ...
              lrwxrwxrwx 1 root root  21 2024-02-15 14:27 userdata -> /dev/block/mmcblk0p40
              ...
              

              I'm missing a partition called "system" - shouldn't there be one?
              Or maybe there is one somewhere hidden because
              $ fastboot resize-logical-partition system 3978565472
              does not cause an error.

              I'm confused (not unusual).

              MrT10001M 1 Reply Last reply Reply Quote 0
              • MrT10001M Offline
                MrT10001 @muskist
                last edited by

                @muskist I therefore assume you have gone to this page?

                Unzip that folder and in that folder put the boot.img, recovery.img, vbmeta.img and ubuntu.img. Run the command prompt from that folder and try again.

                It took me a few attempts to get going, but I installed it four times now and it goes very smoothly.

                Xiaomi Redmi Note 7.... And more...
                I have too many devices...

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  muskist @MrT10001
                  last edited by

                  @MrT10001

                  Thanks, but same result.

                  You assumed right about the site I got fastboot v30.0.0 from.
                  But I didn't get a .zip but a single binary.
                  I copied it to the folder I stored boot.img, recovery.img, vbmeta.img and ubuntu.img in and used
                  ./fastboot....

                  Didn't work out.

                  MrT10001M 1 Reply Last reply Reply Quote 0
                  • MrT10001M Offline
                    MrT10001 @muskist
                    last edited by

                    @muskist When you reboot to fastboot do you get a fastbootd screen on the tablet? The tablet will reboot which takes a couple of minutes to get to fastbootd.

                    Xiaomi Redmi Note 7.... And more...
                    I have too many devices...

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      muskist @MrT10001
                      last edited by

                      @MrT10001
                      Great! Thank you so much!

                      I didn't get that README.md says "Reboot to fastbootd".

                      So when the device didn't boot up immediately after fastboot reboot fastboot (like it does after fastboot reboot bootloader)
                      I became impatient and pressed <Volume-down>+<Power> to end up in fastboot mode again.

                      Now the device is up.

                      Thanks again!
                      And thanks to @rubencarneiro!

                      MrT10001M 1 Reply Last reply Reply Quote 1
                      • MrT10001M Offline
                        MrT10001 @muskist
                        last edited by

                        @muskist That's nice to hear👍😀

                        Xiaomi Redmi Note 7.... And more...
                        I have too many devices...

                        1 Reply Last reply Reply Quote 0
                        • M muskist marked this topic as a question on
                        • M muskist has marked this topic as solved on
                        • First post
                          Last post