Giter VIP home page Giter VIP logo

mediatek_flash's Introduction

MediaTek firmware dumper for Linux

Currently only for MT6260/MT6261 chipset. You can edit the code to work with other MediaTek chipsets.

  • THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, USE AT YOUR OWN RISK!

Instructions

  1. Initialize the USB serial driver:
$ sudo modprobe ftdi_sio
$ echo 0e8d 0003 | sudo tee /sys/bus/usb-serial/drivers/generic/new_id
  1. Run this command and connect your device to USB:
$ sudo ./mtk_dump connect  show_flash 1  read32 0 0x400000 dump.bin
  • Where 0x400000 (4MB) is the expected length of flash in bytes (may be more or less).
  • An example payload is here (you can read the BROM with it).

Using the tool without sudo

If you create /etc/udev/rules.d/80-spd-mtk.rules with these lines:

# Spreadtrum
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d00", MODE="0666", TAG+="uaccess"
# MediaTek
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="0003", MODE="0666", TAG+="uaccess"

...then you can run mtk_dump without root privileges.

  • As you can see this file for both Spreadtrum and MediaTek chipsets.

Using libusb to connect

You can build the tool with libusb method: make LIBUSB=1

For Linux users, this method doesn't require the ftdi_sio kernel module, but libusb/libusb-dev packages must be installed.

For Windows users, this method is the only one available, should also require drivers (the same as needed for flashing tools).

Useful links

  1. Fernly - some of the MT6260 reversed
  2. MTKClient - tools for many MTK chipsets (in Python)
  3. decompressor for ALICE chunks in the firmware (in Python)
  • Also I have the tool for Spreadtrum chipsets.

mediatek_flash's People

Contributors

ilyakurdyukov avatar

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.