Skip to content

[Analyzer] Failed to save a loader snapshot #2

@BreezeWu

Description

@BreezeWu

Dear,
Loris is absolutely fantastic! I'm very grateful that you've open-sourced it — it's a huge contribution to the community.
There are some issues I'd like to get your help.

"we need to use Python to save a loader snapshot. Run the following command in the loris-analyzer-python container."

python3 loris_analyzer.py -n 1 --debug --firmwire-log debug --angr-log info -b modem_files/CP_G973FXXSHHWI1_CP25062570_CL25257816_QB71477174_REV01_user_low_ship.tar.md5

At first, there is an error - No module named 'loris_analyzer.comparison'.
I tried to use pypy3 (instead of python3):

pypy3 loris_analyzer.py -n 1 --debug --firmwire-log debug --angr-log info -b modem_files/CP_G973FXXSHHWI1_CP25062570_CL25257816_QB71477174_REV01_user_low_ship.tar.md5

While it complained that ModuleNotFoundError: No module named 'loris_analyzer.comparison'.

Then I commented the following line in loris_analyzer/__init__.py:

# from .comparison import LorisAnalyzerAblation

It seems to go forware, but unfortunately, it core dumped.

<MPUEntry [00100000, 0011ffff] id=22 perm=rw->
TOCEntry<BOOT, offset=00000420, size=00001ff0, address=40000000>
TOCEntry<MAIN, offset=00002420, size=0262d760, address=40010000>
Segmentation fault (core dumped)

Segmentation fault.log

Can you guide me on how to resolve this issue?
(Is it because FirmWire is not configured correctly? How can I configure FirmWire to work together with Loris?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions