DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th July 2015
betweendayandnight betweendayandnight is offline
friendly
 
Join Date: Jul 2015
Posts: 67
Default USB 3.0 support is patchy in OpenBSD 5.7

I've discovered on some occasions that OpenBSD 5.7-amd64 is unable to detect my USB 2.0 and 3.0 flash drive. The port into which the flash drive is plugged supports USB 3.0 natively.

Microsoft Windows OS (7 and 8), Ubuntu and Debian have no problem detecting the said flash drive.

Any clues as to the cause of the issue?

================================================== =

The following line has been added to /etc/fstab:

/dev/sd1i /mnt/usb msdos rw,noauto 0 0

I plug my USB 2.0 flash drive into a port that supports USB 3.0 natively and reboot my machine.

Next I type the following command:

sudo mount /dev/sd1i /mnt/usb

And the following error message appears:

mount_ffs: /dev/sd1i on /mnt/usb: Device not configured

Note that my USB 2.0 flash drive already contains some text files, programs, etc. and the latter are visible under Microsoft Windows OS, Ubuntu and Debian. I've the same problem with my non-empty USB 3.0 flash drive.

Last edited by betweendayandnight; 13th July 2015 at 06:58 PM.
Reply With Quote
  #2   (View Single Post)  
Old 13th July 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Hi there. USB3 support is relatively new -- it was announced for OpenBSD 5.7 -- and development continues. There have been 5 additional revisions to the driver since 5.7-release, and there have been some problems reported with at least one model of USB controller.

If the flash drive will operate at USB 2.0 speeds, you could disable the USB3 driver, xhci(4), during boot and see if the problems are circumvented. Here's a quick "how to" but you should refer to FAQ 5.8 and FAQ 5.9 and the boot_config(8) and config(8) man pages.
  1. At the boot> prompt, type "-c" to boot /bsd and enter its User Kernel Configuration tool
  2. At the first UKC> prompt, type "disable xhci"
  3. At the second UKC> prompt, type "q"
  4. If after booting, problems are resolved, you can make the change permanent by applying the change with config(8) and its -u option.
The other alternative is to upgrade from -release to -current, the OpenBSD development branch, but that would not be a recommendation I would give to a brand new user. Flavors of OpenBSD are discussed in FAQ 5.1.

Last edited by jggimi; 13th July 2015 at 07:33 PM. Reason: typo
Reply With Quote
  #3   (View Single Post)  
Old 13th July 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Whoops, I missed your edits. The problem may not be USB 3 related.

When you insert the device, you should received kernel messages on the console (and repeated in /var/log/messages) that indicates the sd(4) device dynamically defined. Be sure it's sd1. If it is a different number, your commands and fstab entry will not function.

Second, if it is sd1, be sure the device's MBR has been read and the partition is FAT. If it's an NTFS or Ext4 file system, it isn't a FAT filesystem.
Code:
# fdisk sd1
Mountable foreign filesystems should be assigned a virtual disklabel partition. This is based on the partition type in the MBR partition table, not by inspection of the filesystem. We've had users here who had MBR partition types that belied the actual filesystem being used, causing difficulties.
Code:
# disklabel sd1

Last edited by jggimi; 13th July 2015 at 07:45 PM. Reason: clarity
Reply With Quote
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the OpenBSD support well AMD's APU hardware? e1-531g OpenBSD General 3 29th June 2014 04:50 PM
OpenBSD 5.5 and Realtek 8111G support ? gkbsd OpenBSD Installation and Upgrading 12 3rd May 2014 01:14 PM
Virtio Support :: OpenBSD liquidshane OpenBSD General 3 23rd June 2012 10:13 PM
OpenBSD support a CPU Frequency Scaling? aleunix OpenBSD General 1 8th March 2012 10:35 PM
Does OpenBSD support WPA? Dazhelpwiz OpenBSD General 3 25th May 2008 01:26 AM


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick