|
发表于 2025-1-9 15:13:55
|
显示全部楼层
1.kernel/打入kerneldriver.patch
2./system/core/init/devices.cpp修改如下
diff --git a/init/devices.cpp b/init/devices.cpp
index 9fbec641b..9fca78432 100644
--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -492,6 +492,11 @@ void DeviceHandler::HandleUevent(const Uevent& uevent) {
int device_id = uevent.minor % 128 + 1;
devpath = StringPrintf("/dev/bus/usb/%03d/%03d", bus_id, device_id);
}
+ #if 1 //add by quectel for mknod /dev/cdc-wdmo
+ } else if (uevent.subsystem == "usbmisc" && !uevent.device_name.empty()) {
+ devpath = "/dev/" + uevent.device_name;
+ #endif
+
} else if (StartsWith(uevent.subsystem, "usb")) {
// ignore other USB events
return; |
|