Skip to content

Instantly share code, notes, and snippets.

@alexandrufulop
Forked from thekosmix/UT_Install_ReadMe.md
Created January 14, 2025 09:40
Show Gist options
  • Save alexandrufulop/932da0cf543f16c6761cddaf065273e7 to your computer and use it in GitHub Desktop.
Save alexandrufulop/932da0cf543f16c6761cddaf065273e7 to your computer and use it in GitHub Desktop.
How to install Ubuntu Touch in Lenovo Tab M10 HD (2nd Gen) - X306X (Wi-Fi+LTE)

Why didn't I follow the standard process like using sp flash tool?

tl;dr

I have an unsupported device X306X (Wi-Fi+LTE) (X306F (Wi-Fi) is supported) and I use linux.

Long Version

  1. I tried to follow the standard process, but first I had to do these things:
    1. Find Android 11 to be installed.
    2. sp flash tool for linux.
    3. Driver for mediatek device for Linux.
    4. adb & fastboot v30 for linux
  2. Finding Android 11 was very difficult, I searched XDA and other forums, but evetually found it.
  3. Sp flash tool was easy to find, but the tutorials were not very clear on it. Got multiple errors with it, but eventually was able to resolve them.
  4. Now comes the hard part, sp flash tool was not able to find the device.
    1. Although the device was discoverable by adb & fastboot.
    2. I stumbled upon the reason as driver not being installed for it.
    3. And to my surprise there were no drivers for linux for lenovo devices. (dmesg | grep usb)
    4. I found a tutorial for it, but even this didn't work for me.
  5. Then I decided to use fastboot and found another great tutorial for the same.
  6. Now comes the magical part: taking risk. UBports Installer clearly says this, Don't try to flash an image to an unsupported device, it won't work.
  7. Then I folowed the tutorial for X306F And that's how ended up flashing UT in my unsupported device.

If your device is X306F (Wi-Fi Only), follow the standard process on UT's website: https://devices.ubuntu-touch.io/device/amar-row-wifi/

Steps for Installing UT in Lenovo Tab M10 HD (2nd Gen) - X306X (Wi-Fi+LTE) using Linux

  1. Install adb and fastboot version 30.0
  2. Unlock Bootloader and Enable USB debugging
  3. Download the latest firmware of Android 11 and extract the zip.
  4. Boot your device in fastboot mode by holding volume down and power keys together.
  5. Run fastboot devices to confirm if the device is being detected or not.
  6. Open a terminal in unzipped directory and run the following commands
fastboot flash preloader preloader_amar_row_lte.bin
fastboot flash recovery recovery.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash vbmeta_vendor vbmeta_vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash logo logo-verified.bin
fastboot flash md1img md1img-verified.img
fastboot flash spmfw spmfw-verified.img
fastboot flash scp1 scp-verified.img
fastboot flash scp2 scp-verified.img
fastboot flash sspm_1 sspm-verified.img
fastboot flash sspm_2 sspm-verified.img
fastboot flash lk lk-verified.img
fastboot flash lk2 lk-verified.img
fastboot flash boot boot.img
fastboot flash dtbo dtbo-verified.img
fastboot flash tee1 tee-verified.img
fastboot flash tee2 tee-verified.img
fastboot flash cache cache.img
fastboot flash lenovocust lenovocust.img
fastboot flash lenovoraw lenovoraw.img
fastboot flash super super.img
fastboot flash userdata userdata.img

fastboot reboot
  1. This will Install Android 11 which is required for installing UT as it's based on Halium 11
  2. Now follow the instructions here
  3. Run fastboot reboot

X306X runinng Ubuntu Touch

Congrats!! You've got yourself a UT installed device!! Enjoy and donate to the community :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment