Git Product home page Git Product logo

esp32_image_parser's People

Contributors

lynerc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32_image_parser's Issues

Support for other ESP32 variants (C3, etc)

It would be really great to have support for other ESP32 chip variants, in particular the RISC-V-baed chips. I got the first step of selecting the "esp32c3" in LoadFirmwareImage, but still need to figure out the processor family changes required from EXTENSA to RISCV, etc.

name 'LoadFirmwareImage' is not defined

I get this error when I try to dump a partition:

./esp32_image_parser.py create_elf flash.bin -partition app0 -output app0.elf
Dumping partition 'app0' to app0_out.bin
Traceback (most recent call last):
  File "softs/esp32_image_parser/./esp32_image_parser.py", line 281, in <module>
    main()
  File "softs/esp32_image_parser/./esp32_image_parser.py", line 264, in main
    image2elf(dump_file, output_file, verbose)
  File "softs/esp32_image_parser/./esp32_image_parser.py", line 41, in image2elf
    image = LoadFirmwareImage('esp32', filename)
NameError: name 'LoadFirmwareImage' is not defined

This can be fixed in esp32_image_parser.py if you add from esptool.bin_image import *:

import sys
import json
import os, argparse
from makeelf.elf import *
from esptool import *
from esptool.bin_image import *
from esp32_firmware_reader import *
from read_nvs import *
...

KeyError '.dram0.data'`

I got this error. any help will be appreciated.

PS D:\Development\esp decompiler\esp32_image_parser> python ./esp32_image_parser.py create_elf  firmware_before_corruption.bin -partition ota_0 -output output.elf  
Dumping partition 'ota_0' to ota_0_out.bin
Unsure what to do with segment: BYTE_ACCESSIBLE, DRAM
Traceback (most recent call last):
  File "./esp32_image_parser.py", line 282, in <module>
    main()
  File "./esp32_image_parser.py", line 265, in main
    image2elf(dump_file, output_file, verbose)
  File "./esp32_image_parser.py", line 160, in image2elf
    size = len(section_data[name]['data'])
KeyError: '.dram0.data'

Show partitions says reading partitions and then exits

Hello,

I am trying to dump a esp32 binary image from a Xiaomi IR remote, unfortunately it isn't working.

Any ideas why this is happening?

(venv) [user@fedora esp32_image_parser-master]$ ./esp32_image_parser.py show_partitions chuangmi.remote_2.0.6_0006.v2.bin
reading partition table...
(venv) [user@fedora esp32_image_parser-master]$

[create_elf] KeyError: '.iram0.text'

Getting the following errors on a binary

Dumping partition 'ota_0' to ota_0_out.bin
Unsure what to do with segment: PADDING
Unsure what to do with segment: RTC_DATA
Traceback (most recent call last):
  File "esp32_image_parser.py", line 283, in <module>
    main()
  File "esp32_image_parser.py", line 266, in main
    image2elf(dump_file, output_file, verbose)
  File "esp32_image_parser.py", line 159, in image2elf
    size = len(section_data['.iram0.vectors']['data']) + len(section_data['.iram0.text']['data'])
                                                             ~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: '.iram0.text'

KeyError: '.dram0.data'

Dumping partition 'app0' to app0_out.bin
Unsure what to do with segment: BYTE_ACCESSIBLE, DRAM
Unsure what to do with segment: RTC_IRAM
Traceback (most recent call last):
File "C:\Desktop\esp32_image_parser-master\esp32_image_parser.py", line 282, in
main()
File "C:\Desktop\esp32_image_parser-master\esp32_image_parser.py", line 265, in main
image2elf(dump_file, output_file, verbose)
File "C:\Desktop\esp32_image_parser-master\esp32_image_parser.py", line 160, in image2elf
size = len(section_data[name]['data'])
KeyError: '.dram0.data'

rtc_iram implementation

Hello Guys,
Have you implemented rtc_iram.
Error says : "Unsure what to do with segment: rtc_iram"
Please help.
Thanks

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.