Replace init_mss with tiny Python script (#655)

This commit is contained in:
Adeeb Shihadeh
2026-10-19 09:12:04 -07:00
committed by GitHub
parent fe5570ad49
commit 3deae121f2
3 changed files with 11 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/python3
import signal
# The on-chip Wi-Fi firmware runs in the SDM845 modem subsystem.
# Opening this device boots it and holds a reference; the kernel shuts it
# down when the last reference is released. Keep it open for this service's
# lifetime so Wi-Fi stays available.
# https://github.com/commaai/agnos-kernel-sdm845/blob/8b0e4d289b246a5cc1b0484b25a3f9f8d4772544/drivers/soc/qcom/subsystem_restart.c#L1215-L1251
with open("/dev/subsys_modem", "rb"):
signal.pause()
@@ -2,7 +2,7 @@
Description=Boot the modem subsystem, which runs the Wi-Fi firmware
[Service]
ExecStart=/usr/sbin/init_mss
ExecStart=/usr/bin/python3 /usr/comma/init_mss.py
Restart=on-failure
[Install]
Binary file not shown.