libusbk icon indicating copy to clipboard operation
libusbk copied to clipboard

libusbk for windows ARM64?

Open Sourab1801 opened this issue 3 years ago • 11 comments

Hello @mcuee , when you are going to launch libusbk for windows 10 arm 64 bit?

Sourab1801 avatar Jun 24 '22 17:06 Sourab1801

I don't have any plans for a libusbK ARM driver but we might be able to get the libusbK library working so it could be used with the WinUSB driver (assuming there is one)

TravisRo avatar Jun 24 '22 21:06 TravisRo

@TravisRo Yes there are WinUSB driver for Windows on ARM.

Ref: similar request for Zadig. https://github.com/pbatard/libwdi/issues/155

mcuee avatar Jun 25 '22 01:06 mcuee

Thamks for reply @TravisRo & @mcuee , so WinUSB will work behalf of libusbk driver? Actually i worked on windows 10 with libusbk driver support, Now i am using windows 10 on arm on raspberry pi 4 and i want to use libusbk driver but libusbk is not supported in WINDOWS 10 ARM, So as per your suggestion I have to use Winusb driver behalf of libusbk in windows arm os it will act like libusbk driver ?

Sourab1801 avatar Jun 25 '22 08:06 Sourab1801

If you use libusbk API or libusb-1.0 API, then both libusbk.sys and WinUSB driver are supported.

Hwoever, currently libusbk API (libusbk.dll) does not support Windows on ARM yet.

If you use libusb-1.0 API (libusb-1.0.dll), it has support for Windows on ARM already. But since Zadig (as well as libusbk-inf-wizard) does not work under Windows on ARM yet, you may need to change your device firmware to add WinUSB Compat ID (Microsoft OS Descriptor) so that WinUSB driver can be automatically installed.

mcuee avatar Jun 25 '22 09:06 mcuee

BTW, this is the same as #35

  • #35

mcuee avatar Jun 25 '22 09:06 mcuee

Here is the ARM64 VS2019 build for libusbK: the library (DLL and static lib), kBench, kList and dpscat. Hopefully someone can test it to see if it works or not. Only device with WinUSB driver is supported.

Take note libusbK.sys as it is not meant for ARM/ARM64 platform.

libusbK_bin_arm64.zip

To use WinUSB under ARM64, please refer to this libwdi issue. https://github.com/pbatard/libwdi/issues/155#issuecomment-1421551048

mcuee avatar Feb 08 '23 01:02 mcuee

@Sourab1801

Please give the above libusbK ARM64 binary a try to see if it works or not. Thanks.

mcuee avatar Feb 08 '23 01:02 mcuee

@ArminiusTux

Please give the above libusbK ARM64 binary a try. You can try to run things like dpscat and kList. Thanks.

mcuee avatar Feb 08 '23 02:02 mcuee

For those who are interested, please also refer to this PR.

  • https://github.com/mcuee/libusbk/pull/52

mcuee avatar Sep 24 '23 06:09 mcuee

hi @mcuee, I'm a bit new to this project, but I'm interested in testing for ARM64. How can I install the binary you mentioned earlier?

jensenhuangyankai avatar Aug 30 '24 06:08 jensenhuangyankai

hi @mcuee, I'm a bit new to this project, but I'm interested in testing for ARM64. How can I install the binary you mentioned earlier?

Please try PR#52.

  • https://github.com/mcuee/libusbk/pull/52

mcuee avatar Aug 30 '24 08:08 mcuee