Shubhamvis98 / kali-pinephone

Kali Linux Phosh for PinePhone/Pro and other QCOM Mainlined Devices
80 stars 11 forks source link

Xiaomi Mi MIX 2S (polaris) #54

Open geckosit opened 1 month ago

geckosit commented 1 month ago

Hello everyone, I bought a Xiaomi Mi Mix 2S specifically to install Nethunter Pro. Since the device is new, I followed all the instructions:

Install on EMMC (fastboot method): Boot your device into fastboot and run the following commands: unxz kali_phosh_sdm845_YYYYMMDD.img.xz fastboot flash userdata kali_phosh_sdm845_YYYYMMDD.img fastboot flash boot boot-{model}.img fastboot erase dtbo # if your device has AB partitions

The problem is that now the phone no longer boots in any way. I thank anyone who can help me.

I'm sending the terminal screenshot and a video of the phone's boot: ec5ce296ed8e17669883515f6791637b

https://github.com/user-attachments/assets/1eeb894e-c941-40cf-954c-c60ff577de4b

Shubhamvis98 commented 1 month ago

Hi @geckosit, Can you try mobian, check if it works or not.

geckosit commented 1 month ago

Thank you very much, @Shubhamvis98. I tried with Mobian but I still encountered issues. I'm attaching the photos and screenshots: Screenshot_2024-09-18_15-07-28 Screenshot_2024-09-18_15-06-38 WhatsApp Image 2024-09-18 at 15 24 03

Shubhamvis98 commented 1 month ago

In the above screenshot, it's missing fw issue. It can be fixed using droid-juicer or you can repack the boot.img with firmwares and flash.

Shubhamvis98 commented 1 month ago

And if mobian is working then I don't think there should be any issue with Kali Phosh.

geckosit commented 1 month ago

Thank you @Shubhamvis98 for the time you're giving me. Can you help me with these steps?

Shubhamvis98 commented 1 month ago

You can go through droid-juicer config file. Then copy all the split files from android partitions and use pilsquasher to merge the split files into mbn.

geckosit commented 1 month ago

Thank you, @Shubhamvis98 . I installed version 2024.3 20240822 and now it works, although with several issues. The most important ones are that the Wi-Fi doesn't work and the USB-C doesn't detect any peripherals (Memory, external Wi-Fi, and Ethernet). Can you help me?

Shubhamvis98 commented 1 month ago

Check this: #48

geckosit commented 1 month ago

Thank you, Can you help me?

SHLzf commented 1 month ago

你可以通过droid-juicer配置文件,然后从android分区复制所有的分割文件,并使用pilsquasher将分割文件合并到mbn中。

mix2s,wifi no work How to solve it

SHLzf commented 1 month ago

谢谢,你能帮我吗?

have you solved the wifi problem of mix2s? If so, please help me

geckosit commented 1 month ago

I haven't solved the Wi-Fi problem for the Mi Mix 2S yet.

patpatng commented 3 weeks ago

Hi @Shubhamvis98 , may I know how to create config.tmol for mix2s? My mix2s in TWRP, It said Kind : NotFound, "Unable to detect device"

I tried to backup the firmware from TWRP and able to extract it. However, I don't know how to repack into boot.img. Please help. Tks.

Shubhamvis98 commented 3 weeks ago

@patpatng, use pilsquasher to merge the firmwares into mbn files and then place the mbn fw files into ramdisk. You can use AIK.

patpatng commented 3 weeks ago

@Shubhamvis98 Thank you for your reply. There are 40 *.mbn file after running pilsquasher, is it normal? Also, where is the location for replacing on ramdisk? ramdisk/lib/firmware or ramdisk/lib/firmware/qcom?

I tried to repack the boot image but the new image if I include all *.mbn will be 99M which is larger than the 64M original boot partition. Am I missing something? Tks.

Shubhamvis98 commented 3 weeks ago

Do not include all mbn files, include only necessary ones. Check the dts or droid-juicer config file of your device. You'll get the name of required mbn files and the paths.

patpatng commented 1 week ago

@Shubhamvis98 Thank you for your reply, I try to follow the adroid-juicer polaris template, find all the files by mounting the partition dump and put them under ramdisk directory and build a boot.img. Unfortunately, the bootup screen is black and can't see any console message.

My min2s is China 6GB ram version which doesn't have modem partition, is it the cause of black? How to get rid of it? Thanks!

Shubhamvis98 commented 5 days ago

do you see the console logs at booting? the simplefb should work before GUI/Phosh.

patpatng commented 4 days ago

No, nothing, just blank