MiSTer-devel / Linux_Image_creator_MiSTer

GNU General Public License v2.0
18 stars 10 forks source link

Which version of libusb is included? (re: issues with xow user-mode driver) #9

Closed sofakng closed 4 years ago

sofakng commented 4 years ago

I'm trying to the 'xow' (Xbox Wireless Adapter) user-mode driver to work and if I recompile libusb-1.0.23 it appears to work, but if I link the included libusb-1.0.so it doesn't.

Which exact version/subversion of libusb is included in MiSTer?

sorgelig commented 4 years ago

it's 1.0.20 what adapter your are talking about? If XBox360 wireless adapter then it works fine already IIRC.

sofakng commented 4 years ago

Thanks!

I'm talking about the Xbox One Wireless Adapter. The newer Xbox One controllers support bluetooth so this isn't a high priority issue. However, the Xbox One controllers also support a proprietary 5 GHz protocol that is supposed to have much lower latency than bluetooth. (under 8ms versus 15ms+ with bluetooth) I wanted to verify this using porkchop express (misteraddons) latency testing method.

There is a project called xow that implements a user-mode driver to support this wireless adapter.

I've been able to successfully cross-compile and run this driver on the latest MiSTer linux version, but I had to recompile libusb and I'm not sure why yet.

sorgelig commented 4 years ago

try to compile the project against libusb 1.0.20 may be some structures are different.

sofakng commented 4 years ago

Will do. Thanks very much!

sorgelig commented 4 years ago

probably you can compile with exact linkage to libusb-1.0.23.so then can include this lib along with driver so it will co-exist with 1.0.20 (as 1.0.so). I'm not sure if 2 versions of lubusb can co-exist.

sofakng commented 4 years ago

I'm in a bit over my head, but what I did was cross-compile libusb-1.0.23 and then linked using 'rpath' option so when I ran the executable, it looked for libusb in the same directory as itself instead of using the system library (/lib) directory.

Is that what you meant?

sorgelig commented 4 years ago

if it works then fine.

sofakng commented 4 years ago

Sorry -- One more question... what version of systemd (libudev) is MiSTer using?

libusb optionally requires libudev as well for device enumeration/hotplug support.

sorgelig commented 4 years ago

MiSTer uses eudev 3.2.1