LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-18-2021, 11:03 AM   #16
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133

Quote:
Originally Posted by ljb643 View Post
Update: I reverted to libusb-1.0.23 and blocked future upgrades so it it won't install 1.0.24. Everything worked, and then it didn't work. The reason it broke is that there was a new aaa_elflibs package released on Jan 9 and it contains the 1.0.24 version of libusb. This overwrote the library version link from libusb-1.0.23 so even though libusb-1.0.23 was still installed, libusb-1.0.24 from aaa_elflibs was active, breaking access to the phone.

I fixed it by deleting libusb-1.0.so.0.3.0 and pointing the link libusb-1.0.so.0 back to libusb-1.0.so.0.2.0

Maybe re-installing libusb-1.0.23 again would have fixed it but I'm not sure.

Meanwhile, the libusb project "roadmap" says 1.0.25 is due out "by July 31, 2021" which is not good.
This worked for me as well, however I did notice something odd

While libusb-1.0.so.0 is linked to libusb-1.0.so.0.3.0 in "/usr/lib64", it's linked to libusb-1.0.so.0.2.0 in "/boot/initrd-tree/usr/lib64/"

I'm wondering if this isn't the problem..

Can files and symlinks be replaced in this location? or will it cause issues??
 
Old 01-18-2021, 07:16 PM   #17
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
/boot/initrd-tree is only used while making a ramdisk for booting the kernel. I don't think it will make much difference at all which version of libusb is in the boot ramdisk - it is only used for a short time while booting, then everything switches to your root disk.
 
Old 01-18-2021, 07:34 PM   #18
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by ljb643 View Post
/boot/initrd-tree is only used while making a ramdisk for booting the kernel. I don't think it will make much difference at all which version of libusb is in the boot ramdisk - it is only used for a short time while booting, then everything switches to your root disk.
Yea, I found the documentation shortly after posting and came to that same realization

Thanks for confirming though
 
Old 02-21-2021, 07:29 PM   #19
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gmgf View Post
A patch for libusb-1.0.24, is available here:

https://github.com/archlinux/svntogi..._parsing.patch
I tried that patch for libusb-1.0.24 but it didn't help. lsusb still won't show the phone, and trying to open or mount it from the Xfce desktop still gets that error. So I'm back to libusb-1.0.23 again.
 
1 members found this post helpful.
Old 02-22-2021, 07:35 AM   #20
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by ljb643 View Post
I tried that patch for libusb-1.0.24 but it didn't help. lsusb still won't show the phone, and trying to open or mount it from the Xfce desktop still gets that error. So I'm back to libusb-1.0.23 again.
Did you reboot?

The patch worked fine for me.

Patched the source, built a new pkg, installed and rebooted

Also blacklisted libusb-1.0.24 so it won't (or shouldn't) try to install that version, but should install 1.0.25 when it's released
 
Old 02-22-2021, 03:38 PM   #21
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Yes. It shouldn't have needed a reboot since it was just lsusb being tested, but I tried after login, and again after reboot. Didn't work. I'm going to try something else now: libusb "master" which contains the latest commits.

From what I've seen, they are not in much of a rush to release 1.0.25, and in fact still have pending fixes they want to put in there.
 
1 members found this post helpful.
Old 02-22-2021, 04:35 PM   #22
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Building libusb from the current 'git master' worked. The phone is seen by lsusb, thunar can mount and open it, everything works.

So apparently it is a different change that fixes my issue.

For anyone trying to see if they have the same issue, here are a few lines from lsusb with debug logging when it fails with my Android phone. Here I'm using libusb-1.0.24 as provided by slackware64-current. The command I used was:
Code:
$ LIBUSB_DEBUG=4 lsusb -s 002:010
Where syslog told me my phone was on bus 2, device 10, so 002:010. Here is where libusb rejects my phone:
Code:
libusb: debug [linux_get_device_address] bus=2 dev=10
libusb: debug [linux_enumerate_device] busnum 2 devaddr 10 session_id 522
libusb: debug [linux_enumerate_device] allocating new device for 2/10 (session 522)
libusb: warning [parse_config_descriptors] config length mismatch wTotalLength 39 real 30
libusb: error [parse_config_descriptors] descriptor is not a config desc (type 0x00)
libusb: debug [libusb_unref_device] destroy device 2.10
 
Old 02-22-2021, 05:26 PM   #23
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by ljb643 View Post
Yes. It shouldn't have needed a reboot since it was just lsusb being tested

Yea, but I've had issues where after updating it worked then didn't after a reboot heh

So I just got into the habit of rebooting with this one
 
Old 02-22-2021, 05:35 PM   #24
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by ljb643 View Post
Building libusb from the current 'git master' worked. The phone is seen by lsusb, thunar can mount and open it, everything works.
If you want to try and track down the commit that fixed it, you could use git bisect to allow you to find what commit fixed your issue. This could also allow Pat to apply the patch if he feels it is necessary.
 
Old 02-22-2021, 06:00 PM   #25
dadcompton
LQ Newbie
 
Registered: Jan 2017
Location: PA
Distribution: Slackware
Posts: 7

Rep: Reputation: Disabled
Cant connect android phone on Slackware current

I found a way around this. Clone the libusb git repository (git clone https://github.com/libusb/libusb)
cd libusb
./configure --disable-static
make

After make is finished cd into libusb/.libs. Its a hidden folder. copy the libusb-1.0* from there to /usr/lib64.

That helped me get my phone connected.

edit: I have a tar archive containing the three libs if anyone is interested.

Last edited by dadcompton; 02-22-2021 at 06:09 PM.
 
Old 02-22-2021, 09:32 PM   #26
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dadcompton View Post
I found a way around this. Clone the libusb git repository (git clone https://github.com/libusb/libusb)
cd libusb
./configure --disable-static
make

After make is finished cd into libusb/.libs. Its a hidden folder. copy the libusb-1.0* from there to /usr/lib64.

That helped me get my phone connected.

edit: I have a tar archive containing the three libs if anyone is interested.
Yes that is essentially what I did too. But I used the github "Download as .zip" feature rather than cloning it, unzip and run bootstrap.sh, then used the same configure line as in the Slackware build script. Then I just copied libusb/.libs/libusb-1.0.so.0.3.0 over the one installed by Slackware's libusb-1.0.24 package. But you have to replace the file again if it gets overwritten by installation of aaa_libraries or libusb-1 packages.
 
Old 02-23-2021, 12:12 AM   #27
dadcompton
LQ Newbie
 
Registered: Jan 2017
Location: PA
Distribution: Slackware
Posts: 7

Rep: Reputation: Disabled
Sorry , should have read your post first. The files have to be replaced after slackpkg upgrade-all?
 
Old 04-17-2021, 11:08 AM   #28
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Followup: From the Slackware64-current ChangeLog:
Code:
Fri Apr 16 23:29:36 UTC 2021
l/libusb-1.0.24-x86_64-4.txz:  Rebuilt.
  Fix parsing of descriptors for multi-configuration devices. Thanks to acbff0.
This patched version of libusb fixed the problem I was having with my Android phone.
 
2 members found this post helpful.
Old 02-03-2022, 06:57 PM   #29
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Finally, libusb-1.0.25 was released at https://github.com/libusb/libusb/releases

I assume this includes the patch that was applied to 1.0.24 in Slackware64-current last April 2021 to make it work again with my phone and other devices. Unfortunately, this missed making it into the Slackware-15.0 release yesterday.

I don't know if it would be an appropriate patch update to 15.0 or not.
 
Old 02-10-2022, 02:02 PM   #30
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by ljb643 View Post
Finally, libusb-1.0.25 was released at https://github.com/libusb/libusb/releases

I assume this includes the patch that was applied to 1.0.24 in Slackware64-current last April 2021 to make it work again with my phone and other devices. Unfortunately, this missed making it into the Slackware-15.0 release yesterday.

I don't know if it would be an appropriate patch update to 15.0 or not.
Why not just wait for the update?
Though that being said, libusb-1.0.24-x86_64-4 works just fine (for me anyway), I'd have to imagine 1.0.25 would be the same. That is assuming they don't break it again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64-current - cannot access my Android phone's files after upgrading to xfce4.14 and Plasma5 VicFer Slackware 13 12-18-2020 10:51 AM
Problems with slackrepo after recent -current updates ScrambledLogic Slackware 12 12-26-2019 03:31 AM
Black screen after newest updates in Slackware64 current Andersen Slackware 12 11-15-2015 04:17 AM
(SOLVED) Unable to send mail with Mutt after recent Slackware Current updates frankbell Slackware 4 08-28-2015 12:19 AM
puppy thoughts after having a recent look see -- given recent developments .. jonyo Puppy 0 11-29-2011 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration