yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Pad 5] Catmengi:
Here is 2 images with other mkbootimg dtb append. First will boot from part "Ubuntu" other from /dev/sda34 or "Arch" (forgot). Get modules from @map220v github repo! This is fastboot images, test them with fastboot boot and post screenshot of result!
[Xiaomi Mi Pad 5] Catmengi:
How do i know which panel i have?
[Xiaomi Mi Pad 5] LesGaR:
You need rooted device :-(

cat /proc/cmdline and check msm.drm...
[Xiaomi Mi Pad 5] Catmengi:
How about newest kernel boot.img? Is it booting?
[Xiaomi Mi Pad 5] LesGaR:
Not now in home. Maybe in few hours.

I installed latest 6.8 kernel and firmare and now can't boot.

I need a PC to revert firmware archives to boot 6.1

Another thing, maybe you can help me, if you can time.

I have and issue in my devel build, I need add devicetree in this script.

When I have a snapshot, now I need add manual line devicetree in all kernels and snapshots can boot.

This is the scrip:

grub-btrfs/41_snapshots-btrfs at master · Antynea/grub-btrfs

Include btrfs snapshots at boot options. (Grub menu) - Antynea/grub-btrfs

github.com

Do you know how can implement it?
[Xiaomi Mi Pad 5] Catmengi:
I dont know BASH scripts, but i can say we can use code of initramfs detection,change it a bit to detect,lets can say "xiaomi-nabu-*.dtb" and echo other line to grub.cfg. Cant say anything more detailed :(
[Xiaomi Mi Pad 5] Catmengi:
@TheMagicMojoMan have you tested new kernel yet?
[Xiaomi Mi Pad 5] Catmengi:
Updated kernels, screen should not be black now. Pls test them with fastboot boot. And reply your results, possible screenshots
[Xiaomi Mi Pad 5] Catmengi:
New @map220v commit should fix blackscreen problem.(It may open other problems for fix;))
[Xiaomi Mi Pad 5] LesGaR:
Black screen, again. Can you share kernel and dtb? to try in uefi mode.
[Xiaomi Mi Pad 5] Catmengi:
Have .bin extension because of xda file extension rules
[Xiaomi Mi Pad 5] TheMagicMojoMan:
I have tested your fast boot kernels and boot images that I have built:

v2boot_ubuntu.img from post #442: fast boot

my first boot image: black screen

after reverting "removed framebuffer" commit: kernel boot log → black screen (on; background light shimmers)

v2boot_ubuntu.img from post #449: black screen

v1boot_ubuntu.img from post #449: kernel boot log → black screen (on; background light shimmers) ; in combination with .dtb and .vmlinuz that I have compiled

Conclusion:

Kernel boots but system/graphics does not start correctly (I have used a Linux image with 6.8 firmware and modules)
[Xiaomi Mi Pad 5] Catmengi:
Well 6.8 is might be broken :(
[Xiaomi Mi Pad 5] Catmengi:
What is 'boot log'? Can i have it?
[Xiaomi Mi Pad 5] Catmengi:
Can you ssh in and get dmesg logs?, Also try to remove *-opps line in sm8150.dtsi, dispcc, maybe suspend fix breaks display?
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Sorry, I really appreciate your enthusiasm but I would suggest that you wait until the boot loader of your tablet is unlocked and then you can do a thousand tests and make us all happy with a working solution :)
[Xiaomi Mi Pad 5] Catmengi:
Or i will patch 6.7 to fix dispcc :) but my enthusiasm is high enough now, i will activily try to fix 6.8
[Xiaomi Mi Pad 5] Pelochus:
Hi guys! Very interesting work, does anyone have a video to see how does Ubuntu run on this tablet?. Also I haven't done extensive research yet but I'm assuming this is compatible with dual boot right? I will probably update my tablet to EvoX 14 this summer and if there is possibility of dual boot I would like to install it. Thanks!
[Xiaomi Mi Pad 5] Catmengi:
Is this display backlight shimmer dangerous for my screen?
[Xiaomi Mi Pad 5] Catmengi:
Please provide logs from dmesg. If there be logs map220v can fix this as fastest as he can.

ssh into tablet; sudo dmesg > [filename].log; download logs via scp
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Unfortunately, I cannot ssh into tablet. Connecting via RNDIS never worked for me on Windows & Linux when I tried to make @maverick_jia's initial image work on my tablet.

Do you have a working Win 11 RNDIS driver? If so I can try again.
[Xiaomi Mi Pad 5] Catmengi:
We cant use rndis now. Linux removed rndis drivers in new kernels, now we should use CONFIG_USB_ETH and linux pc. Tomorrow i will be able to test linux. If you can, can you test alive of kernel, try to connect usb keyboard and click numlock if it working numlock should turn on/off
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Yesterday, I tried connecting a USB keyboard with dongle to the tablet (running kernel 6.8) but it did not connect. I also connected a USB stick but LED of stick did not turn on/started blinking.
[Xiaomi Mi Pad 5] Catmengi:
Seems that kernel kernel crashes when bootlog is dissapeared, possible dsi problem causing a panic. Can you try to get data from /sys/fs/pstore/console-* or dmesg*(there should be crash log) on working kernel, but NOT shutdown your tablet, only reboot otherwise data will disappear.
[Xiaomi Mi Pad 5] Catmengi:
Maybe just use a fixed 6.7 kernel? What do you think?
[Xiaomi Mi Pad 5] Catmengi:
@map220v pushed fixes to nabu-6.7 branch. Can anyone test it?

To set branch use: "git checkout nabu-6.7" in folder when you cloned sm8150-mainline repo from @map220v
[Xiaomi Mi Pad 5] LesGaR:
Kernel 6.8 with dtb kernel 6.7 (precompiled from map220v github) kernel 6.8 with dtb 6.8 usb not working all times

I need to create a new image to enable ssh :-(
[Xiaomi Mi Pad 5] Catmengi:
Dtb is should be fine there is a error in kernel itself :(
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Windows gaming/apps on Nabu

[HOWTO: https://xdaforums.com/t/windows-gaming-on-linux-howto.4662644/

Discussion: https://xdaforums.com/t/windows-gaming-on-linux-questions-answers-discussion.4662635/]

A couple of days before I showed how to get FEX-Emu running (see post #422) and now I also have box64 + wine64 and box86 + wine32 working on Nabu. Howto will follow within the next days (needs some more testing):

Left: notepad++ (64 bit), right: notepad++ (32 bit)

Sorry for the small Window windows. This needs to be fixed ... → fixed!
[Xiaomi Mi Pad 5] Catmengi:
@LesGaR is screen worked for you? I dont see anything related to dsi or dispcc or gpu
[Xiaomi Mi Pad 5] Catmengi:
@TheMagicMojoMan can you test new 6.7 kernel, screen sleep issue and ufs clocks issue should(last is fixed 100%) be fixed.(You need to use full new kernel + dtb (6.7) there was some hack in code reverted)
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Downloaded newest xiaomi-nabu-debs_6.7.zip from map220v's github actions.

Installed the .deb files

Strange: version numbers of installed packages were 6.8 not 6.7!

Rebuilt grub.

Boot: Tux and initial kernel log shows but then black screen.

I will concentrate on improving wineXX/boxXX at the weekend therefore I won't do any additional kernel tests. Maybe you'll get it working.(y)
[Xiaomi Mi Pad 5] Catmengi:
I think that is a bug of github actions. Today i gonna install linux on tablet and compile kernel myself. If kernel will work i'l try to launch debian with kde there or debug 6.8 kernel
[Xiaomi Mi Pad 5] LesGaR:
Maybe I can help with this, if you like.

I used a 22.04 lts with KDE neon (newest 6 version) and ssh enabled and uefi mode and all it's working, obviously in kernel 6.1, in kernel 6.7 not yet, but we can access to ssh if have black screen.

For use both kernels I mixed firmware archives, not the best option, but work fine.

Now I try to migrate ext4 to btrfs and enable screen keyboard in Lts

If you need, can I send pm with my notes if you like a btrfs with snapshots (off topic)

Not have a PC until Monday, can't compile kernels to test it, sorry
[Xiaomi Mi Pad 5] MateusL13:
What does the UEFI installer modifies? As I don't know the answer, I'll assume that it modifies the boot partition, so, should I install it while on Android boot (slot a) or Linux boot (slot b)???
[Xiaomi Mi Pad 5] MateusL13:
Does kernels 6.7 and 6.8 have a good performance like 6.1?
[Xiaomi Mi Pad 5] LesGaR:
You sideload it from recovery mode. Not need diferent Android or Linux boot partition.

If you sideload it in both partitions, can you boot android/Linux in both slots.
[Xiaomi Mi Pad 5] Catmengi:
i have a problem, i buillt

Now they have no performance, first has broken ufs and dsi sleep, second possible has good ufs but broken dsi, screen not working
[Xiaomi Mi Pad 5] Catmengi:
Please say me, how do you got thoose logs?????
[Xiaomi Mi Pad 5] LesGaR:
I'm working on it. I used armbian pipa mod image to suport nabu. I try to port changes to map220v Ubuntu image

Maybe need open new tread to ask about it or send pm, this forum it's for Ubuntu images.

That's correct?
[Xiaomi Mi Pad 5] Catmengi:
Yes that thread us for ubuntu, as i know armbian is based on debian, this should mean that you got logs from /var/log/syslog? And does screen worked on armbian, i think its not, am i right? Also can you share this image with me? Email for contact: catengineerforever@gmail.com
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Windows games/apps on Linux (Ubuntu)

If you are interested please head over to the dedicated HOWTO & discussion threads. I don't want to spam this thread any further with double posts.

Just wanted to let you know that I have fixed a lot and I have added a little Furmark GPU test video. See here for more information.
[Xiaomi Mi Pad 5] LesGaR:
Great work! I'm not interested in games now, I don't have time to play :-( But I'm very interested in use office 365 desktop version. It's possible?
[Xiaomi Mi Pad 5] silviuXgaming:
Great work 😉
[Xiaomi Mi Pad 5] LesGaR:
Image created, but it's huge 8.5GB I uploaded to my onedrive.

Bot not have internet acces, maybe need some time to upload.

I send link to your email when updload finish.
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Answered your question here. Please use the dedicated thread. Thanks!
[Xiaomi Mi Pad 5] Catmengi:
Can i use my phone instead of usb-ethernet adapter? I dont want to buy one because after small amount of usages it will lay somewhere in the desk forever.
[Xiaomi Mi Pad 5] Catmengi:
@LesGaR you sent me email about new armbian image, i sent you in answer that i want it and few questions about it. Please can you answer on them and send image?
[Xiaomi Mi Pad 5] LesGaR:
Hi Finaly have a Ubuntu Uefi image to test, I sended to @Catmengi to test, any people interested?

@TheMagicMojoMan if you like add to your yours images if this image york fine, tell me.

I install only kernel 6.1 because is the best, kernel 6.7 can sleep only in kde, but in kde not have on screen.

Kernel is upgraded to last version 6.1.83, not full mainlined yet.

Use btrfs to preserve space without decrease performance, only need 3 gb for first installation.

Can you enable snapshoting with snapper, and grub-btrfs to boot dev version or stable version.

Root it's unconfigured, to increase security.

In first login, when you finish first configuration you can access by ssh. "ssh your_user@172.16.42.1" and same password as you use in first login.

Can boot Android, acces to android recovery, boot linux or windows, all in the same boot.img

Can you flash it in both slots or keeep one slot untouched

Snapshots for grub are disabled by default, but it's working fine. I use one snapshot to use stable ubuntu an another slots to dev test, and can you enable it., at least in kernel 6.1.

Grub-btrfs maybe not implented yet devtree in yours scripts

I think it's all working, but not stable yet.
[Xiaomi Mi Pad 5] Catmengi:
Image that your sent have broken rootfs. Linux on tablet not loading further that root mount. On debian mount but i/o errors on fedora cant even mount
[Xiaomi Mi Pad 5] LesGaR:
You was flashed with partition manager?

You need correct UUID to boot it
[Xiaomi Mi Pad 5] Catmengi:
Not, i flashed image via "dd". As i said earlier image not even mounting(from file)
[Xiaomi Mi Pad 5] MateusL13:
Ubuntu 24.04 with variable refresh rate support when?? 👀

Just kidding, I don't even know if it's a kernel feature or ubuntu feature.
[Xiaomi Mi Pad 5] toufic48:
Hello.

I have two question :

How to fixe the mac adress ? It change after reboot

How to create user or change the user passwd ?
[Xiaomi Mi Pad 5] toufic48:
Re.

I have install openbox.

How to config the WM as default ?
[Xiaomi Mi Pad 5] toufic48:
For this question ( How to create user or change the user passwd ? ) this ok
[Xiaomi Mi Pad 5] vl_se:
ХSomeone installed plasma mobile? Or a second mobile UI for Ubuntu?
[Xiaomi Mi Pad 5] D6072:
I compiled the newest 6.8 kernel from @map220v 's repository, and I followed your UEFI guide, but I only got a blank screen. How to solve this?
[Xiaomi Mi Pad 5] TheMagicMojoMan:
That is a well known problem. Unfortunately, we have to wait until one of the kernel developers finds a fix.
[Xiaomi Mi Pad 5] panpantepan:
it's an uefi issue or kernel issue?
[Xiaomi Mi Pad 5] Catmengi:
Unfortunately, kernel. 6.7 have broken ufs(drive), 6.8 have broken display
[Xiaomi Mi Pad 5] panpantepan:
oh, im porting pmos to nabu, should i stick with 6.1 of maverick?
[Xiaomi Mi Pad 5] Catmengi:
Yes, until someone fix the kernel. Serdeulik long time ago ported pmos to it
[Xiaomi Mi Pad 5] panpantepan:
i saw that there was a port, but as far i know is not updated anymore, and the original thread about it it's now deleted
[Xiaomi Mi Pad 5] TheMagicMojoMan:
I have added a 6.7.0 kernel to my github page here.

It is working with Ubuntu Gnome

Suspend still does not work

Portrait and landscape are swapped in Gnome setting, i.e. you have to chose portrait for the display to be in landscape and vice versa.

Since I use uefi for booting my system for quite a while now I do not ship boot loaders anymore. If you need boot loader you can build them yourself by extracting files dtb-6.7.0-sm8150+ and vmlinuz-6.7.0-sm8150+ from linux-xiaomi-nabu.deb and then follow @maverick_jia's tutorial here.

EDIT: I have now also added the files "vmlinuz-6.7.0-sm8150+" and "dtb-6.7.0-sm8150+" to the release files of the 6.7 kernel so you do not need to extract them from .deb file anymore

For example:

cat vmlinuz-6.7.0-sm8150+ dtb-6.7.0-sm8150+ > Image.gz-dtb
mv Image.gz-dtb zImage
mkbootimg --kernel zImage --cmdline "console=tty0 root=/dev/sda33 rw rootwait" --base 0x00000000 --kernel_offset 0x00008000 --tags_offset 0x00000100 --pagesize 4096 --id -o boot_sda33.img

or

mkbootimg --kernel zImage --cmdline "console=tty0 root=PARTLABEL=Ubuntu rw rootwait" --base 0x00000000 --kernel_offset 0x00008000 --tags_offset 0x00000100 --pagesize 4096 --id -o boot_Ubuntu.img

Info: Should work when using Ubuntu 22.04. I had problems with mkbootimg in Ubuntu 23.10. Please try for yourself.

If you use @LesGaR's uefi boot image you explicitely have to add devicetree to /boot/grub/grub.cfg. To boot 6.7.0 my grub.cfg contains this menu entry:

menuentry 'Ubuntu 23.10 (23.10) (on /dev/sda37)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option>
...
linux /boot/vmlinuz-6.7.0-sm8150+ root=/dev/sda37 ro $vt_handoff
devicetree /boot/dtb-6.7.0-sm8150+
}
[Xiaomi Mi Pad 5] LedBass:
Hi guys,

First of all, thank you very much for this project, it's awesome to have the option to install linux on an android tablet, even better, running mainline kernel =)

Well, I'm here because I've followed this guide and downloaded the latest image for both arch and ubuntu (23.10), both properly decompressed.

But when I tried to flash those images (tried Ubuntu and after the error, I tried arch, which is named as "alarm.img") I got this error:

terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::compare: __pos (which is 917456) > this->size() (which is 0)
[1] 298088 IOT instruction (core dumped) fastboot flash ubuntu Ubuntu_23.10_Nabu_desktop.img -v

Is there another place or another file for those images to download?
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Hi and welcome!

I would suggest that you first check size of your partitions again using 'print' command in parted.

Name of the partition should be 'Ubuntu' or 'Arch' (starting with a capital letter), respectively, when you want to use the boot loaders I have supplied. But that would have been the next error.
[Xiaomi Mi Pad 5] tom.android:
Howto install ? Please advice if you can. Thanks.
[Xiaomi Mi Pad 5] TheMagicMojoMan:
First, let me clarify that 6.1.10 kernel is still better than 6.7.0. Only install new kernel for testing purposes and if you know what you are doing. It is your own risk.

If you already use UEFI bootloader:

Backup folders /usr/lib/firmware and /usr/lib/modules/6.1.10-nabu+ (you need them if you want to revert back to 6.1.10 kernel).

Download the .deb files of the new kernel and install them with dpkg -i *.deb.

Replace "vmlinuz-6.1.10-nabu+" and "dtb-6.1.10-nabu+" with "vmlinuz-6.7.0-sm8150+" and "dtb-6.7.0-sm8150+", respectively, in /boot/grub/grub.cfg. Do not forget this step or your system will not boot anymore!

Reboot.

If there are problems with installing the new .deb files you might have to do sudo apt remove xiaomi-nabu-firmware first.

If you still use old boot loaders:

Follow instructions about how to build them with mkbootimg (see my second last post).

(I have now also added the files "vmlinuz-6.7.0-sm8150+" and "dtb-6.7.0-sm8150+" to the release files of the 6.7 kernel so you do not need to extract them from .deb file anymore.)

When you successfully built your new boot loader image then first install .deb packages of new kernel (see section above).

Finally, flash your new boot loader to boot_a if your Android uses slot b or flash it to boot_b if your Android uses slot a.

Reboot.
[Xiaomi Mi Pad 5] tom.android:
Much appreciated. I will try.
[Xiaomi Mi Pad 5] LedBass:
I don't know why but the file system is not being commited properly in parted

This is the output when I run print free in parted

print free
Model: WDC SDINFDK4-128G (scsi)
Disk /dev/block/sda: 126GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
12.3kB 24.6kB 12.3kB Free Space
1 24.6kB 32.8kB 8192B switch
2 32.8kB 65.5kB 32.8kB ssd
3 65.5kB 98.3kB 32.8kB dbg
4 98.3kB 131kB 32.8kB bk01
5 131kB 262kB 131kB bk02
6 262kB 524kB 262kB bk03
7 524kB 1049kB 524kB bk04
8 1049kB 1573kB 524kB keystore
9 1573kB 2097kB 524kB frp
10 2097kB 4194kB 2097kB countrycode
11 4194kB 8389kB 4194kB misc
12 8389kB 12.6MB 4194kB vm-data
13 12.6MB 16.8MB 4194kB bk06
14 16.8MB 25.2MB 8389kB logfs
15 25.2MB 33.6MB 8389kB ffu
16 33.6MB 50.3MB 16.8MB oops
17 50.3MB 67.1MB 16.8MB devinfo
18 67.1MB 83.9MB 16.8MB oem_misc1
19 83.9MB 101MB 16.8MB ext4 metadata
20 101MB 134MB 32.9MB bk08
21 134MB 168MB 34.2MB splash
22 168MB 201MB 33.6MB bk09
23 201MB 9328MB 9127MB super
24 9328MB 9328MB 131kB vbmeta_system_a
25 9328MB 9328MB 131kB vbmeta_system_b
26 9328MB 9396MB 67.1MB logdump
27 9396MB 9530MB 134MB minidump
28 9530MB 9664MB 134MB rawdump
29 9664MB 10.7GB 1074MB ext4 cust
30 10.7GB 10.9GB 134MB ext4 rescue
10.9GB 10.9GB 786kB Free Space
31 10.9GB 50.0GB 39.1GB userdata
32 50.0GB 70.0GB 20.0GB ext4 Ubuntu
70.0GB 126GB 55.6GB Free Space

(parted)

And this is the result of the print free after I reboot the tablet

(parted) print free
print free
Model: WDC SDINFDK4-128G (scsi)
Disk /dev/block/sda: 126GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
12.3kB 24.6kB 12.3kB Free Space
1 24.6kB 32.8kB 8192B switch
2 32.8kB 65.5kB 32.8kB ssd
3 65.5kB 98.3kB 32.8kB dbg
4 98.3kB 131kB 32.8kB bk01
5 131kB 262kB 131kB bk02
6 262kB 524kB 262kB bk03
7 524kB 1049kB 524kB bk04
8 1049kB 1573kB 524kB keystore
9 1573kB 2097kB 524kB frp
10 2097kB 4194kB 2097kB countrycode
11 4194kB 8389kB 4194kB misc
12 8389kB 12.6MB 4194kB vm-data
13 12.6MB 16.8MB 4194kB bk06
14 16.8MB 25.2MB 8389kB logfs
15 25.2MB 33.6MB 8389kB ffu
16 33.6MB 50.3MB 16.8MB oops
17 50.3MB 67.1MB 16.8MB devinfo
18 67.1MB 83.9MB 16.8MB oem_misc1
19 83.9MB 101MB 16.8MB ext4 metadata
20 101MB 134MB 32.9MB bk08
21 134MB 168MB 34.2MB splash
22 168MB 201MB 33.6MB bk09
23 201MB 9328MB 9127MB super
24 9328MB 9328MB 131kB vbmeta_system_a
25 9328MB 9328MB 131kB vbmeta_system_b
26 9328MB 9396MB 67.1MB logdump
27 9396MB 9530MB 134MB minidump
28 9530MB 9664MB 134MB rawdump
29 9664MB 10.7GB 1074MB ext4 cust
30 10.7GB 10.9GB 134MB ext4 rescue
10.9GB 10.9GB 786kB Free Space
31 10.9GB 50.0GB 39.1GB userdata
32 50.0GB 70.0GB 20.0GB Ubuntu
70.0GB 126GB 55.6GB Free Space

(parted)

That's what is keeping me from flashing the images that I've mentioned before...

Someone can help me out, please?
[Xiaomi Mi Pad 5] LedBass:
Regarding this issue, I've tried to install UEFI zip with GRUB and it did work

What can I do from here? is there any wiki or how to to install Arch or Ubuntu? Can I just grab an arch or ubuntu arm image and try to flash it using UEFI?
[Xiaomi Mi Pad 5] tom.android:
GitHub - timoxa0/Guide-Linux-Nabu: Linux installation guide for Nabu (Xiaomi Pad 5) [Github mirror]

Linux installation guide for Nabu (Xiaomi Pad 5) [Github mirror] - timoxa0/Guide-Linux-Nabu

github.com
[Xiaomi Mi Pad 5] thd2020:
Someone successfully got it installed on a mi pad 5 pro 12.4(dagu)? I had tried ubuntu version, gui ubuntu version, armbian version from https://www.armbian.com/xiaomi-pad-5-pro/, but with no luck. Why is 12.4 version so distinctive?

:( It has mainly the same processor, band, arch, etc.. with 5 pro 11 inch version, but it failed on many flash task, beaten by normal 5 pro. Just a screen enlargement, how it changed everything?
[Xiaomi Mi Pad 5] thd2020:
@maverick_jia I appreciate your work very much, and I want to know a method, regarding altering this version a little to accomplish with the pad 5 pro 12.4(dagu) version, 'cause I think they're very similar. Would simply altering some configs and parameters while compiling work? If not, how can I recompile the source to make it work with dagu? Really appreciate for your help.

p.s. I can flash it successfully on my 12.4 pad, but booted with blank screen, no recovery, etc.. I tried https://www.armbian.com/xiaomi-pad-5-pro/, and this time I could saw the initial screen splashed out quickly with some command lines( too fast to be recorded), and still blank screen. However, only USB Gadget network worked, but I could not ssh to it.
[Xiaomi Mi Pad 5] thd2020:
If there exist other things to mention: Mi pad 5 pro 12.4 seemed to have 34 partitions by default, showing in this image:

(the last two were added by me temporally)

So the pmos partition could only be created in 35. Does that matter? I noticed the boot image only got 32,33,34 version.( And I tried to put pmoson 34, userdata on 35, still no luck).
[Xiaomi Mi Pad 5] TheMagicMojoMan:
I am puzzled:

Your Ubuntu partition has 20GB and therefore is large enough for the system image which is between 7-8GB if I remember correctly.

So I wonder why you cannot flash the system image to this partition ...

Another note: To be able to use the UEFI boot loader in the future you should also generate a EFI partition (1GB in size, fat32, boot & esp flags set). More details about UEFI on the bottom of page 14.
[Xiaomi Mi Pad 5] LedBass:
I've managed to get it installed (after 3 days of knocking my head on the wall, lol)

Well, it happens that I'm a linux user and, thus, I use ADB and fastboot packaged by the distros that I use (namely Ubuntu and Fedora, both latest release) and those packages have a bug that prevents some devices to be flashed properly. That is exactly what was happening here.

What I did was to grab the official packages of adb and fastboot from here and proceed with the installation instructions referencing the downloaded package

Now everything is fine! =)

Thanks again, guys! Now this tablet has its full potential unlocked
[Xiaomi Mi Pad 5] TheMagicMojoMan:
Great - I am happy to hear that you were able to install it. Welcome onboard!