Author Topic: Problems with lsusb and usb.ids  (Read 2946 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 361
  • -Receive: 72
  • Posts: 2242
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Problems with lsusb and usb.ids
« on: August 16, 2018, 05:29:01 pm »
Hi

I'm using lsusb-20130526.zip and it is not longer working on my ArcaOS 5 system. If I get the newer usb.ids from its web site (2018-08-15), when I run lsusb I just get a blank return from the command.

When I wrote my "Extracting Hardware Information from ArcaOS and OS/2" article, lsusb was working fine, it haven't been updated from that days, so my only guess is that the newer usb.ids file is producing that issue.

I have also libusb dll installed.
Code: [Select]
Directory of C:\usr\lib

 6-17-16  5:24a        24,217    124 a---  libusb10.dll


Any ideas?

Regards
« Last Edit: August 31, 2018, 06:48:43 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 33
  • Posts: 795
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #1 on: August 17, 2018, 01:09:23 am »
Hi Martin

Possibly you need a newer libusb10.dll - I have this version:-

7-12-16  8:49a        84,096      0 a---  libusb10.dll

I just downloaded and tested lsusb and it seems to be working fine with the above.

Not sure where I got this build from though, Sorry...

Using ANPM I see there is a libusb1 rpm available which contains a different build of libusb10.dll - might be worth trying.


Regards

Pete

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 361
  • -Receive: 72
  • Posts: 2242
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Problems with lsusb and usb.ids
« Reply #2 on: August 17, 2018, 03:50:00 am »
Hi.

On the Netlabs RPM, on the libusb1 package, I can not find the libusb10.dll file.

Any other ideas?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 33
  • Posts: 795
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #3 on: August 17, 2018, 04:34:28 am »
Hi Martin

You should be looking in Available not Installed - see Captured1.png attached


Regards

Pete

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 33
  • Posts: 795
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #4 on: August 17, 2018, 04:40:16 am »
Hi Martin

I've just realised that both packages have the same version number but are obviously different in contents.

You may have to uninstall your current libusb1 package in order to install the version containing libusb10.dll - looks like a bit of a cockup on the yum/rpm front.


Regards

Pete

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 361
  • -Receive: 72
  • Posts: 2242
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Problems with lsusb and usb.ids
« Reply #5 on: August 17, 2018, 04:50:36 pm »
Hi Pete

I just uninstalled libusb1 and installed the older version of  libusb1 (1.0.16-1 and 2) , but it just insist to installs the libusb-legacy-0.

It looks to me that libusb10.dll got replaced by usb100.dll for newer releases. Maybe I should ask Paul if he has some time to update his lsusb port to support the newer DLL.

I don't know what other tools that uses libusb10.dll can be affected.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Silvan Scherrer

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 9
  • Posts: 165
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #6 on: August 17, 2018, 06:03:43 pm »
Hi Pete

I just uninstalled libusb1 and installed the older version of  libusb1 (1.0.16-1 and 2) , but it just insist to installs the libusb-legacy-0.

It looks to me that libusb10.dll got replaced by usb100.dll for newer releases. Maybe I should ask Paul if he has some time to update his lsusb port to support the newer DLL.

I don't know what other tools that uses libusb10.dll can be affected.

Regards
just install what the rpm tells you. the legacy is a forwarder dll to the new usb dll. All should work with that. doing some stuff y hand will not do any good.
kind regards
Silvan
CTO bww bitwise works GmbH

Please help us with donations, so we can further work on OS/2 based projects. Our Shop is at https://www.bitwiseworks.com/shop/index.php

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 361
  • -Receive: 72
  • Posts: 2242
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Problems with lsusb and usb.ids
« Reply #7 on: August 17, 2018, 10:47:47 pm »
Hi Pete

Can you confirm if you "lsusb" works with the latest version of usb.ids.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 33
  • Posts: 795
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #8 on: August 18, 2018, 01:16:46 am »
Hi Martin

Yes, no problem, that is what I installed to test lsusb with.

I finally discovered where the libusb10.dll I am using came from - http://smedley.id.au/tmp/libusb-20161207.zip
May be worth trying if still having problems.


Regards

Pete



Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 361
  • -Receive: 72
  • Posts: 2242
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Problems with lsusb and usb.ids
« Reply #9 on: August 18, 2018, 09:15:46 pm »
Hi Pete

You are right. The moment I replaced "libusb10.dll" with the older one from Paul, lsusb worked fine.

Thanks. I'm opening a ticket to notify Paul on his mantis.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 33
  • Posts: 795
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #10 on: August 18, 2018, 09:23:59 pm »
Hi Martin

If the rpm libusb does not work maybe you should open a ticket about that as well.


Regards

Pete



Paul Smedley

  • Sr. Member
  • ****
  • Thank You
  • -Given: 11
  • -Receive: 53
  • Posts: 423
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #11 on: August 18, 2018, 11:16:18 pm »
Hey Martin,,

You are right. The moment I replaced "libusb10.dll" with the older one from Paul, lsusb worked fine.

Thanks. I'm opening a ticket to notify Paul on his mantis.

With all due respect, what would you like me to do? If the rpm guys want to break existing DLL's, let them rebuild lsusb.

As you've written, the DLL & exe I provide work.

Cheers,

Paul

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 33
  • Posts: 904
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #12 on: August 19, 2018, 12:30:44 am »
Paul

+10

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 361
  • -Receive: 72
  • Posts: 2242
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Problems with lsusb and usb.ids
« Reply #13 on: August 19, 2018, 10:41:25 pm »
Hey Martin,,

You are right. The moment I replaced "libusb10.dll" with the older one from Paul, lsusb worked fine.

Thanks. I'm opening a ticket to notify Paul on his mantis.

With all due respect, what would you like me to do? If the rpm guys want to break existing DLL's, let them rebuild lsusb.

As you've written, the DLL & exe I provide work.

Cheers,

Paul

Hi Paul.

Also, with all due respect, I really do not know who is right and wrong. I don't have the skill to know who broke what or who is using an old code or doing the right thing.

The easy thing for the user will be for lsusb to work fine with the libraries installed from Netlabs (USB100.DLL and libusb10.dll), but I don't know if the choice to change libusb10.dll for usb100.dll was something from the source of the open source project itself, or was only a choice made by bitwise.  If it was Bitwise choice, it will be interesting to hear from them.

The original source code source project for lsusb and libusb is https://github.com/gregkh/usbutils , right?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Silvan Scherrer

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 9
  • Posts: 165
    • View Profile
Re: Problems with lsusb and usb.ids
« Reply #14 on: August 20, 2018, 12:36:02 pm »
Hi

I'm using lsusb-20130526.zip and it is not longer working on my ArcaOS 5 system. If I get the newer usb.ids from its web site (2018-08-15), when I run lsusb I just get a blank return from the command.

When I wrote my "Extracting Hardware Information from ArcaOS and OS/2" article, lsusb was working fine, it haven't been updated from that days, so my only guess is that the newer usb.ids file is producing that issue.

I have also libusb dll installed.
Code: [Select]
Directory of C:\usr\lib

 6-17-16  5:24a        24,217    124 a---  libusb10.dll


Any ideas?

Regards
I just tried lsusb with latest usb.ids and all runs still with rpm libsb1. So I don't see any issues with it or I'm blind.
kind regards
Silvan
CTO bww bitwise works GmbH

Please help us with donations, so we can further work on OS/2 based projects. Our Shop is at https://www.bitwiseworks.com/shop/index.php