GitPedia

Brother printer fwupd

Script to update the firmware of some Brother printers

From sedrubal·Updated April 4, 2026·View on GitHub·

Script to update the firmware of some Brother printers (e.g. MFC). The project is written primarily in Python, distributed under the GNU General Public License v3.0 license, first published in 2019. Key topics include: brother, firmware, mfc, printer, snmp.

Brother Printer Firmware Update Tool

Script to update the firmware of some Brother printers (e.g. MFC).

Idea:

Brother provides drivers etc. for Linux but when you want to update the firmware of your printer,
Brother only provides ugly programs for Windows or Mac OS.
I think, you should do firmware upgrades from time to time, because the supported printers have
advanced network functionality, like SNMP, HTTP Web Management UI, and much more.
Some of them can be connected with Ethernet and some of them with WiFi.
The more features a system has, the greater is the risk of bugs.

You could try to use the official tools. You could try to run the Windows EXE in Wine for example.
First it seemed to work, but then it crashed - like almost always I tried to run programs in wine.
You could also extract the jar from the Mac OS DMG as described here.
But unfortunately this tool didn't find my printer and I had no chance to debug the problems as it
didn't give me any hint, what it is trying to do.

Then I found blog posts like
this, that described a
way to update the firmware with only standard Linux tools.
I tried it and it worked :tada:

To make it a bit easier, I wrote this simple script.

See also

What the script does:

  1. Optional (if no IP is given): Discover the printer using MDNS
  2. Get printer info (like model name, firmware versions, etc.) with SNMP (v2c)
  3. Query the firmware download URL from Brother API server
  4. Download the firmware
  5. Upload the firmware to the printer over port 9100 (PDL-Datastream / jetdirect)

Note: Make sure the required protocols are enabled in the printer settings

Tested with:

  • DCP-9020CDW
  • DCP-9022CDW
  • HL-5370DW
  • MFC-9142CDN
  • MFC-9332CDW
  • MFC-L3750CDW

Usage

A: Run with docker / podman:

The image is published on hub.docker.com.

bash
podman run --rm -it --network=host therealsedrubal/brother-printer-fwupd

B: Run package using pipx:

shell
pipx run brother-printer-fwupd[autodiscover]

C: Install package using pip:

shell
pip install --user --upgrade brother-printer-fwupd[autodiscover]

If this does not work, try pip install --user --upgrade brother_printer_fwupd.

D: Development installation:

  1. Clone the repo
  2. Install system dependencies: libxslt-dev, libxml2-dev
  3. uv sync --all-extras
  4. uv run brother-printer-fwupd --help
  5. uv run brother-printer-fwupd-autodiscover --help
  6. uv run brother-printer-fwupd-snmp-info --help

Use at your own risk!™

Contributions welcome.

Unit tests

Start the simulator in a second terminal:

bash
cd ./simulator/ uv run ./run.py

Make sure, that you have all python interpreter versions installed. Then, run the unit test:

bash
uv run tox

License

© 2025 sedrubal (GPLv3)

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from sedrubal/brother_printer_fwupd via the GitHub API.Last fetched: 6/29/2026