GithubHelp home page GithubHelp logo

wuwbobo2021 / rtltool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyber-murmel/rtltool

0.0 0.0 0.0 69 KB

Tool for programming the Realtek RTL8762C SoC via the UART interface

Home Page: https://hackaday.io/project/182205-py-ft10

License: GNU General Public License v3.0

Python 97.63% Nix 2.37%

rtltool's Introduction

rtltool.py

Tool for programming the Realtek RTL8762C SoC via the UART interface

hackaday.io

For log tracing please check out rtlreadlog.

Installation

To obtain this tool, clone this repository.

git clone https://github.com/cyber-murmel/rtltool.git

The file firmware0.bin in rtl8762c directory is kept for the convenience of use and is not a part of this program; it was extracted from RTL8762x MP Tool Kits(ZIP) (v1.0.6.2), which can be downloaded from the vendor page. If the zip file is placed under that directory, this tool will read from the zip package instead.

This tool is compatible with the following versions of that zip (and newer versions, as long as firmware0.bin is placed under BeeMPTool_kits_v*/BeeMPTool/Image in the zip package):

  • v1.0.5.8
  • v1.0.6.2

Python modules

This tool depends on the python modules listed in the pyproject.toml. Run the following in the root of this repository to create a development environment and install the dependencies.

poetry shell
poetry install

To enter the environment again, just run poetry shell in the root of this repository.

Nix

Users of Nix or NixOS can simply run nix-shell to enter an environment with all necessary dependencies (except for vendor files).

Usage

To use this tool, activate the venv or enter the Nix shell as described in Installation.

usage: rtltool.py [-h] [-q | -v] [--port PORT] [--baud BAUD] [--retries RETRIES]
                  {read_mac,chip_id,read_flash,erase_flash,erase_region,write_flash,verify_flash} ...

rtltool.py - Tool for programming the Realtek RTL8762C SoC

positional arguments:
  {read_mac,chip_id,read_flash,erase_flash,erase_region,write_flash,verify_flash}
                        Run rtltool.py {command} -h for additional help
    read_mac            Read MAC address from OTP ROM
    chip_id             Read Chip ID from OTP ROM (not implemented)
    read_flash          Read flash content
    erase_flash         Perform Chip Erase on SPI flash
    erase_region        Erase a region of the flash
    write_flash         Write a binary blob to flash
    verify_flash        Verify a binary blob against flash

optional arguments:
  -h, --help            show this help message and exit
  -q, --quiet           turn off warnings
  -v, --verbose         set verbose loglevel
  --port PORT, -p PORT  Serial port device
  --baud BAUD, -b BAUD  Serial port baud rate used when flashing/reading
  --retries RETRIES, -r RETRIES
                        Number of retries before giving up

rtltool's People

Contributors

cyber-murmel avatar wuwbobo2021 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.