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

Add support for msm8996(Xiaomi mi 5, Gemini) #388

Open
StarVase opened this issue Apr 25, 2024 · 7 comments
Open

Add support for msm8996(Xiaomi mi 5, Gemini) #388

StarVase opened this issue Apr 25, 2024 · 7 comments
Labels
help wanted Extra attention is needed invalid This doesn't seem right Xiaomi

Comments

@StarVase
Copy link

Add support for msm8996
(Xiaomi mi 5, Gemini)

@qaz6750 qaz6750 added help wanted Extra attention is needed invalid This doesn't seem right labels Apr 25, 2024
@coreycusick
Copy link

Windows wouldn't boot on that chip, so I mean porting for that particular SOC would in my opinion be a waste of effort. I suppose someone may, and you are more than welcome to try.

@gus33000 gus33000 added the Xiaomi label Jul 7, 2024
@A-Shahbazi
Copy link

Windows wouldn't boot on that chip, so I mean porting for that particular SOC would in my opinion be a waste of effort. I suppose someone may, and you are more than welcome to try.

I would love to try mainline linux on my phone, so the only use for this project isn't using windows on one's phone.
And there is no documentation related to porting to a new SoC, otherwise I would give it a try.

@gus33000
Copy link
Contributor

gus33000 commented Jul 9, 2024

Booting linux never required the use of a third party uefi project like project renegade. Maintainers of the linux kernel ported linux mainline to phones without ever using one. All they do is flash a new boot image with the right device tree, and ramdisk. and on newer devices, where device tree overlays are exist, they erase the device tree binary overlay partition (DTBO). If you want to try linux not having an uefi should not be such a blocker.

@A-Shahbazi
Copy link

A-Shahbazi commented Jul 19, 2024

Booting linux never required the use of a third party uefi project like project renegade. Maintainers of the linux kernel ported linux mainline to phones without ever using one. All they do is flash a new boot image with the right device tree, and ramdisk. and on newer devices, where device tree overlays are exist, they erase the device tree binary overlay partition (DTBO). If you want to try linux not having an uefi should not be such a blocker.

Sorry, I guess I didn't explain my point thoroughly. Having a UEFI bootloader isn't a blocker for testing mainline kernel on a phone. But my understanding is that for testing one has to compile and flash boot image every time they want to test a different version of kernel. Using a bootloader they simply have to edit the bootloader entries and they can use precompiled mainline kernel and ramdisk images(which are released in a regular basis in linux distros' arm64 package repositories).

@gus33000
Copy link
Contributor

gus33000 commented Jul 21, 2024

Booting linux never required the use of a third party uefi project like project renegade. Maintainers of the linux kernel ported linux mainline to phones without ever using one. All they do is flash a new boot image with the right device tree, and ramdisk. and on newer devices, where device tree overlays are exist, they erase the device tree binary overlay partition (DTBO). If you want to try linux not having an uefi should not be such a blocker.

Sorry, I guess I didn't explain my point thoroughly. Having a UEFI bootloader isn't a blocker for testing mainline kernel on a phone. But my understanding is that for testing one has to compile and flash boot image every time they want to test a different version of kernel. Using a bootloader they simply have to edit the bootloader entries and they can use precompiled mainline kernel and ramdisk images(which are released in a regular basis in linux distros' arm64 package repositories).

None of the distrubutions that are precompiled contain a kernel image pre-built with support for phone socs. You will always have to build one on your on and update it. Default Def config doesn't include support for exotic phone socs in those usually.

@A-Shahbazi
Copy link

None of the distrubutions that are precompiled contain a kernel image pre-built with support for phone socs. You will always have to build one on your on and update it. Default Def config doesn't include support for exotic phone socs in those usually.

Well I guess that could be the exact point of "Testing"!

@gus33000
Copy link
Contributor

gus33000 commented Jul 25, 2024

Sure enough, except think again about why you want to use an UEFI in the first place here:

Using a bootloader they simply have to edit the bootloader entries and they can use precompiled mainline kernel and ramdisk images(which are released in a regular basis in linux distros' arm64 package repositories).

This will never work, stock distributions do not contain a suitable kernel image, so its not like you gain any real benefit.

Either way, its not like support is here today anyway, I am providing a solution to use linux on these phones without having to wait for something that may not arrive anytime soon, if you want to try linux thats the path forward. If you dont then theres no path here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right Xiaomi
Projects
None yet
Development

No branches or pull requests

5 participants