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.
k2026fwup1
with SHA256 hash 9fe8fa750e45580ab594df2ba9435b91f10a6f1281029531c13f179cd8a6523c
. The firmware image has the SHA256 has 177560c224c73d040836b17082348036430ecf59e8a32d7736ce2b80b2634f97
../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.
This process is non-persistent, the chipset RAM is cleared when the power supply is removed.ERROR: SET_DATAx never go to zero
is apparently sometimes(?) caused by a conflict with the XHCI kernel driver.
Use echo -n 0000:02:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
before and echo -n 0000:02:00.0 > /sys/bus/pci/drivers/xhci_hcd/bind
after running upd72020x-load, with the correct PCI address for your computer.upd72020x-check-and-init
automates the upload process. It parses the output of dmesg
for uPD72020x controllers which failed to initialize during boot and attemps to upload the firmware file to them.
It also performs the driver unbind/bind commands to work around the conflict with the XHCI kernel driver.
I simply call the script from rc.local, but a SystemD service file is also included.
For using SystemD, please adjust the paths/environment variables in the unit file according to your install locations of script, loader and firmware image.
If no environment variables are set, the script presumes that loader and firmware image are co-located with itself in the same directory.-r
and -w
) is implemented as well.
Reading should work, the write feature is untested, but shares the codebase with the upload feature.
However, the documentation indicates a special memory layout for the EEPROM.
Besides the firmware, it may contain a Vendor Specific Configuration Data section (VSCD) (see also discussion in #4).
This should be taken into account when trying to write to the EEPROM since this tool does not deal with the memory layout.
Thus, I strongly discourage you from using the -w
command unless you surely known what you are doing.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.
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, and reports confirmed the tool to work for them, too.
And of course: Use this tool at your own risk!
This code is based on the code which was written the comments section of this blogpost.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。