Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Mi MIX 2S (polaris) #54

Open
geckosit opened this issue Sep 18, 2024 · 26 comments
Open

Xiaomi Mi MIX 2S (polaris) #54

geckosit opened this issue Sep 18, 2024 · 26 comments

Comments

@geckosit
Copy link

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

WhatsApp.Video.2024-09-18.at.13.12.22.mp4
@Shubhamvis98
Copy link
Owner

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

@geckosit
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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

@geckosit
Copy link
Author

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

@Shubhamvis98
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

Check this: #48

@geckosit
Copy link
Author

Thank you, Can you help me?

@SHLzf
Copy link

SHLzf commented Sep 24, 2024

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

mix2s,wifi no work
How to solve it

@SHLzf
Copy link

SHLzf commented Sep 24, 2024

谢谢,你能帮我吗?

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

@geckosit
Copy link
Author

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

@patpatng
Copy link

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
Copy link
Owner

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

@patpatng
Copy link

@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
Copy link
Owner

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
Copy link

patpatng commented Oct 29, 2024

@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
Copy link
Owner

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

@patpatng
Copy link

patpatng commented Nov 4, 2024

No, nothing, just blank

@aantelo
Copy link

aantelo commented Dec 10, 2024

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

Same issue.. some one have it working?

@Shubhamvis98
Copy link
Owner

Just uploaded the Polaris boot.img.
Can anyone try it and let me know if the Wi-Fi issue persists?
https://github.com/Shubhamvis98/kali-pinephone/releases/tag/20241104

@YURI-PR1ME
Copy link

Just uploaded the Polaris boot.img.
Can anyone try it and let me know if the Wi-Fi issue persists?
https://github.com/Shubhamvis98/kali-pinephone/releases/tag/20241104

The newest boot img cannot work .the screen keep black just like the screen device not be started or the same situation can be find when the system didn't found i don't know which problem it is right now . But I can sure the system is booting because it auto restarted once when screen black out.

@YURI-PR1ME
Copy link

Just uploaded the Polaris boot.img.
Can anyone try it and let me know if the Wi-Fi issue persists?
https://github.com/Shubhamvis98/kali-pinephone/releases/tag/20241104

The newest boot img cannot work .the screen keep black just like the screen device not be started or the same situation can be find when the system didn't found i don't know which problem it is right now . But I can sure the system is booting because it auto restarted once when screen black out.

It not work even i use old user data and new boot img.i think some problem between wifi driver and screen driver.

@YURI-PR1ME
Copy link

Just uploaded the Polaris boot.img.
Can anyone try it and let me know if the Wi-Fi issue persists?
https://github.com/Shubhamvis98/kali-pinephone/releases/tag/20241104

The newest boot img cannot work .the screen keep black just like the screen device not be started or the same situation can be find when the system didn't found i don't know which problem it is right now . But I can sure the system is booting because it auto restarted once when screen black out.

The work one for me is release 20240822 and release 20240810 both of them can boot into system and can not open wifi .

@YURI-PR1ME
Copy link

Just uploaded the Polaris boot.img.
Can anyone try it and let me know if the Wi-Fi issue persists?
https://github.com/Shubhamvis98/kali-pinephone/releases/tag/20241104

If you fix it ,i can help to test new img.

@Shubhamvis98
Copy link
Owner

Send your dmesg log here. Reboot your device, put the dmesg log in a text file and upload here. Also put other details like kernel version and loaded modules as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants