Skip to content
Firmware loader for Renesas uPD72020x USB 3.0 chipsets for Linux
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README.md
check-and-init
upd72020x-load.c

README.md

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.

You can’t perform that action at this time.