MSFN Forum: USB 2.0 Stack for Win98/ME - MSFN Forum

Jump to content


  • 4 Pages +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

USB 2.0 Stack for Win98/ME preliminary test version Rate Topic: -----

#21 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,863
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 22 December 2009 - 08:24 PM

I confirm xRayeR's results:
In my experience, the last USBPORT.SYS to work OK in Win 98SE is v. 5.0.2195.5652, while for USBSTOR.SYS (in case one installs it with WDMSTUB.SYS v. 5.0.0.6 from NUSB30E) it's v. 5.0.2195.6773 (from KB823086). And for USBEHCI.SYS, the latest version that works is v. 5.0.2195.6882 (the latest available for W2k, check it here). Now, in what regards USBHUB20.SYS, it's more complicated: almost all chipsets work ok with v. 5.0.2195.6891, but VIA's don't. For VIA's chipsets, one needs VIA's own USBHUB20.SYS v. 4.90.3000.1 (findable inside VIA_USB2_V270p1-L-M), in order to avoid BSOD's on removing (hot-deplugging) USB 2.0 HUBs from the machine. Note that it must be substituted by hand, in true DOS, because NUSB3.3 contains v. 5.0.2195.6891, so it's really a downgrade.
With all due respect, I really marvel at how PROBLEMCHYLD's machine can get to run those XP versions at all.

View PostTihiy, on Jan 25 2007, 10:16 AM, said:

Also non-letal BSODs are possible when disabling/removing controller or hub.
This issue mentioned by Tihiy is precisely the one due to USBHUB20.SYS v. 5.0.2195.6891 and VIA chipsets. While one can recover from the BSOD, the only sensible thing to do at that point is to restart or shutdown the machine.

@MDGx: If you could create a downgrader just for USBHUB20.SYS, for VIA machines, that would be most welcome and handy. Since NUSB 3.3 installs OK even on those machines, it would just be a matter of running the downgrader after installing NUSB, but before using any USB 2.0 HUB.


#22 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 23 December 2009 - 12:00 AM

I wasnt too sure about XPSP3 but i didnt have any problems using XPSP1 files

#23 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 23 December 2009 - 12:09 PM

View PostPROBLEMCHYLD, on Feb 27 2009, 02:33 PM, said:

@ MDGx i have installed from WinXP SP1 hotfix KB838989

USBEHCI.SYS 5.1.2600.1515
USBPORT.SYS 5.1.2600.1532

and they seem to work very well I have not witness any problems
maybe you and others should test more (Double Check) just to make sure i'm not wrong.

Sorry I'm quoting myself but when i replace the files above manually i didn't have any error messages, but then
we are all using different motherboards/chipset, btw mines is intel p4. Further testing is appreciated. My USB flash drive is a 1GB Sony MICROVAULT.
Thanks to all you guys.

This post has been edited by PROBLEMCHYLD: 23 December 2009 - 12:12 PM


#24 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,863
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 23 December 2009 - 06:31 PM

I didn't, myself, test Win XP SP1 files for USB, up to now. Those from XP SP2 and SP3 don't work OK, according to my tests.

So, here is a preliminary analysis:

windowsxp-kb838989-X86-ENU.exe
USBEHCI.SYS 5.1.2600.1515 PE Timestamp: 04/11/2004 3:21:54 AM CRC32: C45C00F6 Size: 025216
WDMCHECK: Module has no missing import links.
USBPORT.SYS 5.1.2600.1532 PE Timestamp: 05/14/2004 7:40:19 PM CRC32: CFC74047 Size: 139136
WDMCHECK: Module uses the following missing functions: IoCsqRemoveNextIrp; IoCsqInitialize; IoCsqInsetIrp.

Compare with:
USBEHCI.SYS 5.0.2195.6882 PE Timestamp: 12/12/2003 5:37:43 PM CRC32: 85F85C09 Size: 019792
WDMCHECK: Module has no missing import links.
USBPORT.SYS 5.0.2195.5652 PE Timestamp: 04/23/2002 5:46:44 PM CRC32: F7760957 Size: 135920
WDMCHECK: Module has no missing import links.

Having missing functions, USBPORT.SYS v. 5.1.2600.1532 is a no-no. USBEHCI.SYS v. 5.1.2600.1515 may be viable, however, and warrants more testing. I generally tend to stick with Win 2k files as they should be the least distant from the 9x files, at least in theory. But I'll give this one a try, soon.

#25 User is offline   MDGx 

  • 98SE2ME + 98MP10
  • Group: Super Moderator
  • Posts: 2,678
  • Joined: 22-November 04
  • OS:none specified
  • Country: Country Flag

Posted 23 December 2009 - 10:24 PM

Ok guys... here is the updated downgrade [or the downgraded update]: :wacko:

* Unofficial USB 2.0 WDM Drivers USBEHCI.SYS 5.0.2195.6882, USBHUB20.SYS 4.90.3000.11, USBPORT.SYS 5.0.2195.5652, USBSTOR.SYS 5.0.2195.6773 + WDMSTUB.SYS 5.0.0.6 for Windows 98 SE/ME:
http://www.msfn.org/...showtopic=91336
USB20DRV [242 KB, English]:
http://www.mdgx.com/files/USB20DRV.EXE
Experimental: may or may not work!
Windows 98 SE users: MUST install Native USB Drivers (NUSB) BEFOREHAND:
http://www.mdgx.com/web.htm#NUS
How to restore original drivers (if any):
Start -> Settings -> Control Panel -> Add/Remove Programs -> "Unofficial USB 2.0: Restore original drivers" -> Add/Remove button.

From the text file that pops up whenever 1 installs these drivers:

Quote

REQUIRED:
Windows 98 SE users: MUST install Native USB Drivers (NUSB) BEFOREHAND:
http://www.mdgx.com/web.htm#NUS

FYI:
This update forces the installation of these files versions, even if you had newer ones, for compatibility purposes:
http://www.msfn.org/board/index.php?showto...91336&st=20
How to restore your original files: see "RESTORE / UNINSTALL" further below.

RESTORE / UNINSTALL

How to restore original drivers (if any):
Start button -> Settings -> Control Panel -> Add/Remove Programs -> select "Unofficial USB 2.0: Restore original drivers" -> click Add/Remove button.
Or run this command from a DOS box/session/window:
RUNDLL32 ADVPACK.DLL,LaunchINFSection %windir%\INF\USB20DRV.INF,DefaultUninstall
This restores original files (if any) from %windir%\SYSTEM32\DRIVERS renamed backups:
USBEHCI.SY1
USBPORT.SY1
USBHUB20.SY1
USBSTOR.SY1
WDMSTUB.SY1
back to their original names:
USBEHCI.SYS
USBPORT.SYS
USBHUB20.SYS
USBSTOR.SYS
WDMSTUB.SYS

HTH

#26 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,863
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 23 December 2009 - 11:14 PM

Great, MDGx! Thanks a lot! :thumbup
But, since you've added the most up-to-date working USBSTOR.SYS from Win 2k, it's necessary to ensure WDMSTUB.SYS gets loaded too. The easiest way to do it is to use the appropriate line I left commented out in the latest version of USBSTOR.INF, findable in usbstor110c.7z, after inverting the semicolon as per this post, to ensure WDMSTUB gets loaded. * Note: It may be necessary to remove from device manager and redetect any previously detected USB devices, to get them to use the new usbstor.inf (insted of what already was in the registry).*
Thanks again. You rock! :thumbup

#27 User is offline   MDGx 

  • 98SE2ME + 98MP10
  • Group: Super Moderator
  • Posts: 2,678
  • Joined: 22-November 04
  • OS:none specified
  • Country: Country Flag

Posted 24 December 2009 - 05:26 AM

View Postdencorso, on Dec 23 2009, 10:14 PM, said:

But, since you've added the most up-to-date working USBSTOR.SYS from Win 2k, it's necessary to ensure WDMSTUB.SYS gets loaded too. The easiest way to do it is to use the appropriate line I left commented out in the latest version of USBSTOR.INF, findable in usbstor110c.7z, after inverting the semicolon as per this post, to ensure WDMSTUB gets loaded. * Note: It may be necessary to remove from device manager and redetect any previously detected USB devices, to get them to use the new usbstor.inf (insted of what already was in the registry).*
I've thought of that, but the way it is in your INF and the other way [I'll get to that a lil later = pls see #2. futher below] it is in the INF available inside maximus-decim's older NUSB 3.0 English executable, doesn't make sense to me.

#1. Let me explain... [the way it is in your modded INF]:

Quote

[USBSTOR.AddReg]
;HKR,,NTMPDriver,,"wdmstub.sys,USBSTOR.SYS"
HKR,,NTMPDriver,,USBSTOR.SYS
In my INF [USB20DRV.INF from USB20DRV.EXE] there are 2 NTMP driver strings for 2 different sections of USB installs, depending on the type of USB device (in this case EHCI + HUB) needed to be installed (only relevant strings quoted here):

Quote

[EHCI]
AddReg=EHCI.AddReg
[EHCI.AddReg]
HKR,,NTMPDriver,,USBEHCI.SYS

[ROOTHUB2]
AddReg=Usb2Hub.AddReg
[Usb2Hub.Dev]
CopyFiles=C_HUB
AddReg=Usb2Hub.AddReg
[Usb2Hub.AddReg]
HKR,,NTMPDriver,,USBHUB20.SYS
If I replace both with just this string:
HKR,,NTMPDriver,,"WDMSTUB.SYS,USBSTOR.SYS"
it defeats the purpose of installing separate drivers for different devices/types.
So this is what I did, to (hopefully) make every USB device type "happy":

Quote

[EHCI]
AddReg=EHCI.AddReg
[EHCI.AddReg]
;HKR,,NTMPDriver,,USBEHCI.SYS
HKR,,NTMPDriver,,"WDMSTUB.SYS,USBSTOR.SYS,USBEHCI.SYS"

[ROOTHUB2]
AddReg=Usb2Hub.AddReg
[Usb2Hub.Dev]
CopyFiles=C_HUB
AddReg=Usb2Hub.AddReg
[Usb2Hub.AddReg]
;HKR,,NTMPDriver,,USBHUB20.SYS
HKR,,NTMPDriver,,"WDMSTUB.SYS,USBSTOR.SYS,USBHUB20.SYS"

Please let me know if this makes sense to you (and others) who know more than I do about how USB drivers work, and if further modifications are necessary. Thnx.

#2. Another string I noticed exists [remarked/commented out] in maximus-decim's older NUSB 3.0 English INF [_NUSB.INF], is this:

Quote

;wdmstub
;HKLM,System\CurrentControlSet\Services\Class\System\0000,NTMPDriver,,"update.sys,wdmstub.sys"
which did not make sense to me either.
Let me explain...

The 0000 instance used in m-d's INF may or may not be allocated to the respective USB device, because no 2 systems are the same, and because everybody has different types [vendor ID] and different quantities of USB devices installed.
Therefore the 0000 instance may exist in the registry as 0001, 0002, 0003, etc... up to 0050 [most of the hardware devices can have up to 50 instances if memory serves (51 actually if one considers the 0000 instance) listed under specific sections in the registry].
For example, this is my 98SE registry relevant section:

Quote

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\MEDIA\0003]
"NTMPDriver"="HIDUSB.SYS"
"DriverDesc"="Logitech WingMan Extreme Digital 3D (USB)"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Mouse\0000]
"NTMPDriver"="HIDUSB.SYS"
"DriverDesc"="Microsoft USB IntelliMouse Explorer (IntelliPoint)"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Mouse\0005]
"NTMPDriver"="MOUHID.VXD"
"DriverDesc"="HID-compliant mouse"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\HID\0000]
"NTMPDriver"="HIDUSB.SYS"
"DriverDesc"="USB Human Interface Device"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\USB\0000]
"NTMPDriver"="UHCD.SYS"
"DriverDesc"="Intel 82371AB/EB PCI to USB Universal Host Controller"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\USB\0004]
"NTMPDriver"="USBHUB.SYS"
"DriverDesc"="USB Root Hub"

Hopefully the "fix" I made to USB20DRV.INF [pls see #1. above] should take care of this issue too. :blink:

Pls test the modded USB20DRV at your convenience:
http://www.mdgx.com/files/USB20DRV.EXE


Best wishes, Happy Holidays + Hpy Nw Yr!


HTH

#28 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 17 April 2010 - 12:14 PM

MDGx when you have some spare time can you add usbccgp.sys 5.1.2600.5512
or what ever version you think is suitable for this package.

#29 User is offline   MDGx 

  • 98SE2ME + 98MP10
  • Group: Super Moderator
  • Posts: 2,678
  • Joined: 22-November 04
  • OS:none specified
  • Country: Country Flag

Posted 23 April 2010 - 02:09 AM

Done...

* Unofficial USB 2.0 WDM Drivers USBCCGP.SYS 5.1.2600.5512, USBEHCI.SYS
5.0.2195.6882, USBHUB20.SYS 4.90.3000.11, USBPORT.SYS 5.0.2195.5652,
USBSTOR.SYS 5.0.2195.6773 + WDMSTUB.SYS 5.0.0.6 for Windows 98 SE/ME:
http://www.msfn.org/...showtopic=91336
USB20DRV [257 KB, English]:
http://www.mdgx.com/files/USB20DRV.EXE
Experimental: may or may not work!
How to restore original drivers (if any):
Start -> Settings -> Control Panel -> Add/Remove Programs ->
"Unofficial USB 2.0: Restore original drivers" -> Add/Remove button.

I'll post it on my site in the next few minutes...
http://www.mdgx.com/web.htm#9SU


HTH

#30 User is offline   CharlesF 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 419
  • Joined: 13-July 08
  • OS:98SE
  • Country: Country Flag

Posted 04 May 2010 - 04:00 PM

Hi,

What is the benefit of this upgrade? :unsure:

I have already NUSB 3.3 installed (and a USB 2.0 hardware card).
Can it give me compatibility with more USB2 devices?

How do I see if it is working?

Thx by advance :) .

#31 User is offline   bristols 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 451
  • Joined: 24-September 05
  • OS:none specified
  • Country: Country Flag

Posted 04 May 2010 - 04:52 PM

View PostCharlesF, on 04 May 2010 - 04:00 PM, said:

What is the benefit of this upgrade? :unsure:


The addition of USBCCGP.SYS 5.1.2600.5512.

RetroOS found that it was required to get a USB composite device to work.

#32 User is offline   CharlesF 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 419
  • Joined: 13-July 08
  • OS:98SE
  • Country: Country Flag

Posted 09 May 2010 - 04:21 AM

View Postbristols, on 04 May 2010 - 04:52 PM, said:

The addition of USBCCGP.SYS 5.1.2600.5512.

RetroOS found that it was required to get a USB composite device to work.

Thanks bristols :thumbup .

#33 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 22 July 2010 - 02:34 PM

I finally got it working. Thanks

This post has been edited by PROBLEMCHYLD: 22 July 2010 - 02:39 PM


#34 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 24 July 2010 - 02:16 PM

Usbstor.sys 5.00.2195.6773 does not work correctly with my USB flash drive. I have to re-install NUSB just to get it working.
NUSB overrides this with an older version of 4.90.3000.1.
Can you fix this issue. Thank you very much.

P.S
It also crazy how I replace older files with the newer XP files and get no BSOD etc...
Usbehci.sys 5.1.2600.1106 (xpsp1.020828-1920)
Usbport.sys 5.1.2600.1106 (xpsp1.020828-1920)

This post has been edited by PROBLEMCHYLD: 24 July 2010 - 03:15 PM


#35 User is offline   MDGx 

  • 98SE2ME + 98MP10
  • Group: Super Moderator
  • Posts: 2,678
  • Joined: 22-November 04
  • OS:none specified
  • Country: Country Flag

Posted 24 July 2010 - 06:45 PM

View PostPROBLEMCHYLD, on 24 July 2010 - 02:16 PM, said:

Usbstor.sys 5.00.2195.6773 does not work correctly with my USB flash drive. I have to re-install NUSB just to get it working.
NUSB overrides this with an older version of 4.90.3000.1.
Can you fix this issue. Thank you very much.

P.S
It also crazy how I replace older files with the newer XP files and get no BSOD etc...
Usbehci.sys 5.1.2600.1106 (xpsp1.020828-1920)
Usbport.sys 5.1.2600.1106 (xpsp1.020828-1920)
Try the 3 versions of USBSTOR.SYS attached here [they're all from XP]:

USBSTOR.SY2 5.1.2600.2180 [XP SP2 final]
USBSTOR.SY3 5.1.2600.3205 [XP SP3 beta build 3205]
USBSTOR.SYS 5.1.2600.5512 [XP SP3 final]

Just rename the one you wish to USBSTOR.SYS (from *.SY2 or *.SY3) and copy it to %windir%\SYSTEM32\DRIVERS [you should backup the one you're using now and which works properly].

Hopefully one will work for you.
If one does, pls e-mail me, so I know which one, to update USB20DRV.EXE accordingly. ;)
Thanks.

Best wishes,
MDGx

Attached File(s)



#36 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 24 July 2010 - 08:04 PM

Thanks but none of those WinXP files work.
USBSTOR.SYS 4.90.3000.1 is the only one that works on my system.
Thanks for all your help.
Having different mobo/chipsets wouldn't affect this will it?

This post has been edited by PROBLEMCHYLD: 24 July 2010 - 08:31 PM


#37 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,863
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 24 July 2010 - 09:11 PM

View PostPROBLEMCHYLD, on 24 July 2010 - 02:16 PM, said:

Usbstor.sys 5.00.2195.6773 does not work correctly with my USB flash drive. I have to re-install NUSB just to get it working.
NUSB overrides this with an older version of 4.90.3000.1.
Can you fix this issue. Thank you very much.

Have you WDMSTUB.SYS installed? How is it being loaded? Note that either using MDGx's method or my method, after you add USB20DRV, you must remove and redetect bothe the USB2 controller and all your usb devices to get WDMSTUB.SYS installed as a filter driver. If you don't do that, Usbstor.sys 5.00.2195.6773 will not work. So, after installing USB20DRV, you must go to safe mode and delete all entries for your pendrives and hubs and the EHCI controller, then reboot to normal mode, let windows redetect the EHCI controller, and then plug one-by-one your USB devices, in order for them to be redetected. It's not like nusb 3.3, which you install, reboot and it just works... USB20DRV needs you to actually make some extra effort to get it to work. And, BTW, I do really doubt those XP SP1 files you're using will ever work right...

#38 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 24 July 2010 - 09:39 PM

View Postdencorso, on 24 July 2010 - 09:11 PM, said:

Have you WDMSTUB.SYS installed? How is it being loaded? Note that either using MDGx's method or my method, after you add USB20DRV, you must remove and redetect bothe the USB2 controller and all your usb devices to get WDMSTUB.SYS installed as a filter driver. If you don't do that, Usbstor.sys 5.00.2195.6773 will not work. So, after installing USB20DRV, you must go to safe mode and delete all entries for your pendrives and hubs and the EHCI controller, then reboot to normal mode, let windows redetect the EHCI controller, and then plug one-by-one your USB devices, in order for them to be redetected. It's not like nusb 3.3, which you install, reboot and it just works... USB20DRV needs you to actually make some extra effort to get it to work. And, BTW, I do really doubt those XP SP1 files you're using will ever work right...

Well I deleted the files in safe mode let it redect and the same results. Its not working at all. Why I don't know.

#39 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,863
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 24 July 2010 - 10:48 PM

Where is WDMSTUB.SYS? What entries do you have in the registry for WDMSTUB.SYS?

#40 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 25 July 2010 - 12:06 PM

View Postdencorso, on 24 July 2010 - 10:48 PM, said:

Where is WDMSTUB.SYS? What entries do you have in the registry for WDMSTUB.SYS?

WDMSTUB.SYS is in C:\WINDOWS\SYSTEM32\DRIVERS. I ran regedit and found no entries. Whats next?

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy