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

pocophone f1 porting #149

Open
manuel-baum opened this issue Oct 7, 2019 · 11 comments
Open

pocophone f1 porting #149

manuel-baum opened this issue Oct 7, 2019 · 11 comments

Comments

@manuel-baum
Copy link

i have a problem with porting pocophone because theres no target for sdm845 if someone know how i can fix it plese say me

@manuel-baum
Copy link
Author

also the main.mk fails because theres an problem in line 42 with @start_time (date + ....

@feherneoh
Copy link

Sorry to disappoint you, but probably the only way of "fixing" it is taking over maintenance of the whole project. Those "targets" you see are LK targets to use for OLD builds, and sdm845 should NOT have LK available according to what I know about it. It should be running UEFI out-of-the-box, so what you would need isn't the platform itself, but the tools running on top of it.

@feherneoh
Copy link

Also main.mk works just fine on my side, so you are probably missing some steps before invoking make

@manuel-baum
Copy link
Author

OK thanks for the fast awnser but i can't do anything wich is so complicated

@TAOcroatia
Copy link

Sorry to disappoint you, but probably the only way of "fixing" it is taking over maintenance of the whole project. Those "targets" you see are LK targets to use for OLD builds, and sdm845 should NOT have LK available according to what I know about it. It should be running UEFI out-of-the-box, so what you would need isn't the platform itself, but the tools running on top of it.

@feherneoh
Could you elaborate on the "tools running on top of it" part? Is there any simple way to boot .efi files?

@feherneoh
Copy link

About a way of running .efi files... No idea. I don't have any Android phone that uses XBL.

tools running on top of it
GUI, ramdisk patcher, filesystem drivers, and stuff like that

@M1cha
Copy link
Member

M1cha commented Dec 2, 2019

well there are a few theoretical and untested ways to run efi files with qcom's stock uefi:

  • you find a security bug
  • you replace abl which is an UEFI FV containing the BDS app(I dunno if the FV itself is signed, if EFI's need to be signed in general or if it'a all unprotected)
  • you find a way to undo ExitBootServices()
  • you find a way to reload the (modified) DXE-phase of UEFI without any side effects.

@feherneoh
Copy link

The FV itself is most probably NOT signed, but I'm positive it's in a signed container
The last one sounds like the "easiest" method

@luka177
Copy link

luka177 commented Jan 7, 2023

well there are a few theoretical and untested ways to run efi files with qcom's stock uefi:

* you find a security bug

Well mb mb, but i dont think so

* you replace abl which is an UEFI FV containing the BDS app(I dunno if the FV itself is signed, if EFI's need to be signed in general or if it'a all unprotected)

It is possible only on unfused devices (publicly available unfused devices are: Fxtec pro1/x, Shiftphone, Did i forgot anything? )

* you find a way to undo ExitBootServices()

Dont think its possible, but who knows

* you find a way to reload the (modified) DXE-phase of UEFI without any side effects.

Already done https://github.com/edk2-porting/edk2-msm

@M1cha
Copy link
Member

M1cha commented Jan 7, 2023

@luka177 thanks for telling me about renegrade. Looks like they managed to do everything that I weren't able to - including porting windows.

@luka177
Copy link

luka177 commented Jan 7, 2023

Well they are focused on windows, not dualboot:D and uefi drivers are proprietary

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

No branches or pull requests

5 participants