LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-22-2020, 04:09 AM   #1
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Rep: Reputation: Disabled
Problems mounting USB drive via USB OTG port


Hello to all. I have a Wandboard Quad running Arch Linux ARM v. 5.8.7-1-ARCH. it serves as a mini-NAS and has one USB A port and one USB Mini AB OTG port. I have a Seagate Backup Plus USB hard drive connected to the USB A port and it works flawlessly.

I would like to connect a second USB drive to the USB OTG port and mount it at boot time. I have tried commenting out the USB drive in fstab and then rebooting and plugging in the same drive to the USB OTG port via a USB A female-to-USB Mini B cable. But the drive seems to be detected as a USB hub, or is not detected at all:

Code:
[alarm@alarm ~]$ [ 3029.018790] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 3029.023760] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2
[ 3029.050691] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 3029.056308] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[ 3029.064613] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3029.071870] usb usb2: Product: EHCI Host Controller
[ 3029.076778] usb usb2: Manufacturer: Linux 5.8.7-1-ARCH ehci_hcd
[ 3029.082725] usb usb2: SerialNumber: ci_hdrc.0
[ 3029.087729] hub 2-0:1.0: USB hub found
[ 3029.091659] hub 2-0:1.0: 1 port detected
lsusb -t shows only:

Code:
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
What can I do so that the USB HDD is detected as a storage device at boot time and mounted? The g_mass_storage module is in my device tree but I don't know how to get it to load at boot time and recognize the drive.

Any help would be appreciated.

Regards,
Les
 
Old 09-22-2020, 09:51 AM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,967

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I think my solution would be to use a powered USB hub and run both drives from the USB-A port. I've dealt with USB-OTG only in PDAs and phones, where it was already set up. I don't know enough about the implementation to help, but I'll be interested in seeing how it works out.
 
Old 09-22-2020, 10:45 AM   #3
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by sgosnell View Post
I think my solution would be to use a powered USB hub and run both drives from the USB-A port. I've dealt with USB-OTG only in PDAs and phones, where it was already set up. I don't know enough about the implementation to help, but I'll be interested in seeing how it works out.
Thanks! That would be a solution. But I'd like to at least try running both USB drives just off the Wandboard and its power supply. I currently have a SATA 3.5" HDD on the board's SATA port, but it requires its own 12V power supply. I like the idea of a NAS running off one 5V power supply. Also I like a challenge and an opportunity to learn more about Linux.

I will keep you posted and post notes when and if i make progress (or run into dead ends ;-))
 
  


Reply

Tags
arch linux arm, otg, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB 3.0 Dual-Role OTG device on non-HNP port unable to enumerate USB device gildbg Slackware 4 03-18-2020 02:05 AM
Slackware installation via the ARM OTG USB port SCerovec Slackware - ARM 0 11-22-2019 07:44 PM
USB peripheral device not found on USB OTG port with Linux 3.0.0 kernel lmorda Linux - Embedded & Single-board computer 1 04-28-2012 11:56 AM
USB-OTG device mode - Unable to load g_file_storage.ko Padmasri Linux - Software 2 08-19-2010 12:53 AM
Has someone tried any USB 2.0 OTG throughput optimization? iWeston Linux - Kernel 1 07-24-2008 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:52 PM.

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