USB

Обсуждаем ReactOS по-русски

Moderators: fog, fireball

Post Reply
evilslon
Posts: 261
Joined: Sat Apr 11, 2009 7:39 pm
Location: Russia, Ivanovo
Contact:

Re: USB

Post by evilslon »

Так и хочется воскликнуть "the revolution is coming!!!"
Цитата с Reimi's Blog:
Hi, here a nice pics to show the upcoming USB Support in ROS. This is mjmartin’s USBEHCI inside Win2000 (Привет, здесь приведены скрины, иллюстрирующие грядущую поддержку USB в ROS. Это скрин работы драйвера USBEHCI Михаэля Мартина (mjmartin) в Win2000).

[ external image ]
fireball
Developer
Posts: 358
Joined: Tue Nov 30, 2004 10:40 pm
Location: Moscow, Russia
Contact:

Re: USB

Post by fireball »

К сожалению радоваться рано, и в любом случае это всего лишь один драйвер из целого стека драйверов (в существующем usbdriver.sys они интегрированы в один legacy-style драйвер), и чтобы он полноценно смог работать, они нужны все, комплектом.
Aleksey Bragin,
ReactOS Project Lead
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

На этот раз работу над драйвером USB провел Кэмерон Гутман:
Commit by cgutman :: r47139 reactos/ (3 files in 2 dirs):
[USBDRIVER]
Register the device with the device manager only after it has been successfully allocated to avoid a crash
A device that failed in xhci_alloc would never get deregistered from the device manager so it would crash when it entered xhci_start with a partially set up device extension
Define release_adapter to HalPutDmaAdapter to fix a DMA adapter leak [HAL]
Export HalPutDmaAdapter
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

Это тоже его работа, пропустил, невнимательным стал :oops: :
Commit by cgutman :: r47136 reactos/drivers/usb/nt4compat/usbdriver/ (ehci.c uhci.c usbdriver.rbuild):
[USBDRIVER]
Fix an off-by-one error in the probing code
Scan all PCI buses instead of just the first two
Fix a horrible bug that resulted in reinitializing EHCI controllers as UHCI controllers which caused a crash on VirtualBox (with _MULTI_UHCI)
Implement support for multiple EHCI controllers and enable support for multiple UHCI controllers (greatly increases compatibility with real hardware because the first controller detected is often internal)
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

Кэмерон Гутман перехватил инициативу по работе над драйвером USB у mjmartin-а. Его достижения :
[USBHUB]
Include the DDK before debug.h
Fixes several warnings
[USB]
Add the cromwell stack that was removed previously
Needed some simple changes to make it build (STDCALL -> NTAPI, debug.h after ntddk.h, etc)
This is completely untested; all that I know is that it builds
USBD]
Fix usbd build and enable it
[REACTOS.DFF]
Add usbohci.sys, usbuhci.sys, usbport.sys, usbd.sys, and usbstor.sys to bootcd
Remove usbdriver.sys from bootcd

Никто не в курсе, пробовали этот драйвер в ХР, он успешно подменяет родные икспишные юэсби-драйвера?
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

Кэмерон Гутман обновил драйвер USB:
Commit by cgutman on aicom-hardware-fun :: r47250 /drivers/usb/ (3 files in 2 dirs):
[USB]
Fix device interface activation
Add usbehci to build
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

mjmartin вернулся к работе над драйвером USB!
mjmartin :: r47845 reactos/drivers/usb/usbehci/pdo.c:
[usbehci]
Use the correct offset of ROOTHUB2_CONFIGURATION_DESCRIPTOR and ROOTHUB2_INTERFACE_DESCRIPTOR to calculate needed buffer sizes. Fixes a buffer overflow crash.
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

mjmartin продолжает работу над драйвером USB:
[usb/usbehci]
Implement FdoDispatchInternalDeviceControl and remove IrpStub as its no longer needed.
Implement Direct Call RemoveUsbDevice.
Implement URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE.
Use the port parameter in ExecuteControlRequest.
Windows now identifies my thumb drive as a mass storage device.

Судя по последней строчке, удалось добиться некоторых успехов по работе драйвера в Виндовс. Только почему винда идентифицирует его драйвер как флешку, а не как собственно usb-драйвер?
evilslon
Posts: 261
Joined: Sat Apr 11, 2009 7:39 pm
Location: Russia, Ivanovo
Contact:

Re: USB

Post by evilslon »

Demonidios wrote:mjmartin продолжает работу над драйвером USB:
[usb/usbehci]
Implement FdoDispatchInternalDeviceControl and remove IrpStub as its no longer needed.
Implement Direct Call RemoveUsbDevice.
Implement URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE.
Use the port parameter in ExecuteControlRequest.
Windows now identifies my thumb drive as a mass storage device.

Судя по последней строчке, удалось добиться некоторых успехов по работе драйвера в Виндовс. Только почему винда идентифицирует его драйвер как флешку, а не как собственно usb-драйвер?
Нет-нет, дружище, "thumb drive" переводится как "Флешка" или "Флеш-накопитель", а вообще это прекрасная новость, ReactOS с каждым днём становится всё лучше и лучше! Viva la ReactOS! 8-)
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

Commit by mjmartin :: r47958 reactos/drivers/usb/usbehci/ (7 files):

Implement DeviceHandleToUsbDevice and remove IsHandleValid.
Add call to DeviceHandleToUsbDevice for all Direct Call functions that pass DeviceHandle.
Stop the processing of Asynchronous List after the Control Request has been processed by controller.
Misc changes.

М.Дж.Мартин снова нас радует!
Yaraslau
Posts: 430
Joined: Mon Sep 28, 2009 7:47 pm
Location: Беларусь/Belarus, ex-USSR
Contact:

Re: USB

Post by Yaraslau »

Demonidios wrote:Commit by mjmartin :: r47958 reactos/drivers/usb/usbehci/ (7 files):

Implement DeviceHandleToUsbDevice and remove IsHandleValid.
Add call to DeviceHandleToUsbDevice for all Direct Call functions that pass DeviceHandle.
Stop the processing of Asynchronous List after the Control Request has been processed by controller.
Misc changes.

М.Дж.Мартин снова нас радует!
М.Мартин может и радует, а глюки uniata.sys и cdfs.sys - нет. :(
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

Так ведь пока больше активности проявляет разработчик, избравший устранение багов в USB. Тут про USB и пишу. А с юниата и сидиэфэс пока застой. Что будет - то если увижу, перенесу в соответствующую тему. Главное, что на месте не стоим! Прогресс в разработке есть!
Yaraslau
Posts: 430
Joined: Mon Sep 28, 2009 7:47 pm
Location: Беларусь/Belarus, ex-USSR
Contact:

Re: USB

Post by Yaraslau »

Demonidios wrote:Так ведь пока больше активности проявляет разработчик, избравший устранение багов в USB. Тут про USB и пишу. ... Главное, что на месте не стоим! Прогресс в разработке есть!
Demonidios, а у тебя есть возможность проверить USB в работе?
Demonidios wrote:А с юниата и сидиэфэс пока застой. Что будет - то если увижу, перенесу в соответствующую тему.
Хорошо, не буду разводить оффтопик. Подождём-с. :(
Demonidios
Posts: 237
Joined: Fri Sep 25, 2009 7:35 pm

Re: USB

Post by Demonidios »

Нет, пока возможности нет, через неделю будет посвободнее, скачаю новую сборку, установлю, проверю. Самому интересно, как поведет себя USB-драйвер с моими устройствами.
docentss
Posts: 2
Joined: Thu Sep 02, 2010 10:22 pm

Re: USB

Post by docentss »

люди не надо обижаться я смотрю ни кто не работал из вас с глубокими альфами я древний тестер и видал и не такое еще
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests