Hi, I want to build an ISO where the entire USB stack could be disabled, I mean, ReactOS ignoring any USB hardware.
I've tried commenting the usb related entries en CmakeLists.txt on the drivers folder but when I load the ISO on qemu, I get warning messages saying "Can't load boot driver" etc.
I want to know where can I disable the at-boot loading of these drivers.
Thanks
How to disable the entire USB stack?
Moderator: Moderator Team
Re: How to disable the entire USB stack?
boot/bootdata/hivesys.inf 1644 HKLM,"SYSTEM\CurrentControlSet\Services\hidusb","ImagePath",0x00020000,"system32\drivers\hidusb.sys"
boot/bootdata/txtsetup.sif 44 hidusb.sys=,,,,,,,,,,,,4
113 hidusb = hidusb.sys
etc...
There are plenty of other references to usb drivers that need to be commented out/disabled!
boot/bootdata/txtsetup.sif 44 hidusb.sys=,,,,,,,,,,,,4
113 hidusb = hidusb.sys
etc...
There are plenty of other references to usb drivers that need to be commented out/disabled!
Re: How to disable the entire USB stack?
The first attemp failed, the iso doesn't reach the 1st stage
Re: How to disable the entire USB stack?
Today I had a time to work on this, and got it! I've just created a USB-Less ISO, here is the patch that disables the whole usb stack:
Now I can get rid of bugs like CORE-10116 and the infamous CORE-10456
Code: Select all
diff --git a/boot/bootdata/txtsetup.sif b/boot/bootdata/txtsetup.sif
index fc2aa63..80ad9d2 100644
--- a/boot/bootdata/txtsetup.sif
+++ b/boot/bootdata/txtsetup.sif
@@ -39,17 +39,17 @@ kdvbox.dll=,,,,,,,,,,,,2
disk.sys=,,,,,,x,,,,,,4
floppy.sys=,,,,,,x,,,,,,4
i8042prt.sys=,,,,,,,,,,,,4
-hidclass.sys=,,,,,,,,,,,,4
-hidparse.sys=,,,,,,,,,,,,4
-hidusb.sys=,,,,,,,,,,,,4
-usbccgp.sys=,,,,,,x,,,,,,4
-usbd.sys=,,,,,,x,,,,,,4
-usbhub.sys=,,,,,,x,,,,,,4
-usbuhci.sys=,,,,,,x,,,,,,4
-usbohci.sys=,,,,,,x,,,,,,4
-usbehci.sys=,,,,,,x,,,,,,4
-usbstor.sys=,,,,,,x,,,,,,4
-kbdhid.sys=,,,,,,,,,,,,4
+;hidclass.sys=,,,,,,,,,,,,4
+;hidparse.sys=,,,,,,,,,,,,4
+;hidusb.sys=,,,,,,,,,,,,4
+;usbccgp.sys=,,,,,,x,,,,,,4
+;usbd.sys=,,,,,,x,,,,,,4
+;usbhub.sys=,,,,,,x,,,,,,4
+;usbuhci.sys=,,,,,,x,,,,,,4
+;usbohci.sys=,,,,,,x,,,,,,4
+;usbehci.sys=,,,,,,x,,,,,,4
+;usbstor.sys=,,,,,,x,,,,,,4
+;kbdhid.sys=,,,,,,,,,,,,4
kbdclass.sys=,,,,,,x,,,,,,4
l_intl.nls=,,,,,,,,,,,,2
pci.sys=,,,,,,,,,,,,4
@@ -85,17 +85,17 @@ PCI\CC_0106 = uniata
;PCI\CC_0106 = storahci
*PNP0600 = uniata
;USB\CLASS_09 = usbhub
-USB\ROOT_HUB = usbhub
-USB\ROOT_HUB20 = usbhub
-PCI\CC_0C0300 = usbuhci
-PCI\CC_0C0310 = usbohci
-PCI\CC_0C0320 = usbehci
-USB\Class_08&SubClass_06&Prot_50 = usbstor
-HID_DEVICE_SYSTEM_KEYBOARD = kbdhid,{4D36E96B-E325-11CE-BFC1-08002BE10318}
-USB\COMPOSITE = usbccgp
+;USB\ROOT_HUB = usbhub
+;USB\ROOT_HUB20 = usbhub
+;PCI\CC_0C0300 = usbuhci
+;PCI\CC_0C0310 = usbohci
+;PCI\CC_0C0320 = usbehci
+;USB\Class_08&SubClass_06&Prot_50 = usbstor
+;HID_DEVICE_SYSTEM_KEYBOARD = kbdhid,{4D36E96B-E325-11CE-BFC1-08002BE10318}
+;USB\COMPOSITE = usbccgp
GenDisk = disk
-USB\Class_03 = hidusb
-GENERIC_HID_DEVICE = hidusb
+;USB\Class_03 = hidusb
+;GENERIC_HID_DEVICE = hidusb
*PNP0303 = i8042prt,{4D36E96B-E325-11CE-BFC1-08002BE10318}
ROOT\SWENUM = swenum
@@ -105,16 +105,16 @@ pci = pci.sys
isapnp = isapnp.sys
[InputDevicesSupport.Load]
-usbehci = usbehci.sys
-usbohci = usbohci.sys
-usbuhci = usbuhci.sys
-usbhub = usbhub.sys
-usbccgp = usbccgp.sys
-hidusb = hidusb.sys
-usbstor = usbstor.sys
+;usbehci = usbehci.sys
+;usbohci = usbohci.sys
+;usbuhci = usbuhci.sys
+;usbhub = usbhub.sys
+;usbccgp = usbccgp.sys
+;hidusb = hidusb.sys
+;usbstor = usbstor.sys
[Keyboard.Load]
-kbdhid = kbdhid.sys
+;kbdhid = kbdhid.sys
i8042prt = i8042prt.sys
[BusExtenders.Load]
diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt
index f9022a6..a8fc7b3 100644
--- a/drivers/CMakeLists.txt
+++ b/drivers/CMakeLists.txt
@@ -3,13 +3,13 @@ PROJECT(Drivers)
add_subdirectory(base)
add_subdirectory(battery)
-add_subdirectory(bluetooth)
+#add_subdirectory(bluetooth)
add_subdirectory(bus)
add_subdirectory(crypto)
add_subdirectory(filesystems)
add_subdirectory(filters)
#add_subdirectory(fs_minifilter)
-add_subdirectory(hid)
+#add_subdirectory(hid)
add_subdirectory(input)
add_subdirectory(ksfilter)
add_subdirectory(multimedia)
@@ -20,6 +20,6 @@ add_subdirectory(sac)
add_subdirectory(serial)
add_subdirectory(setup)
add_subdirectory(storage)
-add_subdirectory(usb)
+#add_subdirectory(usb)
add_subdirectory(wdm)
add_subdirectory(wmi)
diff --git a/media/inf/CMakeLists.txt b/media/inf/CMakeLists.txt
index d84ffff..10f9315 100644
--- a/media/inf/CMakeLists.txt
+++ b/media/inf/CMakeLists.txt
@@ -4,7 +4,7 @@ list(APPEND INF_FILES
audio.inf
battery.inf
bda.inf
- bth.inf
+# bth.inf
c_image.inf
cdrom.inf
cpu.inf
@@ -15,7 +15,7 @@ list(APPEND INF_FILES
hal.inf
hdaudbus.inf
hdc.inf
- input.inf
+# input.inf
keyboard.inf
ks.inf
kscaptur.inf
@@ -33,9 +33,9 @@ list(APPEND INF_FILES
scsi.inf
shortcuts.inf
unknown.inf
- usb.inf
- usbport.inf
- usbstor.inf
+# usb.inf
+# usbport.inf
+# usbstor.inf
wdmaudio.inf
wmiacpi.inf
xboxdisp.inf)
diff --git a/media/inf/syssetup.inf b/media/inf/syssetup.inf
index 3d12be6..4863d51 100644
--- a/media/inf/syssetup.inf
+++ b/media/inf/syssetup.inf
@@ -4,7 +4,7 @@ ClassGUID = {00000000-0000-0000-0000-000000000000}
[DeviceInfsToInstall]
battery.inf
-bth.inf
+;bth.inf
cdrom.inf
cpu.inf
disk.inf
@@ -13,7 +13,7 @@ fdc.inf
flpydisk.inf
hal.inf
hdc.inf
-input.inf
+;input.inf
keyboard.inf
legcydrv.inf
machine.inf
@@ -23,7 +23,7 @@ NET_NIC.inf
ports.inf
scsi.inf
unknown.inf
-usbport.inf
+;usbport.inf
audio.inf
ks.inf
c_image.inf
diff --git a/sdk/lib/drivers/CMakeLists.txt b/sdk/lib/drivers/CMakeLists.txt
index 141db7d..2bf66018 100644
--- a/sdk/lib/drivers/CMakeLists.txt
+++ b/sdk/lib/drivers/CMakeLists.txt
@@ -2,9 +2,9 @@
add_subdirectory(chew)
add_subdirectory(copysup)
add_subdirectory(csq)
-add_subdirectory(hidparser)
+#add_subdirectory(hidparser)
add_subdirectory(ip)
-add_subdirectory(libusb)
+#add_subdirectory(libusb)
add_subdirectory(lwip)
add_subdirectory(ntoskrnl_vista)
add_subdirectory(rdbsslib)
Who is online
Users browsing this forum: Semrush [Bot] and 21 guests