2009/6/23 Freddie Chopin <freddie_cho...@op.pl>:
> I attach the most recent version of "universal .inf file"
>
> As you see, the devices that are "JTAG-only" should have entries for BOTH
> channels, the devices with UART/RS-232 on second channel should have only
> ONE entry.
>
> I took the liberty of adding my own JTAG, which is a modified JTAGkey with
> RS-232/UART [;
>
> More details in:
> https://lists.berlios.de/pipermail/openocd-development/2009-June/008483.html
> https://lists.berlios.de/pipermail/openocd-development/2009-June/008484.html
>
> 4\/3!!
>
> [Version]
> Signature = "$Chicago$"
> provider  = %manufacturer%
> DriverVer = 03/20/2007,0.1.12.1
> CatalogFile = libusb-win32_ft2232_driver.cat
> CatalogFile.NT = libusb-win32_ft2232_driver.cat
>
> Class = LibUsbDevices
> ClassGUID = {EB781AAF-9C70-4523-A5DF-642A87ECA567}
>
> [ClassInstall]
> AddReg=libusb_class_install_add_reg
>
> [ClassInstall32]
> AddReg=libusb_class_install_add_reg
>
> [libusb_class_install_add_reg]
> HKR,,,,"LibUSB-Win32 Devices"
> HKR,,Icon,,"-20"
>
> [Manufacturer]
> %manufacturer%=Devices,NT
>
> ;--------------------------------------------------------------------------
> ; Files
> ;--------------------------------------------------------------------------
>
> [SourceDisksNames]
> 1 = "Libusb-Win32 Driver Installation Disk",,
>
> [SourceDisksFiles]
> libusb0.sys = 1,,
> libusb0.dll = 1,,
>
> [DestinationDirs]
> libusb_files_sys = 10,system32\drivers
> libusb_files_dll = 10,system32
>
> [libusb_files_sys]
> libusb0.sys
>
> [libusb_files_dll]
> libusb0.dll
>
> ;--------------------------------------------------------------------------
> ; Device driver
> ;--------------------------------------------------------------------------
>
> [LIBUSB_DEV]
> CopyFiles = libusb_files_sys, libusb_files_dll
> AddReg    = libusb_add_reg
>
> [LIBUSB_DEV.NT]
> CopyFiles = libusb_files_sys, libusb_files_dll
>
> [LIBUSB_DEV.HW]
> DelReg = libusb_del_reg_hw
> AddReg = libusb_add_reg_hw
>
> [LIBUSB_DEV.NT.HW]
> DelReg = libusb_del_reg_hw
> AddReg = libusb_add_reg_hw
>
> [LIBUSB_DEV.NT.Services]
> AddService = libusb0, 0x00000002, libusb_add_service
>
> [libusb_add_reg]
> HKR,,DevLoader,,*ntkern
> HKR,,NTMPDriver,,libusb0.sys
>
> ; Older versions of this .inf file installed filter drivers. They are not
> ; needed any more and must be removed
> [libusb_del_reg_hw]
> HKR,,LowerFilters
> HKR,,UpperFilters
>
> ; Device properties
> [libusb_add_reg_hw]
> HKR,,SurpriseRemovalOK, 0x00010001, 1
>
> ;--------------------------------------------------------------------------
> ; Services
> ;--------------------------------------------------------------------------
>
> [libusb_add_service]
> DisplayName    = "LibUsb-Win32 - Kernel Driver 03/20/2007, 0.1.12.1"
> ServiceType    = 1
> StartType      = 3
> ErrorControl   = 0
> ServiceBinary  = %12%\libusb0.sys
>
> ;--------------------------------------------------------------------------
> ; Devices
> ;--------------------------------------------------------------------------
>
> [Devices]
> "Amontec JTAGkey (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_00
> "Amontec JTAGkey (Channel B)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_01
>
> "egnite Turtelizer 2 (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_bdc8&MI_00
>
> "JTAG-lock-pick - USB <=> JTAG adapter"=LIBUSB_DEV,
> USB\VID_0403&PID_cff8&MI_00
>
> [Devices.NT]
> "Amontec JTAGkey (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_00
> "Amontec JTAGkey (Channel B)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_01
>
> "egnite Turtelizer 2 (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_bdc8&MI_00
>
> "JTAG-lock-pick - USB <=> JTAG adapter"=LIBUSB_DEV,
> USB\VID_0403&PID_cff8&MI_00
>
> ;--------------------------------------------------------------------------
> ; Strings
> ;--------------------------------------------------------------------------
>
> [Strings]
> manufacturer = "Various"
>

I think this universal inf file along with the binary libusb0.sys
(from libusb-win32 svn)
should be bundled in the V0.2 release of OpenOCD to facilitate the
Windows packagers
who want to distribute an GPL compliant OpenOCD binary using
libusb-win32+libftdi.



-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to