Coder Social home page Coder Social logo

Comments (24)

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

Hello. I do not suggest porting it to pixel. You UFS will be erased if you add UFSDXE. So, it's very dangerous. The porting guide is on the way. I can provide a quick note. Quick Note: 1. copy nubia-tp1803 to google-coral. (Brand-codename). 2. Remove all files under google-coral/CustomizedBinaries & google-coral/PatchedBinaries. 3. Extract files from your device's xbl and put them under CustomizedBinaries. 4. Enable MLVM in Defines.dsc.inc 5. Edit resolution in PcdFixedAtBuild.dsc.inc 6. Remove UFSDxe part in DXE_Spec.inc. 7. Patch your device's dxe and put them under PatchedBinaries. 8. Replace tp1083.dtb with coral.dtb (you can find your device's dtb in /sys/firmware/fdt.) 9. ./build_uefi.sh -d google-coral -s 10. fastboot boot Build/google-coral/google-coral_xG.img Again, if you added UFSDxe, there is a high possibility that your ufs will be erased. Sunflower2333.

I see.But I still have these questions:

  1. How to extract xbl.img ? From the stock ROM or device ? If I need to extract it from my device, how to ?
  2. How to patch my device's dxe and put them under PatchedBinaries ?
  3. I can found my device's DTB, do I need to do anything extra with it?
  4. Which build environment should I have ? Still use Ubuntu 20.04LTS?
  5. Can I boot Windows 11 from external storage devices like USB Drive ?
    Help me please.

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024
    • excute dd if=/dev/block/by-name of=/sdcard/xbl.img on your phone. - copy or move it to your computer. - right click -> 7zip- > extract -> #:e -> 4.gz - you will see all efi files in 4.gz 2. How to patch: - You can use IDA to patch it. I think the old guide has it. - To know where needs patch, you need to refer other devices: hexdump -C a.efi > a.txt hexdump -C b.efi > b.txt diff a.txt b.txt - a.efi is original binary, b.efi is a patched binary. - The diff will tell you where and how to patch. - Find the same function in your device's dxe. - Patch it with a tool. 3. - Nothing to do with your dtb except rename. 4. - As you can see in the README.md, if you do not have ubuntu20.04 , you can choose docker. Or, you can use github workflow. I haven't tested other higher verisons or other distros. 5. - boot from USB is not available, because the usb mode in uefi is peripheral. - boot from SD, I do not know. Maybe SdccDxe needs patch. You can have a try. Sunflower2333.

That makes me more clearly to build. But I still have 3 questions left:
1.My phone is running LineageOS , can I use Lineage OS's DTB and xbl.img?
2.If I can't , my phone's stock rom has multiple Android versions, from 10 to 13. Which version I should use to extract DTB and xbl.img?
3.According to step 2, What is IDA? How can I find the dxe in the same function like my device's dxe ? Which tool I need to patch?
I'm sorry to trouble you, but I'd appreciate it if you could help me.

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024
  1. You can use the dtb and the xbl.
  2. IDA is the tool. Or you can choose Ghidra.

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

Thanks for helping me!

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

You are welcome. If you do not have other issue, I'll close this issue.

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

Well, I have finished building,and I got the UEFI image, however, it refuse to boot on my Pixel 4 XL. Why? Did I did something wrong?

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

Screenshot_20221113-123840_CoolApk
By the way, someone let me do these.

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

拒绝启动?你可以fastboot devices看一下启动没启动。如果启动了,fastboot devices是看不到设备的。如果可以看到。。那就是dtb问题了。
至于ufs啊,你需要patch ufsdxe,虽然我不建议。如果patch了,你可以在uefi使用ufs,但是如果你使用uefi启动什么系统(比如win或者linux),然后那些系统上的驱动尝试调用ufs,你的ufs会被擦。对于windows,你需要在dsdt里面删掉,

iasl DSDT.aml

会生成DSDT.dsl
删除其中的Device(UFS0){XXX}那一大块就好了
然后

iasl DSDT.dsl

编译回去

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

Fastboot 提示error boot prepare ,直接boot 的話ADB 會提示無法校驗映像...那真正的DTB到底怎麼提取?

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

是不是DTB複製到電腦的時候出的問題?好像要用ADB命令複製?

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

那要怎麼看呢?

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

校驗了,是一致的,但就是無法啟動。會不會是重命名方式的問題?

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

那一位?

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Android-Piepaint avatar Android-Piepaint commented on September 26, 2024

好的。

from msmnilepkg.

Thang150898 avatar Thang150898 commented on September 26, 2024

How to build an image please guide in detail

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

sunflower2333 avatar sunflower2333 commented on September 26, 2024

from msmnilepkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.