mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 22:30:49 -08:00
Ship MultiTech's mts_mt9234mu.fw for Linux
linux/firmware has MultiTech's firmware for the MT9234MU, with a README that gives its source (linux-firmware before June 2026), that its licence is unknown, and that the AGPL and commercial licences do not apply to it. cmake --install puts it in share/dmodem-gui/firmware; with -DDMODEM_GUI_INSTALL_FIRMWARE=ON also in /lib/firmware (and as mts_mt9234zba.fw). When a modem has no firmware, Settings now names the shipped copy and where to copy it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRTNWiwCE3duMg28226
This commit is contained in:
6 files changed
+83
-7
No files matched your search
+6
-3
@@ -128,13 +128,16 @@ firmware into the chip each time you connect the modem.
|
||||
|
||||
Linux does not include `mts_mt9234mu.fw` after June 2026. MultiTech gave no
|
||||
license that lets other persons distribute it, thus linux-firmware removed
|
||||
it. Get the file from the Linux driver of MultiTech, or from a
|
||||
linux-firmware package from before that date. Put it in `/lib/firmware`,
|
||||
it. This repository includes the file, with a notice
|
||||
(`linux/firmware/README.md`). The AGPL-3.0 license does not apply to it.
|
||||
`cmake --install` puts it in `share/dmodem-gui/firmware`, and
|
||||
`-DDMODEM_GUI_INSTALL_FIRMWARE=ON` also puts it in `/lib/firmware`. Else,
|
||||
copy it to `/lib/firmware` (for the MT9234ZBA-USB, as `mts_mt9234zba.fw`),
|
||||
then disconnect the modem and connect it again.
|
||||
|
||||
On Linux, the app finds the modem in sysfs (`linux/src/usbmodem.c`). The
|
||||
line settings show where the modem is, with a "Use" button. If the modem
|
||||
has no firmware, they show what to do. When the app opens the port of the
|
||||
has no firmware, they show the command that copies the file. When the app opens the port of the
|
||||
modem, it sets RTS/CTS flow control (`CRTSCTS`). The modem uses `&K3` from
|
||||
the factory.
|
||||
|
||||
|
||||
@@ -13,6 +13,11 @@ add_executable(dmodem-gui
|
||||
src/termview.c
|
||||
src/audio.c)
|
||||
target_link_libraries(dmodem-gui PRIVATE dmodemctl dmodemssh PkgConfig::GTK)
|
||||
# where the MT9234MU's firmware is installed, and where it is in the source
|
||||
include(GNUInstallDirs)
|
||||
target_compile_definitions(dmodem-gui PRIVATE
|
||||
DMODEM_FIRMWARE_DIR="${CMAKE_INSTALL_FULL_DATADIR}/dmodem-gui/firmware"
|
||||
DMODEM_FIRMWARE_SRC="${CMAKE_CURRENT_SOURCE_DIR}/firmware")
|
||||
# the sound of voice calls: PulseAudio's client (PipeWire serves it
|
||||
# too); without it the app has no sound
|
||||
pkg_check_modules(PULSE IMPORTED_TARGET libpulse-mainloop-glib)
|
||||
@@ -39,6 +44,16 @@ install(FILES data/io.github.d_modem.DModem.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
|
||||
install(FILES data/io.github.d_modem.DModem.metainfo.xml
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
|
||||
# MultiTech's firmware for the MT9234MU (licence unknown: linux/firmware/README.md)
|
||||
install(FILES firmware/mts_mt9234mu.fw firmware/README.md
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/dmodem-gui/firmware)
|
||||
option(DMODEM_GUI_INSTALL_FIRMWARE
|
||||
"Also install mts_mt9234mu.fw (and mts_mt9234zba.fw) in /lib/firmware" OFF)
|
||||
if(DMODEM_GUI_INSTALL_FIRMWARE)
|
||||
install(FILES firmware/mts_mt9234mu.fw DESTINATION /lib/firmware)
|
||||
install(FILES firmware/mts_mt9234mu.fw DESTINATION /lib/firmware
|
||||
RENAME mts_mt9234zba.fw)
|
||||
endif()
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/assets/dmodem.svg
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps
|
||||
RENAME io.github.d_modem.DModem.svg)
|
||||
@@ -0,0 +1,32 @@
|
||||
# The firmware of the MultiTech modems
|
||||
|
||||
| File | For | Size (octets) | SHA-1 | License | Source |
|
||||
|---|---|---|---|---|---|
|
||||
| mts_mt9234mu.fw | MultiTech MT9234MU and MT9234ZBA-USB (TI TUSB3410) | 13769 | `5537e93217c509129d5a870b9fe089cd58647070` | unknown | linux-firmware, before June 2026 (`WHENCE`: "Multi-Tech USB fax modems", "Licence: Unknown") |
|
||||
|
||||
The TUSB3410 of these modems has no firmware of its own. The
|
||||
`ti_usb_3410_5052` driver of Linux downloads this file into the chip each
|
||||
time you connect the modem. The driver looks for the file in
|
||||
`/lib/firmware`. The MT9234ZBA-USB uses the name `mts_mt9234zba.fw` for the
|
||||
same code.
|
||||
|
||||
To install it:
|
||||
|
||||
sudo cp linux/firmware/mts_mt9234mu.fw /lib/firmware/
|
||||
sudo cp linux/firmware/mts_mt9234mu.fw /lib/firmware/mts_mt9234zba.fw
|
||||
|
||||
Then disconnect the modem and connect it again. `cmake --install` puts the
|
||||
file in `share/dmodem-gui/firmware`. With `-DDMODEM_GUI_INSTALL_FIRMWARE=ON`,
|
||||
it also puts the file in `/lib/firmware`.
|
||||
|
||||
Multi-Tech Systems, Inc. gave this file to the Linux kernel in 2010. The
|
||||
file is TI's TUSB3410 UART firmware, compiled again by MultiTech with some
|
||||
changes. The file has no copyright text and no license text. MultiTech did
|
||||
not publish a license for it. In June 2026, linux-firmware removed it with
|
||||
the other files that have an unknown license.
|
||||
|
||||
We include the file so that the modem operates without a search for it. The
|
||||
AGPL-3.0 license of D-Modem and the commercial license do not apply to this
|
||||
file. Multi-Tech Systems, Inc. and Texas Instruments keep their rights in it.
|
||||
If you are the holder of these rights and you do not agree, tell us and we
|
||||
will remove the file.
|
||||
Binary file not shown.
@@ -115,6 +115,8 @@ UsbModem *usbmodem_find(void);
|
||||
char *usbmodem_describe(const UsbModem *m);
|
||||
/* whether Linux has its firmware file (mts_mt9234mu.fw) */
|
||||
gboolean usbmodem_firmware_present(void);
|
||||
/* the copy of mts_mt9234mu.fw that comes with the app, or NULL */
|
||||
char *usbmodem_shipped_firmware(void);
|
||||
/* whether tty path is such a modem's */
|
||||
gboolean usbmodem_is(const char *path);
|
||||
void usbmodem_free(UsbModem *m);
|
||||
|
||||
+28
-4
@@ -31,6 +31,8 @@ static const char *const firmware[] = {
|
||||
"/lib/firmware/mts_mt9234mu.fw",
|
||||
"/usr/lib/firmware/updates/mts_mt9234mu.fw",
|
||||
"/usr/lib/firmware/mts_mt9234mu.fw",
|
||||
"/lib/firmware/mts_mt9234zba.fw",
|
||||
"/usr/lib/firmware/mts_mt9234zba.fw",
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -113,14 +115,36 @@ UsbModem *usbmodem_find(void)
|
||||
return m;
|
||||
}
|
||||
|
||||
char *usbmodem_shipped_firmware(void)
|
||||
{
|
||||
static const char *const dirs[] = {
|
||||
DMODEM_FIRMWARE_DIR, DMODEM_FIRMWARE_SRC, NULL
|
||||
};
|
||||
for (int i = 0; dirs[i]; i++) {
|
||||
char *p = g_build_filename(dirs[i], "mts_mt9234mu.fw", NULL);
|
||||
if (g_file_test(p, G_FILE_TEST_EXISTS))
|
||||
return p;
|
||||
g_free(p);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *usbmodem_describe(const UsbModem *m)
|
||||
{
|
||||
if (m->tty)
|
||||
return g_strdup_printf("%s at %s", m->name, m->tty);
|
||||
if (m->no_firmware && !usbmodem_firmware_present())
|
||||
return g_strdup_printf("%s, with no firmware: put "
|
||||
"mts_mt9234mu.fw in /lib/firmware, "
|
||||
"then connect the modem again", m->name);
|
||||
if (m->no_firmware && !usbmodem_firmware_present()) {
|
||||
char *fw = usbmodem_shipped_firmware();
|
||||
/* (the MT9234ZBA-USB's driver asks for its own name) */
|
||||
const char *to = strstr(m->name, "ZBA") ?
|
||||
"/lib/firmware/mts_mt9234zba.fw" : "/lib/firmware/";
|
||||
char *d = g_strdup_printf("%s, with no firmware: copy %s to "
|
||||
"%s (sudo cp), then connect the "
|
||||
"modem again", m->name,
|
||||
fw ? fw : "mts_mt9234mu.fw", to);
|
||||
g_free(fw);
|
||||
return d;
|
||||
}
|
||||
if (m->no_firmware)
|
||||
return g_strdup_printf("%s, with no firmware: load the "
|
||||
"ti_usb_3410_5052 driver, then connect "
|
||||
|
||||
Reference in new issue
Block a user