Search This thread

AlexeyGuskov

New member
Jan 8, 2023
2
3
As far as i can see you wiped out your Android.

I probably did, but i don't really care about android. And as long as fastboot is working i can always reinstall android, right?

That said, kernel seem to be only installed on slot a, and i install rootfs on userdata partition, so i think some backups are still there. The only concern is dtbo partition that i wipe, otherwise kernel wont boot.
 
I probably did, but i don't really care about android. And as long as fastboot is working i can always reinstall android, right?

That said, kernel seem to be only installed on slot a, and i install rootfs on userdata partition, so i think some backups are still there. The only concern is dtbo partition that i wipe, otherwise kernel wont boot.
Well, you don't care, but as you see some others care about what is in there, if you decide to make a howto install stuff you should take into consideration how to not wipe all, or at least let others know your result, some does not understand what and how is done and will lose all they have, and if they follow your steps do not know that everything on their device will go away and will find soon that hey lost at least their photos, documents, emails, etc....

Kernel is not installed, kernel is a part of boot.img that is placed on your boot partition, your dtbo and vbmeta are wiped out as well as userdata, if you can find boot, dtbo and vbmeta on the original firmware archive, the userdata is unique unfortunately.....
 
  • Like
Reactions: Vagelis1608

AlexeyGuskov

New member
Jan 8, 2023
2
3
Well, you don't care, but as you see some others care about what is in there, if you decide to make a howto install stuff you should take into consideration how to not wipe all, or at least let others know your result, some does not understand what and how is done and will lose all they have, and if they follow your steps do not know that everything on their device will go away and will find soon that hey lost at least their photos, documents, emails, etc....

Kernel is not installed, kernel is a part of boot.img that is placed on your boot partition, your dtbo and vbmeta are wiped out as well as userdata, if you can find boot, dtbo and vbmeta on the original firmware archive, the userdata is unique unfortunately.....

Not sure I'm getting your point. If someone wants to try a vague instructions from internet about installing experimental unsupported linux distribution built from sources on their mobile device i would totally expect them to understand a possibility that their photos would be wiped.

If you have any better instructions feel free to share it with us
 
Not sure I'm getting your point. If someone wants to try a vague instructions from internet about installing experimental unsupported linux distribution built from sources on their mobile device i would totally expect them to understand a possibility that their photos would be wiped.

If you have any better instructions feel free to share it with us
Well... my point was to explain that using your incomplete steps could lead to data loss and even more, if you want to find if i have better instructions you may want to read all replies from this thread, or open your own thread on how to install PostmarketOS on nabu and wait for others to reply about their achievements using your steps.
 
Yeah really, people that can find the instruction here on XDA better know (a bit) what they are doing. If someone wipes his photos, that's tough, but should have been expected...
Data loss is one of the key element when you create a step by step how to do something that may alter others data, is a must to exists in the steps, when you provide steps that may damage others devices that is another story, the ones who read the entire thread will understand why i didn't build the how to install yet.....
 
I have android and windows installed. Can i tripleboot this? I cant split userdata more (i have 128gb, 64/64 now). Can i install it in B system slot?
I forgot to mention, if you need to add a new partition you will have a surprise, the maximum allowed primary partitions is reached and you may need to use my TWRP/OrangeFOX thread to find an image that has all the required tools that may help you to add a new partition on your nabu. At some point i will write a dedicated post on how to achieve this. Or wait until i am done writing the wiki on how to use my PostmarketOS will contain all the required details about this and tripleboot, which right now is not that easy.
 
I forgot to mention, if you need to add a new partition you will have a surprise, the maximum allowed primary partitions is reached and you may need to use my TWRP/OrangeFOX thread to find an image that has all the required tools that may help you to add a new partition on your nabu. At some point i will write a dedicated post on how to achieve this.
I know. I already installed windows and learn parted. But idk how to resize windows partition for add 10GB free space without loose any data and without fixing anything.
 
I know. I already installed windows and learn parted. But idk how to resize windows partition for add 10GB free space without loose any data and without fixing anything.
Even you will be able to shrink the windows partition to make some free space you will not be able to add a new partition in that space, for this is required something extra, my version of sgdisk from my orangefox image
 
Even you will be able to shrink the windows partition to make some free space you will not be able to add a new partition in that space, for this is required something extra, my version of sgdisk from my orangefox image
Here is my partition table:
NumberStartEndSizeFile systemNameFlags
3110.9GB11.4GB527MBfat32espboot, esp
3211.4GB86.0GB74.6GBntfswinmsftdata
3386.0GB126GB39.6GBuserdata
i think, if i separate win partition to 64.6GB and 10Gb, i can create linux partition between win and userdata.
And i already edited gpt for create 64 partitions.
 
Here is my partition table:
NumberStartEndSizeFile systemNameFlags
3110.9GB11.4GB527MBfat32espboot, esp
3211.4GB86.0GB74.6GBntfswinmsftdata
3386.0GB126GB39.6GBuserdata
i think, if i separate win partition to 64.6GB and 10Gb, i can create linux partition between win and userdata.
And i already edited gpt for create 64 partitions.
You can check the limit with sgdisk, if you already increased the partition table size then you will not have any issues.
1673179317757.png

Resizing the windows partition without losing data is a bit tricky, also you added the windows partition before your userdata which is not very useful, you may need to save your userdata and windows partitions to files, for example
Code:
adb pull /dev/block/sda32 win.large.img
Then on your computer use gparted to shrink them as needed, then create partitions for them and flash the images with fastboot.
Also, after you save the images you can create new smaller empty partitions and copy them too as images, then mount old and new images and copy files in between them.
 
Would be awesome! So you also release the kernel changes?
I will release the source code for my project as patches (patch files) added to PostmarketOS source code available on GitLab creating a new device, this will follow to the release of the images of the preview as it is required a lot of extra work. I am publishing the source code as patches to let others quickly port them to newer kernels later.
 

underlines

Senior Member
Aug 26, 2011
490
442
Bangkok
I will release the source code for my project as patches (patch files) added to PostmarketOS source code available on GitLab creating a new device, this will follow to the release of the images of the preview as it is required a lot of extra work. I am publishing the source code as patches to let others quickly port them to newer kernels later.
You my friend are a hero.
 
I will release the source code for my project as patches (patch files) added to PostmarketOS source code available on GitLab creating a new device, this will follow to the release of the images of the preview as it is required a lot of extra work. I am publishing the source code as patches to let others quickly port them to newer kernels later.
That's nice. Maybe we can also help you to create CI Workflows for build.
 
Sorry to interrupt...
What is the difference between this and other Linux distros such as Ubuntu?
In regards to my work and my device, the main difference is that PostmarketOS works and other ones not at this stage. If you want to see the OS level differences then you may need to ask this question elsewhere, as i never used Alpine Linux and do not have much info, at first glance i can say that use a different package manager, a different startup service SysvInit while Ubuntu and newer OSes uses systemd, not sure about security patches, at this stage does not matter anyways.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    I think i'll upload PKGbuilds in a few days. A little teaser for you.
    IMG_20230303_174621_50.jpg
    5
    Let the fun begin....
    1677700121581.png
    4
    A bit of progress
    1677967825001.png
    2
    so Ive used Alpine Linux and PMOS in the past, will I feel this works pretty much as running it on Raspberry Pi or my phone ? Im a bit bored , and as long as I can't murder my tablet like Ive done to my Oneplus 8 Pro(seems to be 99.99% bricked, zero life) this sounds..possible. Necessary ? Maybe not. But Im a connoisseur of putting my time, sweat and tears into not necessary things :D.
    2
    Upgrade, nothing new or extra, yet latest stable.

    1677894336116.png
  • 40
    [UPDATE 08 Feb 2023]
    - I am using official linux kernel Linux-6.1.10
    - Preview images are available for download xiaomi-nabu-pmos-preview.6.1.10.tar.gz
    - The GUI user/pass are the standard PMOS ones
    1. user: user
    2. pass: 147147
    - Use the info from this thread about how to resize your internal storage and flash preview images
    1. Resize internal storage on Xiaomi Pad 5 (nabu) and install PostmarketOS Preview
    - Latest stable mainline kernel 6.1.10 for xiaomi pad 5 (nabu) patches are now available
    1. Touch pad takes 80 seconds to initialize at boot time, you may need to wait for it.
    2. Battery status does not work yet, i have placed a bash app that can collect battery status from dmesg, you have a shortcut on desktop, do not keep the app open, will drain battery.
    _______________________________
    Donate a coffee to support development:
    Donate via PayPal to serdeliuk



    [UPDATE 23 Jan 2023]
    - XDA staff is pushing me to provide kernel source waving the linux kernel's GPL OpenSource license.
    I am using the latest stable linux kernel which can be found here linux-6.1.7.tar.xz
    - I am using as well some mods made by others which are put together by map220v and this kernel may be found here sm8150-mainline
    - As anyone may know kernel modules/drivers can be closed source and my kernel modules will remain as such until i decide that i am ready to make them OpenSource.

    JUST TO BE NOTED, I DIDN'T PROVIDED YET ANY ROM OR BINARY KERNEL, SO I AM NOT BOUND TO ANY GPL

    [UPDATE 20 Jan 2023]
    - Mainlined to the latest kernel 6.2-rc4
    - Created the HowTo Resize internal storage on Xiaomi Pad 5 (nabu) and install PostmarketOS Preview
    - Preparing the preview images, please check https://github.com/serdeliuk/xiaomi-nabu-postmarketos

    [UPDATE 17 Dec 2022]
    - Fixed battery charging, now battery is charging as well, on slow speed.
    Yet the battery indicator still do not work properly

    [UPDATE 22 Oct 2022]
    - finally working battery status
    1666434328506.png

    1666436173168.jpeg


    [UPDATE 11 Sep 2022]
    - mainlined to 6.0-RC4
    - GPU is finally working
    - panel and brightness is working
    - bluetooths is working

    [UPDATE 2 Jul 2022]
    - mainlined to the latest available kernel, 5.19.0-RC4
    - WiFi finally works
    nabu.wifi.ok.jpg

    Hello,

    I have successfully ported PostmarketOS to my Xiaomi Pad 5 tablet.
    pmos.working.touch.jpg

    I have fixed SPI touchscreen and currently boot from B slot, on A slot is still Android (dual boot)
    WiFI do not work yet and the network is provided via USB, as the ssh access on the tablet too.

    # here you can find the official page for this device
    PostmarketOS Xiaomi-nabu page

    I will keep you posted about the progress.

    Best regards

    M
    10
    I have a bit of success, finally working battery status as you can see on images updated on #1 post
    9
    I have created the official device page, is not ready yet, but a start
    PostmarketOS Xiaomi-nabu page
    9
    It's bluetooth, as well as the Smart Pen, but they don't work in non-stock... GSIs, for exemple
    Thanks for the info, if are bluetooth and if i will make the BT work then for sure I will find a way to make them work, will be a bit difficult to test as i do not have the keyboard or the pen and are a bit expensive....
    There is just a matter of time to make the already ported touchscreen driver from downstream to mainline to have the pen working, in regards to the keyboard that should work directly (without charging) the pogo pins probably have a hall sensor to activate the power output to charge the keyboard when connected, the same should exists on the other side for pen, but those are far away on my development scale, as right now i am trying to bring up the multi touch gestures and prepare a release, as the wifi works, even without GPU the tablet is usable as a Linux device already.
    8
    I have a bit of success here, WiFi finally works, see post #1 for a nice image.