Modify

Opened 4 years ago

Last modified 3 years ago

#14977 assigned defect

Usb2 not work correctly on mcs814x platform

Reported by: ramponis@… Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

I have compiled r39211 for a devolo usb extender.
If i connect a UVC usb camera i recive this error

uvcvideo: Failed to set UVC probe control : -110 (exp. 26).

Then the /dev/video0 is not created.
If i remove the kmod-usb2_3.3.8-1_mcs814x and i use only kmod-usb-ohci it works.

BusyBox v1.19.4 (2014-01-29 17:40:01 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (Bleeding Edge, r39211)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.3.8 (ramponis@ramponis-desktop) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39211) ) #3 Mon Feb 3 12:52:28 CET 2014
[    0.000000] CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Moschip MCS8140 board, model: Devolo dLAN USB Extender
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 4096
[    0.000000] free_area_init_node: node 0, pgdat c0280380, node_mem_map c02aa000
[    0.000000]   Normal zone: 32 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 4064 pages, LIFO batch:0
[    0.000000] CPU frequency: 175000 (kHz)
[    0.000000] SDRAM frequency: 100 (MHz)
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line: earlyprintk mem=16M console=ttyS0,57600
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 16MB = 16MB total
[    0.000000] Memory: 13460k/13460k available, 2924k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc1800000 - 0xff000000   ( 984 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc1000000   (  16 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0258000   (2368 kB)
[    0.000000]       .init : 0xc0258000 - 0xc0270000   (  96 kB)
[    0.000000]       .data : 0xc0270000 - 0xc02812a0   (  69 kB)
[    0.000000]        .bss : 0xc02812c4 - 0xc02a9ad4   ( 163 kB)
[    0.000000] NR_IRQS:32
[    0.000000] Timer frequency: 50000 (kHz)
[    0.000000] Calibrating delay loop... 86.93 BogoMIPS (lpj=434688)
[    0.090000] pid_max: default: 32768 minimum: 301
[    0.090000] Mount-cache hash table entries: 512
[    0.090000] CPU: Testing write buffer coherency: ok
[    0.090000] Setting up static identity map for 0x1d4a20 - 0x1d4a5c
[    0.100000] NET: Registered protocol family 16
[    0.120000] gpiochip_add: registered GPIOs 236 to 255 on device: 400d0000.gpio
[    0.130000] gpiochip_add: registered GPIOs 232 to 235 on device: 400d4000.gpio
[    0.150000] CPU mode: External MII
[    0.190000] bio: create slab <bio-0> at 0
[    0.220000] NET: Registered protocol family 2
[    0.220000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.220000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.220000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.230000] TCP: Hash tables configured (established 512 bind 512)
[    0.230000] TCP reno registered
[    0.230000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] NET: Registered protocol family 1
[    0.240000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.240000] JFFS2 version 2.2 (NAND) (ZLIB) (LZO) (LZMA) (RTIME) (RUBIN) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.240000] msgmni has been set to 26
[    0.250000] io scheduler noop registered
[    0.250000] io scheduler deadline registered (default)
[    0.250000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.260000] 400dc000.serial: ttyS0 at MMIO 0x400dc000 (irq = 21) is a 16550
[    0.270000] console [ttyS0] enabled
[    0.280000] mcs814x-rng 4009c000.rng: registered
[    0.300000] 1c000000.flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000c9
[    0.310000] 1c000000.flash: Found an alias at 0x800000 for the chip at 0x0
[    0.310000] 1c000000.flash: Found an alias at 0x1000000 for the chip at 0x0
[    0.310000] 1c000000.flash: Found an alias at 0x1800000 for the chip at 0x0
[    0.310000] 1c000000.flash: Found an alias at 0x2000000 for the chip at 0x0
[    0.310000] 1c000000.flash: Found an alias at 0x2800000 for the chip at 0x0
[    0.310000] 1c000000.flash: Found an alias at 0x3000000 for the chip at 0x0
[    0.310000] 1c000000.flash: Found an alias at 0x3800000 for the chip at 0x0
[    0.310000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.320000]   Amd/Fujitsu Extended Query version 1.1.
[    0.330000] 1c000000.flash: Swapping erase regions for top-boot CFI table.
[    0.340000] number of CFI chips: 1
[    0.350000] 6 ofpart partitions found on MTD device 1c000000.flash
[    0.360000] Creating 6 MTD partitions on "1c000000.flash":
[    0.370000] 0x000000000000-0x000000030000 : "ArmBoot"
[    0.390000] 0x000000030000-0x000000040000 : "Config1"
[    0.410000] 0x000000040000-0x000000050000 : "Config2"
[    0.430000] 0x000000050000-0x000000150000 : "kernel"
[    0.450000] 0x000000150000-0x000000510000 : "rootfs"
[    0.470000] mtd: partition "rootfs" set to be root filesystem
[    0.480000] mtd: partition "rootfs_data" created automatically, ofs=3A0000, len=170000
[    0.490000] 0x0000003a0000-0x000000510000 : "rootfs_data"
[    0.500000] 0x000000050000-0x000000510000 : "linux"
[    0.530000] nuport-mac-mii: probed
[    0.540000] nuport-mac 40084000.ethernet: attached PHY driver [Generic PHY] (mii_bus:phy_addr=8)
[    0.550000] nuport-mac 40084000.ethernet: registered (MAC: 00:0b:3b:00:00:01)
[    0.570000] Registered led device: dlan-usb-extender:green:usb
[    0.570000] TCP cubic registered
[    0.580000] NET: Registered protocol family 17
[    0.590000] NET: Registered protocol family 15
[    0.630000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.640000] Freeing init memory: 96K
[    8.190000] usbcore: registered new interface driver usbfs
[    8.210000] usbcore: registered new interface driver hub
[    8.220000] usbcore: registered new device driver usb
[    8.260000] SCSI subsystem initialized
[    8.300000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.310000] mcs814x-ohci 400fd000.ohci: MCS814X OHCI
[    8.320000] mcs814x-ohci 400fd000.ohci: new USB bus registered, assigned bus number 1
[    8.330000] mcs814x-ohci 400fd000.ohci: irq 11, io mem 0x400fd000
[    8.410000] hub 1-0:1.0: USB hub found
[    8.410000] hub 1-0:1.0: 2 ports detected
[    8.420000] mcs814x-ohci 400fe000.ohci: MCS814X OHCI
[    8.430000] mcs814x-ohci 400fe000.ohci: new USB bus registered, assigned bus number 2
[    8.440000] mcs814x-ohci 400fe000.ohci: irq 12, io mem 0x400fe000
[    8.520000] hub 2-0:1.0: USB hub found
[    8.520000] hub 2-0:1.0: 2 ports detected
[    8.760000] usb 1-1: new full-speed USB device number 2 using mcs814x-ohci
[   11.720000] JFFS2 notice: (208) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 28 of xref (0 dead, 21 orphan) found.
[   21.790000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   21.800000] Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after
[   21.810000] mcs814x-ehci 400fc000.ehci: MCS814X EHCI Host Controller
[   21.820000] mcs814x-ehci 400fc000.ehci: new USB bus registered, assigned bus number 3
[   21.840000] usb 1-1: USB disconnect, device number 2
[   21.900000] mcs814x-ehci 400fc000.ehci: irq 2, io mem 0x400fc000
[   21.930000] mcs814x-ehci 400fc000.ehci: USB 0.0 started, EHCI 1.00
[   21.950000] hub 3-0:1.0: USB hub found
[   21.960000] hub 3-0:1.0: 4 ports detected
[   21.970000] mcs814x-ehci 400fc000.ehci: added MCS814X EHCI driver
[   22.020000] mcs814x-wdt 400f8014.watchdog: registered
[   22.090000] Linux video capture interface: v2.00
[   22.210000] nf_conntrack version 0.5.0 (211 buckets, 844 max)
[   22.270000] usbcore: registered new interface driver usbserial
[   22.290000] usb 3-1: new high-speed USB device number 2 using mcs814x-ehci
[   22.300000] USB Serial support registered for generic
[   22.620000] usbcore: registered new interface driver usbserial_generic
[   22.630000] usbserial: USB Serial Driver core
[   22.700000] uvcvideo: Found UVC 1.00 device Microsoft® LifeCam VX-5500 (045e:072d)
[   27.730000] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[   32.750000] uvcvideo: Failed to query (129) UVC probe control : -110 (exp. 26).
[   32.760000] uvcvideo: Failed to initialize the device (-5).
[   32.770000] usbcore: registered new interface driver uvcvideo
[   32.780000] USB Video Class driver (1.1.1)
[   32.860000] xt_time: kernel timezone is -0000
[   32.900000] USB Serial support registered for FTDI USB Serial Device
[   32.920000] usbcore: registered new interface driver ftdi_sio
[   32.930000] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[   32.950000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   43.180000] eth0: link UP - 0/half
[   55.820000] Trying 100/FULL
[   56.830000] eth0: link UP - 100/full
root@OpenWrt:~#

I have also tested a usb storage.

If i try to copy through vsftpd i receive the followinf error:

[  377.170000] usb 1-1: reset high-speed USB device number 2 using mcs814x-ehci
[  378.040000] usb 1-1: reset high-speed USB device number 2 using mcs814x-ehci
[  435.350000] usb 1-1: reset high-speed USB device number 2 using mcs814x-ehci
[  489.160000] usb 1-1: reset high-speed USB device number 2 using mcs814x-ehci

Attachments (0)

Change History (7)

comment:1 Changed 4 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

comment:2 Changed 4 years ago by musti@…

I am observing the same error on current trunk with ar71xx / wr1043nd version 2 router. The camera is Logitech C270 and it works fine with AA firmware.

comment:3 Changed 4 years ago by florian

The power consumption of the device might be too high. A given USB device might not be enumerated correctly if the USB host controller cannot supply the device expected current.

comment:4 Changed 4 years ago by Stefano Ramponi <ramponis@…>

it is not a power related problem.
I have also tried to add a self power usb hub.
The problem was not solved.

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:6 Changed 3 years ago by anonymous

News?

comment:7 Changed 3 years ago by ramponis@…

News?

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.