Giter VIP home page Giter VIP logo

upd72020x-load's Introduction

upd72020x-load

upd72020x-load is a Linux userspace firmware loader for Renesas uPD720201/uPD720202 familiy USB 3.0 controllers. It provides the functionality to upload the firmware required for certain extension cards before they can used with Linux.

Usage

  • First, a firmware image for the chipset is required. It might be extracted from the update tool for Windows (either downloaded from the Internet or obtained from a driver disk shipped with the card).
  • The firmware image is uploaded using the command ./upd72020x-load -u -b 0x02 -d 0x00 -f 0x0 -i K2026.mem with -b, -d and -f specifying the PCI bus, device and function address.
  • The script check-and-init simplifies the process since it automatically parses the output of dmesg for uPD720202 controllers which failed to initialize during boot and attemps to upload the firmware file to them.
  • Code to read and write the (optional) EEPROM (commands -r and -w) is implemented as well. Reading should work, the write feature is untested, but shares the codebase with the upload feature.

Some technical details

The uPD72020x USB 3.0 chipset familiy supports two modes of operation. Either the firmware is stored at an external EEPROM chip and downloaded into the chipset at boot time, or it must be uploaded into the chipset by the operating system / driver. The second option always works and overrides any firmware stored into the EEPROM of the card.

The story behind this tool and more technical details are discussed in a blog post.

Closing remarks

This tool was only tested with an uPD720202 based extension card. The up- and download protocol of the uPD720201 chipset is identical according to the specification. However, certain magic numbers, e.g. device identifiers and strings which are checked before any attempt to read or write data, need most likely to be changed for uPD720201 based devices.

And of course: Use this tool at your own risk!

Acknowledgements

This code is based on the code which was written the comments section of this blogpost.

build

build for arm architecture

./autogen.sh
./configure --host=arm
make

upd72020x-load's People

Contributors

stevo01 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.