]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Make Samsung download mode work out-of-the-box
authorLuK1337 <priv.luk@gmail.com>
Sun, 14 Jun 2026 15:55:13 +0000 (17:55 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 14 Jun 2026 23:20:14 +0000 (08:20 +0900)
https://github.com/Benjamin-Dobell/Heimdall/blob/3997d5cc607e6c603c6e7c0d07e42e9868c62af2/heimdall/source/BridgeManager.h#L69-L79

hwdb.d/70-debug-appliance.hwdb [new file with mode: 0644]
hwdb.d/meson.build
hwdb.d/parse_hwdb.py

diff --git a/hwdb.d/70-debug-appliance.hwdb b/hwdb.d/70-debug-appliance.hwdb
new file mode 100644 (file)
index 0000000..8f535f7
--- /dev/null
@@ -0,0 +1,17 @@
+# This file is part of systemd.
+#
+# Database for debug appliances.
+#
+# Permitted keys:
+#   ID_DEBUG_APPLIANCE=?*
+
+# Samsung devices in download mode
+# Used to interact with devices over Odin protocol, see:
+# https://en.wikipedia.org/wiki/Odin_(firmware_flashing_software)
+#
+# The idVendor and idProduct used are documented in source code here:
+# https://github.com/Benjamin-Dobell/Heimdall/blob/3997d5cc607e6c603c6e7c0d07e42e9868c62af2/heimdall/source/BridgeManager.h#L69-L79
+usb:v04E8p6601*
+usb:v04E8p685D*
+usb:v04E8p68C3*
+ ID_DEBUG_APPLIANCE=samsung_odin
index 2c0fc6839da1d36aa3d3c47fe0f4d6a9ef3b65e9..b031bd1d924e9f1484932136e24266aebdf9965e 100644 (file)
@@ -31,6 +31,7 @@ hwdb_files_test = files(
         '70-analyzers.hwdb',
         '70-av-production.hwdb',
         '70-cameras.hwdb',
+        '70-debug-appliance.hwdb',
         '70-hardware-wallets.hwdb',
         '70-joystick.hwdb',
         '70-lights.hwdb',
index fc4b93e510b56f563f65f1c28f0114b40543efe4..6402492dff2d3d1fea1bc3d2b6d5c8e1f7ba0094 100755 (executable)
@@ -187,6 +187,7 @@ def property_grammar():
         ('ID_AUTOSUSPEND_DELAY_MS', INTEGER),
         ('ID_AV_PRODUCTION_CONTROLLER', zero_one),
         ('ID_AV_LIGHTS', zero_one),
+        ('ID_DEBUG_APPLIANCE', name_literal),
         ('ID_PERSIST', zero_one),
         ('ID_PDA', zero_one),
         ('ID_INPUT', id_input_setting),