Bananian Linux

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000080Bananian Linux[All Projects] Kernelpublic2014-12-29 01:562015-04-04 14:39
Reporterguest 
Assigned ToNico 
PrioritynormalSeveritytrivialReproducibilityalways
StatusresolvedResolutionnot fixable 
Product Version14.11.02 
Target VersionFixed in Version 
Summary0000080: The USB Client port only works as a HOST not OTG port
DescriptionThe USB client port does not work as an OTG port with g_mass_storage according to: http://www.linux-usb.org/gadget/file_storage.html [^]
The USB client port is always acting as a ordinary HOST port when using an OTG cable an plugging in a USB stick.
Connecting the BananaPi to a Windows PC results in no device found, but the following output in dmesg:


[   86.631328] sd 2:0:0:0: [sda] Attached SCSI removable disk
[  108.515479] WRN:L2728(drivers/usb/sunxi_usb/udc/sw_udc.c):ERR: usb device is not active
[  108.523868] usb open backing file: /dev/sda, 0xeeb99800
[  108.530182] g_mass_storage gadget: Mass Storage Function, version: 2009/09/11
[  108.541530] g_mass_storage gadget: Number of LUNs=1
[  108.550433]  lun0: LUN: removable file: /dev/sda
[  108.562358] ep_matches, wrn: endpoint already claimed, ep(0xc08f406c, 0xbf02528c, ep1-bulk)
[  108.568320] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[  108.581626] g_mass_storage gadget: userspace failed to provide iSerialNumber
[  108.593200] g_mass_storage gadget: g_mass_storage ready
[  108.602686] WRN:L2762(drivers/usb/sunxi_usb/udc/sw_udc.c):ERR: usb device is not active

Steps To Reproduce1. Boot
2. Run bananian-config to ensure that OTG is enabled
3. Reboot
4. Try to enter OTG mode. Plug a USB stick in the HOST port and run:
Command: modprobe g_mass_storage file=/dev/sda
5. Command line says g_mass_storage is ready, but nothing happens when connected to anoter PC (Windows host)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000201)
Nico (manager)
2015-04-04 14:39

g_mass_storage seems to be broken in the sunxi 3.4.x kernel sources.
OTG is configured to work as host only.

- Issue History
Date Modified Username Field Change
2014-12-29 01:56 guest New Issue
2015-04-04 14:39 Nico Note Added: 0000201
2015-04-04 14:39 Nico Status new => resolved
2015-04-04 14:39 Nico Resolution open => not fixable
2015-04-04 14:39 Nico Assigned To => Nico


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker