usb problem - disconects devices

Hello
I installed a Debian Wheezy dostro on SD card. Works fine, but I have a problem with USB…
when I connect GSM modem ora a mouse it won’t work…
I have something like this in log file:

May 24 19:42:46 debian-armhf kernel: [ 1.076617] usb 1-1: new low-speed USB device number 2 using musb-hdrc
May 24 19:42:46 debian-armhf kernel: [ 1.199427] usb 1-1: New USB device found, idVendor=17ef, idProduct=6019
May 24 19:42:46 debian-armhf kernel: [ 1.199438] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 24 19:42:46 debian-armhf kernel: [ 1.199449] usb 1-1: Product: Lenovo USB Optical Mouse
May 24 19:42:46 debian-armhf kernel: [ 1.199459] usb 1-1: Manufacturer: Logitech
May 24 19:42:46 debian-armhf kernel: [ 1.202795] input: Logitech Lenovo USB Optical Mouse as /devices/ocp.2/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/input/input0
May 24 19:42:46 debian-armhf kernel: [ 1.203211] hid-generic 0003:17EF:6019.0001: input: USB HID v1.11 Mouse [Logitech Lenovo USB Optical Mouse] on usb-musb-hdrc.1.auto-1/input0
May 24 19:42:46 debian-armhf kernel: [ 5.821643] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
May 24 19:42:46 debian-armhf kernel: [ 6.266179] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
May 24 19:42:46 debian-armhf kernel: [ 12.815491] net eth0: initializing cpsw version 1.12 (0)
May 24 19:42:46 debian-armhf kernel: [ 12.817694] net eth0: phy found : id is : 0x7c0f1
May 24 19:42:46 debian-armhf kernel: [ 12.834823] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
May 24 19:42:46 debian-armhf kernel: [ 15.895394] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
May 24 19:42:46 debian-armhf kernel: [ 15.895467] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
May 24 19:43:22 debian-armhf kernel: [ 61.202525] usb 1-1: USB disconnect, device number 2
root@debian-armhf:/home/debian#

So it’s connecting a device but after disconnecting it…( time from 0,2s to 60s or more…)

Anyone can help?

Marcin

Any hints you can provide on which board this is?

Gerald

disconnecting is always after 60,2s with usb mouse…

W dniu piątek, 24 maja 2013 21:52:29 UTC+2 użytkownik Marcin Ściegienny napisał:

Good. So, is this board a BeagleBoard, BeagleBoard-xM, BeagleBone, or BeagleBone Black?

Gerald

Sorry - this is BBBlack and Debian Wheezy

W dniu piątek, 24 maja 2013 21:52:29 UTC+2 użytkownik Marcin Ściegienny napisał:

Did it do this with the SW that came with the board?

Gerald

cat /dev/bus/usb/001/001 > /dev/null helps a little - but usb device starting with another number and after another 60 s is disconnected…

W dniu piątek, 24 maja 2013 21:52:29 UTC+2 użytkownik Marcin Ściegienny napisał:

and this is what I found in /var/log/debug when disconnect occurs:

May 24 21:15:21 debian-armhf kernel: [ 4514.072028] hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
May 24 21:15:21 debian-armhf kernel: [ 4514.072059] usb 1-1: unregistering device
May 24 21:15:21 debian-armhf kernel: [ 4514.072070] usb 1-1: unregistering interface 1-1:1.0
May 24 21:15:21 debian-armhf kernel: [ 4514.076462] usb 1-1: usb_disable_device nuking all URBs
May 24 21:15:21 debian-armhf kernel: [ 4514.185254] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
May 24 21:15:21 debian-armhf kernel: [ 4514.185357] hub 1-0:1.0: hub_suspend
May 24 21:15:21 debian-armhf kernel: [ 4514.185388] usb usb1: bus auto-suspend, wakeup 1

W dniu piątek, 24 maja 2013 21:52:29 UTC+2 użytkownik Marcin Ściegienny napisał:

So, I will try this one more time. Does the mouse work with the SW that came on the board?

Gerald

I can’t tell whether usb mouse is working properly - I work via ssh ( I have no hdmi cable to connect BBB to a monitor)
The problem is in my opinion in disabling power on usb. This happens exactly after 60 s ( “auto power off”?)
I start BBB with my mouse connected and the LED in mouse is on. After 60s is OFF and I have entries in logfile :

24 21:46:27 debian-armhf kernel: [ 0.000000] free_area_init_node: node 0, pgdat c0911680, node_mem_map c098a000
May 24 21:46:27 debian-armhf kernel: [ 0.000000] Normal zone: 1024 pages used for memmap
May 24 21:46:27 debian-armhf kernel: [ 0.000000] Normal zone: 0 pages reserved
May 24 21:46:27 debian-armhf kernel: [ 0.000000] Normal zone: 129792 pages, LIFO batch:31
May 24 21:46:27 debian-armhf kernel: [ 0.000000] pcpu-alloc: s14080 r8192 d14592 u36864 alloc=9*4096
May 24 21:46:27 debian-armhf kernel: [ 0.000000] pcpu-alloc: [0] 0
May 24 21:46:27 debian-armhf kernel: [ 0.109325] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
May 24 21:46:27 debian-armhf kernel: [ 0.110918] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
May 24 21:46:27 debian-armhf kernel: [ 0.112272] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
May 24 21:46:27 debian-armhf kernel: [ 0.113782] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
May 24 21:46:27 debian-armhf kernel: [ 0.114341] of_get_named_gpio_flags exited with status 52
May 24 21:46:27 debian-armhf kernel: [ 0.144231] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.687631] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
May 24 21:46:27 debian-armhf kernel: [ 0.687649] musb-hdrc: MHDRC RTL version 2.0
May 24 21:46:27 debian-armhf kernel: [ 0.687662] musb-hdrc: setup fifo_mode 4
May 24 21:46:27 debian-armhf kernel: [ 0.687688] musb-hdrc: 28/31 max ep, 16384/16384 memory
May 24 21:46:27 debian-armhf kernel: [ 0.690105] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
May 24 21:46:27 debian-armhf kernel: [ 0.690122] musb-hdrc: MHDRC RTL version 2.0
May 24 21:46:27 debian-armhf kernel: [ 0.690135] musb-hdrc: setup fifo_mode 4
May 24 21:46:27 debian-armhf kernel: [ 0.690157] musb-hdrc: 28/31 max ep, 16384/16384 memory
May 24 21:46:27 debian-armhf kernel: [ 0.692222] musb-hdrc musb-hdrc.1.auto: supports USB remote wakeup
May 24 21:46:27 debian-armhf kernel: [ 0.692361] usb usb1: default language 0x0409
May 24 21:46:27 debian-armhf kernel: [ 0.692421] usb usb1: udev 1, busnum 1, minor = 0
May 24 21:46:27 debian-armhf kernel: [ 0.693308] usb usb1: usb_probe_device
May 24 21:46:27 debian-armhf kernel: [ 0.693337] usb usb1: configuration #1 chosen from 1 choice
May 24 21:46:27 debian-armhf kernel: [ 0.693410] usb usb1: adding 1-0:1.0 (config #1, interface 0)
May 24 21:46:27 debian-armhf kernel: [ 0.693622] hub 1-0:1.0: usb_probe_interface
May 24 21:46:27 debian-armhf kernel: [ 0.693644] hub 1-0:1.0: usb_probe_interface - got id
May 24 21:46:27 debian-armhf kernel: [ 0.694074] hub 1-0:1.0: standalone hub
May 24 21:46:27 debian-armhf kernel: [ 0.694090] hub 1-0:1.0: individual port power switching
May 24 21:46:27 debian-armhf kernel: [ 0.694105] hub 1-0:1.0: no over-current protection
May 24 21:46:27 debian-armhf kernel: [ 0.694121] hub 1-0:1.0: Single TT
May 24 21:46:27 debian-armhf kernel: [ 0.694139] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
May 24 21:46:27 debian-armhf kernel: [ 0.694156] hub 1-0:1.0: power on to power good time: 10ms
May 24 21:46:27 debian-armhf kernel: [ 0.694197] hub 1-0:1.0: local power source is good
May 24 21:46:27 debian-armhf kernel: [ 0.694309] hub 1-0:1.0: enabling power on all ports
May 24 21:46:27 debian-armhf kernel: [ 0.701698] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.701717] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.701731] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.736892] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.736914] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.736928] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.794812] of_get_named_gpio_flags exited with status 53
May 24 21:46:27 debian-armhf kernel: [ 0.794834] of_get_named_gpio_flags exited with status 54
May 24 21:46:27 debian-armhf kernel: [ 0.794854] of_get_named_gpio_flags exited with status 55
May 24 21:46:27 debian-armhf kernel: [ 0.794873] of_get_named_gpio_flags exited with status 56
May 24 21:46:27 debian-armhf kernel: [ 0.794908] of_get_named_gpio_flags exited with status 53
May 24 21:46:27 debian-armhf kernel: [ 0.795171] of_get_named_gpio_flags exited with status 54
May 24 21:46:27 debian-armhf kernel: [ 0.795418] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
May 24 21:46:27 debian-armhf kernel: [ 0.795494] hub 1-0:1.0: hub_suspend
May 24 21:46:27 debian-armhf kernel: [ 0.795537] usb usb1: bus auto-suspend, wakeup 1
May 24 21:46:27 debian-armhf kernel: [ 0.795834] of_get_named_gpio_flags exited with status 55
May 24 21:46:27 debian-armhf kernel: [ 0.796033] of_get_named_gpio_flags exited with status 56
May 24 21:46:27 debian-armhf kernel: [ 0.803415] of_get_named_gpio_flags exited with status 59
May 24 21:46:27 debian-armhf kernel: [ 0.815141] of_get_named_gpio_flags: can’t parse gpios property
May 24 21:46:27 debian-armhf kernel: [ 0.867437] usb usb1: usb wakeup-resume
May 24 21:46:27 debian-armhf kernel: [ 0.867492] usb usb1: usb auto-resume
May 24 21:46:27 debian-armhf kernel: [ 0.867567] hub 1-0:1.0: hub_resume
May 24 21:46:27 debian-armhf kernel: [ 0.867631] hub 1-0:1.0: port 1: status 0301 change 0001
May 24 21:46:27 debian-armhf kernel: [ 0.971227] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
May 24 21:46:27 debian-armhf kernel: [ 0.971305] hub 1-0:1.0: port 1, status 0301, change 0000, 1.5 Mb/s
May 24 21:46:27 debian-armhf kernel: [ 1.197531] usb 1-1: skipped 1 descriptor after interface
May 24 21:46:27 debian-armhf kernel: [ 1.197862] usb 1-1: default language 0x0409
May 24 21:46:27 debian-armhf kernel: [ 1.199428] usb 1-1: udev 2, busnum 1, minor = 1
May 24 21:46:27 debian-armhf kernel: [ 1.199950] usb 1-1: usb_probe_device
May 24 21:46:27 debian-armhf kernel: [ 1.199969] usb 1-1: configuration #1 chosen from 1 choice
May 24 21:46:27 debian-armhf kernel: [ 1.200483] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
May 24 21:46:27 debian-armhf kernel: [ 1.200656] usbhid 1-1:1.0: usb_probe_interface
May 24 21:46:27 debian-armhf kernel: [ 1.200671] usbhid 1-1:1.0: usb_probe_interface - got id
May 24 21:46:27 debian-armhf kernel: [ 1.203960] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
May 24 21:46:27 debian-armhf kernel: [ 1.204004] hub 1-0:1.0: port 1 enable change, status 00000303
May 24 21:46:27 debian-armhf kernel: [ 61.202456] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
May 24 21:46:27 debian-armhf kernel: [ 61.202522] hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
May 24 21:46:27 debian-armhf kernel: [ 61.202552] usb 1-1: unregistering device
May 24 21:46:27 debian-armhf kernel: [ 61.202564] usb 1-1: unregistering interface 1-1:1.0
May 24 21:46:27 debian-armhf kernel: [ 61.203869] usb 1-1: usb_disable_device nuking all URBs
May 24 21:46:27 debian-armhf kernel: [ 61.312871] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
May 24 21:46:27 debian-armhf kernel: [ 61.312952] hub 1-0:1.0: hub_suspend
May 24 21:46:27 debian-armhf kernel: [ 61.312981] usb usb1: bus auto-suspend, wakeup 1

Can I disable “power management” on USB bus ?

W dniu piątek, 24 maja 2013 21:52:29 UTC+2 użytkownik Marcin Ściegienny napisał:

external active USB HUB and works fine :slight_smile:

Marc

W dniu piątek, 24 maja 2013 21:52:29 UTC+2 użytkownik Marcin Ś. napisał: