Skip to content

Attempt at porting edk2 to Google Pixel devices based on the Tensor chip

License

Notifications You must be signed in to change notification settings

adomerle/edk2-tensor

 
 

Repository files navigation

EDK2 UEFI firmware porting attempt for Google Pixel 6 Pro (and other Tensor devices)

This repo is based on Renegade Project (edk2-msm). It will contain the old files and the file structure for the time being.

The folder layout and the way the project builds are bound to change a lot.

Note that the watchdog will timeout after a minute and reboot the phone. I'll keep that for now as it's convinient.

IMG_20230909_211830 IMG_20230909_211838 IMG_20230909_211841 IMG_20230909_211902

Enabling PStore debugging

Run the following commands:

fastboot oem ramdump usb
fastboot oem ramdump compression disable
fastboot oem ramdump encryption disable
fastboot oem ramdump config

As you can see, these commands will turn your phone into a security hole, so only run them if you are comfortable with that.

Building and running

Simply execute ./raven-build-and-run.sh with your phone plugged in and in fastboot. After double clicking the power button and waiting for a minute, hold the volume down to get back into fastboot and to get logs (if you run it with -p)

Memory map

The memory map located at Silicon/Google/Tensor/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.c is based off of the ouput of cat /proc/iomem (formatted nicely here) and almost certainly needs work on it done, along with PcdSystemMemoryBase and Size in tensor.dsc.

Telegram group chat and contributing to the project

Any and all help i can give or receive should go through this Telegram group

Acknowledgements

License

All code except drivers in GPLDriver directory are licensed under BSD 2-Clause. GPL Drivers are licensed under GPLv2 license.

About

Attempt at porting edk2 to Google Pixel devices based on the Tensor chip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.8%
  • C++ 1.7%
  • Python 1.4%
  • Shell 0.6%
  • Assembly 0.3%
  • NASL 0.2%