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

MTK: Add NR5G support to DB parser #1

Open
fenghao119 opened this issue Mar 16, 2022 · 4 comments
Open

MTK: Add NR5G support to DB parser #1

fenghao119 opened this issue Mar 16, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@fenghao119
Copy link

I dumped the DB (dimensity-900) and decoded it with your code. It can be decoded as some segments, but no further decoding.

@N3vv
Copy link
Contributor

N3vv commented Mar 16, 2022

I have the same problem with dimensity-800.It looks like the format of these files(such as md1rom and md1_mddb) has changed a bit on the new soc.

@mariusmue
Copy link
Contributor

Thanks for your interested in FirmWire and the associated tooling.

Note that 5G modems are not officially supported by the framework; We started developing the framework before 5G modems were around.

The full list of tested/supported hardware models can be found here: https://firmwire.github.io/docs/quick_start.html
On MTK side, this would MT6762 (Helio P22) and MT6768 (Helio P65).

In any case, from what I recall, for 5G modems, MTK started to deploy MIPS I7200 cores. Instead of MIPS16e2, these cores would deploy nanoMIPS, so heavy changes in the emulation engine may be required to support emulation of those. (Note, my memory may be wrong here, it was a while ago when I looked into this.)

Either way, we would be happy to accept PullRequests extending the current functionality of the framework.

@grant-h
Copy link
Contributor

grant-h commented Mar 18, 2022

The database I believe changed to RocksDB format. We had some code that was for prototyping. We may bring this to production in the future. Can you provide the exact firmware images you were playing with so we can test later on? Even if we don't add nanomips support in the MTK machine, we could add this support to the loader for projects that just want to parse firmware

@N3vv
Copy link
Contributor

N3vv commented Mar 22, 2022

Thanks a lot! Here is a dimensity-800(MT6873) baseband firmware which is downloaded from a third-party website. In my previous analysis of its md1rom, I was puzzled by many GFH structures with the magic number "4D4D4D".
MT6873

@grant-h grant-h changed the title The MTK DB parser can not support the NR5G version MTK: Add NR5G support to DB parser Jun 7, 2022
@grant-h grant-h added the enhancement New feature or request label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants