Skip to content

Instantly share code, notes, and snippets.

@thekosmix
Last active December 8, 2024 11:41
Show Gist options
  • Save thekosmix/1a7fc2308e9c9ea78bb4ad24bc0cda1a to your computer and use it in GitHub Desktop.
Save thekosmix/1a7fc2308e9c9ea78bb4ad24bc0cda1a 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 :-)

@VedantKawade3
Copy link

VedantKawade3 commented Aug 29, 2024

Same bro I faced all those things you had faced but I didn't found any solution or exact process for downloading ubantu touch on tb-x306x but finally something got me related that in your post and i think it is helpful to me but I have still doubt that Will this work for my lenovo tb-x306x (2gb ram) if not then how can I use this process for my 2gb tb-x306x device or which file should I modify to work above method properly in my case or os will run properly on 2gb ram or is there any possibility of bricking my tb-x306x or stuck in any kind of loop ?

@VedantKawade3
Copy link

Step 3 download link is not working bro , please provide link 🙏🏻🙏🏻

@thekosmix
Copy link
Author

Bricking the device is possibility, but happens rarely, but you'll have to be cautious.
Which link? For which tool?

@VedantKawade3
Copy link

Bricking the device is possibility, but happens rarely, but you'll have to be cautious. Which link? For which tool?

This link
Step 3 ) Download the latest firmware of Android 11 and extract the zip. ( Download =https://mirrors.lolinet.com/firmware/lenowow/Tab_M10_Plus/TB-X306X/3GB4GB/ )

@VedantKawade3
Copy link

VedantKawade3 commented Sep 6, 2024

Bricking the device is possibility, but happens rarely, but you'll have to be cautious. Which link? For which tool?

I have tb-x306x (ram=2gb) but will your method work on this or not , if not then which file (files given or mentioned in above your method) should I modify to work on my tb-x306x (ram=2gb) ?

In short, can you tell me what changes should I do in your method to work your method on my tb-x306x (ram=2gb) and after that to run ubantu touch on it ?

@zubko
Copy link

zubko commented Oct 1, 2024

The location of the firmware changed now to https://mirrors.lolinet.com/firmware/lenowow/2020/Tab_M10_Plus/TB-X306X/3GB4GB/ . It's also possible to use search to find X306X on the website.

I've installed the Ubuntu Touch, but the Wifi or Bluetooth don't work. 😔

Did it work for you @thekosmix ?

@zubko
Copy link

zubko commented Oct 2, 2024

I was able to get the WiFi working by following the README on the https://gitlab.com/ubports/porting/community-ports/android11/lenovo-tab-m10-hd/lenovo-m10-hd and flashing the latest build on the device.

@thekosmix
Copy link
Author

No, it did not, then Ruben from UT community helped me to fix it. Now both WiFi n BT are working. The only thing that is not working is "Not able to hear sound when making a call"

@riwid
Copy link

riwid commented Oct 16, 2024

How did you fix the problem with Wifi and BT @thekosmix? I have the same problem on my X306X. Tried the instructions in the above mentioned README but it didn't work.

@thekosmix
Copy link
Author

Like I said, Ruben has helped me fix it, here's the latest build which has both working

@AssassinK786
Copy link

@thekosmix will this work on 3GB Ram /32GB also?

@thekosmix
Copy link
Author

@AssassinK786 not sure, if you have the device, you can always try

@thekosmix
Copy link
Author

Those who need help with installation on different Lenovo M10 HD tablets, can reach out on this telegram channel

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